:root {
    --blue: #1371FF;
    --blue1: #19ABDE;
    --blue2: rgb(66, 141, 255);
    --white: #ffffff;
    --white1: #F3F2FA;
    --gray: #959595;
    --gray1: #656F81;
    --colorBody: #222;
}

#giftvoucher-template {
    font-family: 'Poppins';
    font-size: .9em;
    line-height: 20px;
    color: var(--colorBody);
}

#giftvoucher-template * {
    box-sizing: border-box;
}

/* The markup already puts the symbol after the amount (wpgv_currency_amount_html, 4.9.8). */
#giftvoucher-template .currency_right {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    align-content: stretch;
}

#giftvoucher-template h1,
#giftvoucher-template h2,
#giftvoucher-template h3,
#giftvoucher-template h4,
#giftvoucher-template h5,
#giftvoucher-template h6 {
    margin: 0;
    font-family: 'Poppins';
}

#giftvoucher-template ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#giftvoucher-template .giftvoucher-template-steps {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    align-content: stretch;
    padding: 0 40px;
}

.giftvoucher-template-steps .giftvoucher-step {
    width: 23.5%;
    background: var(--white1);
    border-radius: 11px;
    padding: 8px;
    display: flex;
    align-items: center;
}

.giftvoucher-template-steps .giftvoucher-step:not(:last-child) {
    margin-right: 2%;
}

.giftvoucher-template-steps .step-group {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.giftvoucher-template-steps .step-group.disable_click {
    cursor: no-drop;
}

.giftvoucher-template-steps .step-group .step-number {
    background: var(--white);
    border-radius: 11px;
    border: 1px solid var(--white);
    font-size: 16px;
    width: 45px;
    height: 45px;
    display: inline-block;
    line-height: 43px;
    color: var(--gray);
    margin-right: 10px;
    text-align: center;
}

.giftvoucher-template-steps .step-label {
    font-size: 15px;
}

.giftvoucher-template-steps .giftvoucher-step.active,
.giftvoucher-template-steps .giftvoucher-step.passed {
    background: var(--blue);
}

.giftvoucher-template-steps .giftvoucher-step.passed .step-number {
    color: var(--white);
    border-color: var(--blue2);
    background-color: var(--blue2);
}

.giftvoucher-template-steps .giftvoucher-step.active .step-number {
    color: var(--blue);
    border-color: var(--white);
}

.giftvoucher-template-steps .giftvoucher-step.active .step-label,
.giftvoucher-template-steps .giftvoucher-step.passed {
    color: var(--white);
}


/*Header title step*/

#voucher-template-name-step {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    align-content: stretch;
    margin-bottom: 50px;
}

#voucher-template-name-step .choose-show-title {
    font-size: 30px;
    margin: 0;
    font-weight: 500
}

#voucher-template-name-step .number-step {
    width: 39px;
    height: 39px;
    background: var(--blue);
    border-radius: 14px;
    display: inline-block;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
    margin-right: 20px;
}


/*content voucher template*/

#giftvoucher-template .wrap-giftvoucher-template-content {
    padding: 0 40px;
}

#giftvoucher-template .wrap-giftvoucher-template-content a {
    text-decoration: none;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    color: var(--blue);
}

#giftvoucher-template .wrap-giftvoucher-template-content a:hover {
    text-decoration: none;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

#giftvoucher-template .format-category-voucher ul {
    padding: 0px;
    margin: 0px;
    display: flex;
}

#giftvoucher-template .title-h6-voucher {
    font-size: 12px;
    line-height: 14px;
    color: var(--gray1);
    opacity: 0.67;
    margin: 0px 0px 15px;
    /* A paragraph since 4.9.3 (an h6 broke the heading order of the page); keeps the h6 weight. */
    font-weight: 500;
}

#giftvoucher-template .step-progress {
    width: 100%;
    margin: 30px 0 50px;
}

#giftvoucher-template .progress {
    height: 4px;
    background: var(--white1);
    width: 100%;
}

#giftvoucher-template .progress .progress-bar {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: var(--blue);
    transition: width .6s ease;
    height: 4px;
}

#giftvoucher-template .wrap-format-category-voucher {
    display: flex;
}

#giftvoucher-template .wrap-format-category-voucher .format-category-voucher-template {
    margin-right: 50px;
}

.format-category-voucher-template ul li a {
    width: 15px;
    height: 27px;
    border: 1px dashed var(--gray);
    box-sizing: border-box;
    border-radius: 3px;
    display: inline-block;
}

.format-category-voucher-template ul li {
    width: 47px;
    height: 47px;
    background: var(--white1);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px 0 0;
}

.format-category-voucher-template ul li.active {
    background-color: var(--blue);
}

.format-category-voucher-template ul li.active a {
    border-color: var(--white);
}

.format-category-voucher-template ul li a.landscape {
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    margin: 0;
}

#giftvoucher-template ul.format-category-voucher {
    display: flex;
}

.voucher-category-selection-wrap .list-category-voucher li {
    margin: 0 0 10px;
}

.voucher-category-selection-wrap .list-category-voucher li:not(:last-child) {
    margin-right: 10px
}

#giftvoucher-template .list-category-voucher .category-voucher-item {
    background: var(--white1);
    border-radius: 11px;
    display: inline-block;
    padding: 10px 20px;
    /*font-weight:700;*/
    font-size: 16px;
    color: var(--gray1);
    text-transform: capitalize;
    cursor: pointer;
}

#giftvoucher-template .list-category-voucher .category-nav-item.active .category-voucher-item,
#giftvoucher-template .list-category-voucher .category-voucher-item:hover {
    color: var(--white);
    background-color: var(--blue);
}

#giftvoucher-template .list-category-voucher {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    align-content: stretch;
}


/*Slider*/

#giftvoucher-template .prev-slider,
#giftvoucher-template .next-slider {
    width: 50px;
    height: 50px;
    font-size: 30px;
    background-color: var(--blue);
    color: var(--white);
    line-height: 50px;
    display: inline-block;
    text-align: center;
    border-radius: 5px;
    position: absolute;
    z-index: 9;
    top: calc(50% - 27px);
    left: 0;
    cursor: pointer;
}

#giftvoucher-template .next-slider {
    left: auto;
    right: 0;
}

#slider-giftvoucher-template {
    margin: 40px 0;
    position: relative;
}

#slider-giftvoucher-template .slick-slide {
    margin: 0 15px;
}


/* the parent */

#slider-giftvoucher-template .slick-list {
    margin: 0 -15px;
}

#slider-giftvoucher-template .item-voucher-template {
    position: relative;
    overflow: hidden;
}

#slider-giftvoucher-template .item-voucher-template img {
    width: 100%;
    border-radius: 10px;
}

#slider-giftvoucher-template .item-voucher-template {
    position: relative;
    overflow: hidden;
    border: 10px solid var(--blue);
    border-radius: 10px;
    background-color: var(--blue);
}

#slider-giftvoucher-template .item-voucher-template .layout-overlay {
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

#slider-giftvoucher-template .item-voucher-template:hover .layout-overlay {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background-color: rgba(255, 255, 255, 0.7);
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    opacity: 1;
    visibility: visible;
}

#slider-giftvoucher-template .layout-button {
    padding: 15px 25px;
    background: var(--blue);
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
    line-height: 20px;
    text-transform: capitalize;
    font-weight: 700;
    cursor: pointer;
}

#slider-giftvoucher-template .layout-overlay-row {
    width: 100%;
    text-align: center;
    position: absolute;
    top: 50%;
    margin-top: -8px;
}

.voucher-content-step,
#setup-voucher-template {
    position: relative;
}

.voucher-content-step.loading:after,
#setup-voucher-template.loading:after {
    position: absolute;
    content: url(../img/loader.gif);
    background-color: #eee;
    top: 0;
    left: 0;
    z-index: 1111;
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    height: 100%;
    transform: scale(1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#slider-giftvoucher-template .template-slider-lanscape .item-voucher-template {
    width: 100%;
    margin: 16px 0;
}

#slider-giftvoucher-template .box-lanscape {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

#giftvoucher-template .voucher-content-step {
    display: none;
}

#giftvoucher-template #voucher-continue-step {
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    align-content: stretch;
    margin-top: 30px;
    visibility: hidden;
    opacity: 0
}

#giftvoucher-template #voucher-continue-step.show {
    visibility: visible;
    opacity: 1;
    display: flex;
}

#giftvoucher-template #voucher-continue-step .next-prev-button a {
    width: auto;
    background: var(--white1);
    border-radius: 10px;
    height: 50px;
    line-height: 50px;
    display: inline-block;
    padding: 0px 20px;
    color: var(--gray);
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    text-transform: capitalize;
}

#giftvoucher-template #voucher-continue-step .next-prev-button {
    margin-left: 30px
}

#giftvoucher-template #voucher-continue-step .next-button a {
    background-color: var(--blue);
    color: var(--white);
}

#giftvoucher-template #voucher-continue-step .next-button a.voucher-preview-pdf {
    background: var(--white1);
    color: var(--gray);
}

#giftvoucher-template #voucher-continue-step a span {
    width: 30px;
    height: 30px;
    background-color: var(--white);
    display: inline-block;
    vertical-align: 0px;
    line-height: 30px;
    text-align: center;
    padding: 0;
    border-radius: 10px;
    margin: 0 10px 0 0px;
    color: var(--gray);
}

#giftvoucher-template #voucher-continue-step .next-button a span {
    margin: 0 0 0 10px;
    color: var(--gray);
    font-size: 16px;
}

#giftvoucher-template #voucher-continue-step .next-prev-button a:hover {
    background-color: var(--blue);
    color: var(--white);
}

#giftvoucher-template #voucher-continue-step .prev-button {
    margin-left: 0
}


/*Gift Voucher info*/

#giftvoucher-template .voucher-template-infomation {}

#giftvoucher-template .voucherSelectSend,
#giftvoucher-template .voucherSendDatePikerRow,
#giftvoucher-template .voucher-template-input {
    margin-bottom: 20px;
    width: 100%;
}

#giftvoucher-template .voucher-template-input label {
    font-family: Poppins;
    font-style: 400;
    font-size: 17px;
    line-height: 1.48em;
    color: var(--colorBody);
    margin-bottom: 10px;
    text-transform: capitalize;
}

#giftvoucher-template .voucher-template-input .input-info-voucher {
    width: 100%;
    padding: 0px 15px;
    height: 45px;
    line-height: 45px;
    font-size: 16px;
    color: var(--colorBody);
    outline: 0;
    border: 1px solid var(--gray1);
    border-radius: 10px;
    font-family: 'Poppins'
}

#giftvoucher-template .error-input {
    display: none;
    color: #f00;
    font-size: 0.8em;
    margin-top: 10px
}

#giftvoucher-template .voucher-template-input .input-info-voucher.wpgv-field-error {
    border-color: #d92d20 !important;
    background-color: #fff5f4;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

#giftvoucher-template .voucher-template-input.price-voucher .wpgv-price-range-hint {
    display: block;
    margin: 8px;
    font-size: 12px;
    color: #667085;
}

#giftvoucher-template .error-input {
    font-size: 12px;
    font-weight: 600;
    color: #b42318;
    background: #fff1f0;
    border: 1px solid #fecdc9;
    border-radius: 8px;
    padding: 8px 10px;
}

#giftvoucher-template #voucher_description {
    height: 90px;
    resize: none;
    margin-bottom: 10px;
    line-height: 22px;
    padding: 10px 15px;
}

#giftvoucher-template .currencySymbol {
    position: absolute;
    top: 13px;
    left: 15px;
    font-size: 24px;
}

#giftvoucher-template .price-template-voucher {
    position: relative;
}

#giftvoucher-template #voucher_price_value {
    padding-left: 40px;
}

#voucher-template-choose-gift .wrapper-infomation-voucher-template {
    display: none;
}

#voucher-template-choose-gift .choose-shipping-template {
    margin: 15px 0 30px;
    display: flex;
}

#giftvoucher-template .choose-shipping-template .shipping-type {
    padding: 15px 25px;
    color: var(--gray);
    background-color: var(--white1);
    font-size: 20px;
    cursor: pointer;
    border-radius: 10px 0 0 10px;
}

#giftvoucher-template .choose-shipping-template .shipping-type:last-child {
    border-radius: 0 10px 10px 0;
}

#giftvoucher-template .choose-shipping-template .shipping-type.active,
#giftvoucher-template .choose-shipping-template .shipping-type:hover {
    background-color: var(--blue);
    color: var(--white1);
}

#giftvoucher-template .title-header-h4 {
    font-size: 22px;
    font-weight: 500;
}

#giftvoucher-template .title-header-h5 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

#giftvoucher-template .wrap-email-shiping-voucher,
#giftvoucher-template .wrap-shipping-info-voucher .shipping-name,
#giftvoucher-template .shipping-method {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
}

#giftvoucher-template .shipping-method {
    margin-bottom: 15px;
}

#giftvoucher-template .wrap-email-shiping-voucher .voucher-template-input {
    width: 100%;
}

#giftvoucher-template .wrap-shipping-info-voucher {
    display: none;
}

#giftvoucher-template .choose-payment-method {
    margin: 0 0 20px;
}

#giftvoucher-template #voucherSendType,
#giftvoucher-template #wpgv_payment_gateway #payment_gateway {
    padding: 10px;
    margin-top: 10px;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Poppins'
}

#giftvoucher-template .acceptVoucherTerms label {
    font-size: 14px;
    margin-top: 15px;
    display: block;
    font-weight: 600;
}

.order-detail-voucher-template h6.title-order {
    font-size: 21px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: 0em;
    text-align: left;
}

.order-detail-voucher-template .order-info {
    border-bottom: 1px solid var(--colorBody);
    padding: 10px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: stretch;
}

.order-detail-voucher-template h5.title-order {
    font-weight: 500;
    font-size: 16px;
    line-height: 30px;
}

.order-detail-voucher-template .order-info-name {
    width: 100%;
    font-size: 16px;
}

.order-detail-voucher-template .order-your-name {
    margin-left: 5px
}

.wrap-setup-voucher-template {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    align-content: stretch;
}

.wrap-setup-voucher-template.template-voucher-portrait #voucher-template-choose-gift {
    width: 55%;
}

.wrap-setup-voucher-template.template-voucher-portrait #select-template-voucher {
    width: 42%;
}

.wrap-setup-voucher-template.template-voucher-landscape #voucher-template-choose-gift {
    width: 40%;
}

.wrap-setup-voucher-template.template-voucher-landscape #select-template-voucher {
    width: 57%;
}

#voucher-template-choose-gift {
    width: 50%;
}

/* The preview column's width must not depend on the canvas inside it: fitStageIntoParentContainer()
   scales the stage to this width, so a flex item that grows to its min-content (the unscaled
   500px canvas) fed the old size straight back in and the card stayed too big or too small. */
#voucher-template-choose-gift,
#select-template-voucher {
    min-width: 0;
}

#template_giftcard_container_1 {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.overview_voucher_template .order-voucher {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
    margin-bottom: 8px;
    font-size: 16px;
}

.overview_voucher_template .order-voucher p {
    margin: 0;
    font-weight: 600;
}

#giftvoucher-template .voucher-preview-pdf,
#giftvoucher-template #payment-voucher-template {
    display: none;
}

#template_giftcard_img {
    width: 100%;
}

#giftvoucher-template .buying-options,
#giftvoucher-template .shipping-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    margin-bottom: 20px;
}

.buying-options div img,
.shipping-options div img {
    width: 30px;
    margin: 0 auto;
    display: block;
}

.buying-options div.active {
    background: var(--blue);
    color: #fff;
}

#giftvoucher-template .hiddenEmail {
    display: none;
}

.order-voucher-details .acceptVoucherTerms {
    display: none;
    margin: 30px 0px;
}

.order-voucher-details .acceptVoucherTerms .voucherNote {
    color: red;
    font-size: 12px;
    margin-top: 10px;
}

#giftvoucher-template .slick-track {
    display: flex;
    flex-wrap: nowrap;
    align-content: stretch;
}

#giftvoucher-template .slick-track .slick-slide {
    height: auto;
}

#giftvoucher-template .slick-track .slick-slide div,
#giftvoucher-template .slick-track .slick-slide img {
    height: 100%;
}

#giftvoucher-template .slick-track .slick-slide img {
    object-position: center;
    object-fit: cover;
}

#giftvoucher-template .form-group .input-group {
    position: relative;
    display: table;
    border-collapse: separate;
}

#giftvoucher-template .form-group .input-group-addon,
#giftvoucher-template .form-group .input-group .form-control {
    display: table-cell
}

#giftvoucher-template .form-group .input-group-addon:not(:first-child):not(:last-child),
#giftvoucher-template .form-group .input-group .form-control:not(:first-child):not(:last-child) {
    border-radius: 0
}

#giftvoucher-template .form-group .input-group-addon {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

#giftvoucher-template .form-group .input-group-addon {
    padding: 5px 10px;
    font-size: 14px;
    font-weight: normal;
    line-height: 1;
    text-align: center;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#giftvoucher-template .form-group .input-group-addon span:before,
#giftvoucher-template .datetimepicker th span.glyphicon:before {
    content: "";
    position: relative;
    width: 20px;
    height: 20px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
}

#giftvoucher-template .form-group .input-group-addon .date-add-icon:before {
    background-image: url(../img/dateadd.png);
}

#giftvoucher-template .form-group .input-group-addon .date-remove-icon:before {
    background-image: url(../img/dateremove.svg);
}

#giftvoucher-template .form-group .input-group-addon:last-child {
    border-left: 0;
}

#giftvoucher-template .form-group .input-group-addon:last-child {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

#giftvoucher-template .voucherdate {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    background-color: #fafafa;
    border-radius: 0;
    outline: 0;
    padding: 0 10px;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid;
    font-family: 'Poppins';
    border-top-left-radius: 5px 5px;
    border-bottom-left-radius: 5px 5px;
    font-size: 16px;
}

.datetimepicker th span.glyphicon.glyphicon-arrow-left:before {
    background-image: url(../img/left-arrow.png);
}

.datetimepicker th span.glyphicon.glyphicon-arrow-right:before {
    background-image: url(../img/right-arrow.png);
}

.datetimepicker table {
    border: 0;
}

.datetimepicker.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    list-style: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    background-clip: padding-box
}

.datetimepicker table td {
    padding: 3px;
}

@media screen and (max-width:1024px) {
    .giftvoucher-template-steps .step-group .step-number {
        width: 35px;
        height: 35px;
        line-height: 35px;
        margin-right: 5px;
    }

    .giftvoucher-template-steps .step-label {
        font-size: 14px;
    }

    #voucher-template-name-step .choose-show-title {
        font-size: 28px;
    }

    #giftvoucher-template .title-header-h4 {
        font-size: 20px;
    }

    #giftvoucher-template .choose-shipping-template .shipping-type {
        font-size: 16px;
    }

    .order-detail-voucher-template h6.title-order {
        font-size: 18px;
        line-height: 1.3em;
    }

    .order-detail-voucher-template h5.title-order {
        font-size: 15px;
    }

    .order-detail-voucher-template .order-info-name {
        font-size: 15px;
    }

    .order-detail-voucher-template .total-order {
        font-size: 15px;
    }

    .overview_voucher_template .order-voucher>span {
        min-width: 130px;
    }

    .overview_voucher_template .order-voucher>p {
        word-break: break-all;
        text-align: right;
    }
}

@media screen and (max-width:992px) {
    .wrap-setup-voucher-template {
        flex-wrap: wrap;
    }

    .wrap-setup-voucher-template.template-voucher-landscape #voucher-template-choose-gift,
    .wrap-setup-voucher-template.template-voucher-landscape #select-template-voucher {
        width: 100%;
    }

    .wrap-setup-voucher-template.template-voucher-landscape #select-template-voucher {
        margin-top: 20px
    }

    #slider-giftvoucher-template .slick-slide {
        margin: 0 5px;
    }

    #giftvoucher-template .giftvoucher-template-steps {
        padding: 0 30px;
    }

    #giftvoucher-template .wrap-giftvoucher-template-content {
        padding: 0 30px;
    }

    #slider-giftvoucher-template .slick-list {
        padding: 0 50px;
        margin: 0px;
    }

    #slider-giftvoucher-template .template-slider-lanscape .item-voucher-template {
        margin: 5px 0;
    }

    .wrap-setup-voucher-template.template-voucher-portrait #select-template-voucher {
        padding-top: 20px;
    }
}

@media screen and (max-width:736px) {

    .wrap-setup-voucher-template.template-voucher-portrait #voucher-template-choose-gift,
    .wrap-setup-voucher-template.template-voucher-portrait #select-template-voucher {
        width: 100%
    }

    #wrap-setup-voucher-template.template-voucher-portrait #select-template-voucher {
        margin-top: 20px
    }

    .giftvoucher-template-steps .giftvoucher-step {
        width: 48%;
        margin-bottom: 4%;
    }

    .giftvoucher-template-steps .giftvoucher-step:not(:last-child) {
        margin-right: 4%;
    }

    .giftvoucher-template-steps .giftvoucher-step:nth-child(2n+2) {
        margin-right: 0px;
    }

    #voucher-template-name-step {
        margin-bottom: 25px;
    }

    #giftvoucher-template .wrap-format-category-voucher .format-category-voucher-template {
        margin-right: 20px;
    }

    #giftvoucher-template .list-category-voucher .category-voucher-item {
        font-size: 13px;
        padding: 10px;
    }

    .format-category-voucher-template ul li {
        margin-right: 10px;
        width: 40px;
        height: 40px;
    }

    #slider-giftvoucher-template .slick-list {
        padding: 0 60px;
    }

    #slider-giftvoucher-template .layout-button {
        padding: 7px 10px;
        font-size: 14px;
        border-radius: 7px;
    }

    .format-category-voucher-template ul li a {
        height: 22px;
    }

    #voucher-template-name-step .choose-show-title {
        font-size: 25px;
    }

    #voucher-template-name-step .number-step {
        margin-right: 15px;
    }

    #giftvoucher-template .step-progress {
        margin: 20px 0 40px;
    }

    #giftvoucher-template .voucher-template-input label {
        line-height: 1.3em;
    }

    #giftvoucher-template #voucher-continue-step .next-prev-button {
        margin-left: 0;
        text-align: right;
    }

    #giftvoucher-template #voucher-continue-step {
        position: relative;
        padding-left: 50%;
        margin-top: 20px;
        justify-content: flex-end;
    }

    #giftvoucher-template #voucher-continue-step .next-prev-button:first-child {
        position: absolute;
        bottom: 0px;
        left: 0px;
        margin-left: 0px;
        z-index: 2
    }

    #giftvoucher-template #voucher-continue-step .next-prev-button a.voucher-preview-pdf {
        position: relative;
        right: 200%;
        margin-bottom: 15px;
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -moz-transform: translateX(100%);
    }
}

@media screen and (max-width:568px) {
    #giftvoucher-template .giftvoucher-template-steps {
        padding: 0 20px;
    }

    #giftvoucher-template .wrap-giftvoucher-template-content {
        padding: 0 20px;
    }

    .giftvoucher-template-steps .giftvoucher-step {
        width: 100%;
    }

    .giftvoucher-template-steps .giftvoucher-step:not(:last-child) {
        margin-right: 0px;
    }

    #voucher-template-name-step .number-step {
        margin-right: 10px;
    }

    #voucher-template-name-step .choose-show-title {
        font-size: 21px;
    }

    #giftvoucher-template .wrap-format-category-voucher .format-category-voucher-template {
        width: 100%;
        margin-right: 0px;
        margin-bottom: 15px;
    }

    #giftvoucher-template .wrap-format-category-voucher .voucher-category-selection-wrap {
        width: 100%;
    }

    #giftvoucher-template .wrap-format-category-voucher {
        flex-wrap: wrap;
    }

    .format-category-voucher-template ul li {
        width: 100%;
    }

    .format-category-voucher-template ul li:last-child {
        transform: initial;
        -webkit-transform: initial;
    }

    .format-category-voucher-template ul li a.landscape {
        transform: rotate(-90deg);
        -webkit-transform: rotate(-90deg);
    }

    .voucher-category-selection-wrap .list-category-voucher li {
        width: 100%;
    }

    .voucher-category-selection-wrap .list-category-voucher li:not(:last-child) {
        margin-right: 0px;
    }

    #giftvoucher-template .list-category-voucher .category-voucher-item {
        display: block;
    }

    #slider-giftvoucher-template .slick-list {
        padding: 0 40px;
    }

    #slider-giftvoucher-template {
        margin: 20px 0;
    }

    #giftvoucher-template #voucher-continue-step .next-prev-button a {
        font-size: 14px;
        padding: 0 10px;
    }

    #giftvoucher-template #voucher-continue-step a span {
        width: 28px;
        height: 28px;
        line-height: 28px;
        border-radius: 8px;
    }

    #giftvoucher-template .voucher-template-input label {
        font-size: 14px;
    }

    #giftvoucher-template .currencySymbol {
        font-size: 20px;
        top: 12px;
    }

    #giftvoucher-template #voucher_price_value {
        padding-left: 30px;
    }

    #giftvoucher-template .voucher-template-input .input-info-voucher {
        font-size: 14px;
    }

    #giftvoucher-template #voucher-continue-step .next-button a span {
        margin-left: 5px;
    }

    #giftvoucher-template #voucher-continue-step a span {
        margin-right: 5px;
    }
}

@media screen and (max-width:382px) {
    #giftvoucher-template .giftvoucher-template-steps {
        padding: 0 15px;
    }

    #giftvoucher-template .wrap-giftvoucher-template-content {
        padding: 0 15px;
    }

    #slider-giftvoucher-template .slick-list {
        padding: 0 20px;
    }

    #giftvoucher-template .prev-slider,
    #giftvoucher-template .next-slider {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 25px;
    }

    #giftvoucher-template .title-header-h4 {
        font-size: 16px;
    }

    #giftvoucher-template .choose-shipping-template .shipping-type {
        font-size: 14px;
        padding: 10px 20px;
    }

    #giftvoucher-template #wpgv_payment_gateway #payment_gateway {
        font-size: 14px;
    }

    #giftvoucher-template .acceptVoucherTerms input {
        position: relative;
        top: 2px;
    }

    .order-detail-voucher-template h6.title-order {
        font-size: 16px;
    }

    .order-detail-voucher-template .order-info-name {
        font-size: 13px;
    }

    #giftvoucher-template .acceptVoucherTerms label {
        font-size: 13px;
    }

    .overview_voucher_template .order-voucher {
        flex-wrap: wrap;
    }

    .overview_voucher_template .order-voucher>p {
        width: 100%;
        text-align: left;
        font-size: 15px;
    }

    #giftvoucher-template #voucher-continue-step .next-prev-button a {
        padding: 9px;
        height: auto;
        line-height: 25px;
        font-size: 13px;
    }

    #giftvoucher-template #voucher-continue-step .next-button a span {
        margin-right: 0;
        margin-left: 5px;
    }

    #giftvoucher-template #voucher-continue-step a span {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 14px;
        border-radius: 6px;
        margin-right: 5px;
    }

    #giftvoucher-template #voucher-continue-step .next-prev-button:first-child {
        margin-left: 0px;
    }

    #giftvoucher-template #voucher-continue-step {
        padding-left: 46%;
    }

    #giftvoucher-template #voucher-continue-step .next-prev-button a.voucher-preview-pdf {
        right: 186%;
    }
}

/* ---------------------------------------------------------------------------
   Card designer refresh
   The slider is the newest of the three views, so this only tightens it:
   template cards get a real card frame and a visible selected state, the
   format/category filters become labelled chips, and the arrows sit clear of
   the artwork instead of on top of it.
   --------------------------------------------------------------------------- */

#giftvoucher-template {
    --blue: var(--wpgv-accent);
}

/* Template cards: the thick coloured border became a frame with a soft shadow. */
#slider-giftvoucher-template .item-voucher-template {
    border: 1px solid var(--wpgv-border);
    border-radius: var(--wpgv-radius);
    background-color: var(--wpgv-surface);
    padding: 8px;
    box-shadow: var(--wpgv-shadow-sm);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

#slider-giftvoucher-template .item-voucher-template:hover {
    border-color: var(--wpgv-border-strong);
    box-shadow: var(--wpgv-shadow-md);
    transform: translateY(-2px);
}

#slider-giftvoucher-template .item-voucher-template img {
    border-radius: var(--wpgv-radius-sm);
}

#slider-giftvoucher-template .item-voucher-template.active,
#slider-giftvoucher-template .slick-current .item-voucher-template.active {
    border-color: var(--wpgv-accent);
    box-shadow: var(--wpgv-ring), var(--wpgv-shadow-md);
}

/* Format and category filters read as chips, with the same pill shape. */
.format-category-voucher-template ul li {
    width: 46px;
    height: 46px;
    background: var(--wpgv-surface);
    border: 1px solid var(--wpgv-border);
    border-radius: var(--wpgv-radius-sm);
    margin: 0 10px 0 0;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.format-category-voucher-template ul li:hover {
    border-color: var(--wpgv-border-strong);
    background: var(--wpgv-surface-sunken);
}

.format-category-voucher-template ul li.active {
    background-color: var(--wpgv-accent);
    border-color: var(--wpgv-accent);
    box-shadow: var(--wpgv-ring);
}

.voucher-category-selection-wrap .list-category-voucher li a {
    border-radius: var(--wpgv-radius-pill);
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.voucher-category-selection-wrap .list-category-voucher li.active a {
    box-shadow: var(--wpgv-ring);
}

/* Slider arrows: round and light, sitting clear of the first and last card. */
#giftvoucher-template .prev-slider,
#giftvoucher-template .next-slider {
    width: 44px;
    height: 44px;
    line-height: 42px;
    font-size: 24px;
    border-radius: 50%;
    background-color: var(--wpgv-surface);
    color: var(--wpgv-ink);
    border: 1px solid var(--wpgv-border);
    box-shadow: var(--wpgv-shadow-md);
    top: calc(50% - 22px);
    left: -20px;
    z-index: 9;
    transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}

#giftvoucher-template .next-slider {
    left: auto;
    right: -20px;
}

#giftvoucher-template .prev-slider:hover,
#giftvoucher-template .next-slider:hover {
    background-color: var(--wpgv-accent);
    color: var(--wpgv-accent-contrast);
    border-color: var(--wpgv-accent);
    box-shadow: var(--wpgv-shadow-lg);
}

/* Step rail: keep the shape, soften the surfaces. */
.giftvoucher-template-steps .giftvoucher-step {
    background: var(--wpgv-surface-sunken);
    border-radius: var(--wpgv-radius-sm);
}

@media only screen and (max-width: 782px) {
    #giftvoucher-template .prev-slider {
        left: 2px;
    }

    #giftvoucher-template .next-slider {
        right: 2px;
    }
}

/* ---------------------------------------------------------------------------
   Merchant colours on the modern form.

   Border & Button Color is the accent; the text drawn on it is
   --wpgv-accent-contrast, which wpgv_modern_theme_css() picks for contrast.
   These foregrounds were hardcoded white, so a light accent such as yellow
   left every active step, chip and button label unreadable.

   Voucher Text Color is the text sitting directly on the content panel
   (--wpgv-panel-ink), held to a 4.5:1 floor against white. The panel is not
   filled with Voucher Background Color. Surfaces with a fill of their own - chips, cards, inputs,
   secondary buttons - keep their own colours, and the template artwork is
   never recoloured.
   --------------------------------------------------------------------------- */

#giftvoucher-template {
    --wpgv-panel-ink: var(--colorBody);
}

/* Text and outlines on accent fills. Each selector is the original one prefixed with the
   container id, so it outranks the hardcoded white it replaces. */
#giftvoucher-template .giftvoucher-template-steps .giftvoucher-step.passed .step-number,
#giftvoucher-template .giftvoucher-template-steps .giftvoucher-step.active .step-label,
#giftvoucher-template .giftvoucher-template-steps .giftvoucher-step.passed,
#giftvoucher-template #voucher-template-name-step .number-step,
#giftvoucher-template .progress .progress-bar,
#giftvoucher-template .list-category-voucher .category-nav-item.active .category-voucher-item,
#giftvoucher-template .list-category-voucher .category-voucher-item:hover,
#giftvoucher-template #slider-giftvoucher-template .layout-button,
#giftvoucher-template #voucher-continue-step .next-button a,
#giftvoucher-template #voucher-continue-step .next-prev-button a:hover,
#giftvoucher-template .buying-options div.active,
#giftvoucher-template .choose-shipping-template .shipping-type.active,
#giftvoucher-template .choose-shipping-template .shipping-type:hover,
#giftvoucher-template #payment-voucher-template {
    color: var(--wpgv-accent-contrast);
}

#giftvoucher-template .format-category-voucher-template ul li.active a {
    border-color: var(--wpgv-accent-contrast);
}

/* The content panel takes the text colour only. It is not filled, padded or rounded: it keeps
   the theme's background and its original spacing. */
#giftvoucher-template .wrap-giftvoucher-template-content {
    color: var(--wpgv-panel-ink);
}

#giftvoucher-template .title-h6-voucher,
#giftvoucher-template .voucher-template-input label,
#giftvoucher-template .voucher-template-input.price-voucher .wpgv-price-range-hint,
#giftvoucher-template .order-detail-voucher-template .order-info {
    color: var(--wpgv-panel-ink);
}

/* Inputs had no fill, so they would have shown the panel colour through, with dark text on
   whatever the merchant chose. They sit on their own light surface instead, which also keeps
   the error tint on invalid fields, a more specific rule, intact. */
#giftvoucher-template .wrap-giftvoucher-template-content :is(input[type="text"], input[type="email"], input[type="number"], input[type="tel"], textarea, select, .input-info-voucher, .voucherdate) {
    background-color: var(--wpgv-surface);
    color: var(--colorBody);
}

/* ---------------------------------------------------------------------------
   Step rail on phones and small tablets (5.2.2).

   Four full-width rows took about 250 px above the content on a phone, and the
   step heading below the rail already names the current step. Up to 736 px the
   rail is one row of numbered circles joined by a line. The labels stay in the
   markup for screen readers, and passed steps stay tappable (44 px).
   The colours carry !important because the form's inline accent rules in
   include/shortcodes/giftcard.php do.
   --------------------------------------------------------------------------- */
@media screen and (max-width: 736px) {
    #giftvoucher-template .giftvoucher-template-steps {
        position: relative;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    #giftvoucher-template .giftvoucher-template-steps::before {
        content: "";
        position: absolute;
        left: 42px;
        right: 42px;
        top: 50%;
        height: 2px;
        background: var(--wpgv-border);
        transform: translateY(-50%);
    }

    #giftvoucher-template .giftvoucher-template-steps .giftvoucher-step,
    #giftvoucher-template .giftvoucher-template-steps .giftvoucher-step.active,
    #giftvoucher-template .giftvoucher-template-steps .giftvoucher-step.passed {
        position: relative;
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        padding: 0;
        background: transparent !important;
    }

    #giftvoucher-template .giftvoucher-template-steps .step-group .step-number {
        width: 44px;
        height: 44px;
        margin: 0;
        border: 2px solid var(--wpgv-border-strong);
        border-radius: 50%;
        background: var(--wpgv-surface);
        color: var(--wpgv-muted);
        font-size: 16px;
        line-height: 40px;
    }

    #giftvoucher-template .giftvoucher-template-steps .giftvoucher-step.passed .step-group .step-number {
        border-color: var(--wpgv-accent) !important;
        background: var(--wpgv-surface) !important;
        color: var(--wpgv-accent) !important;
    }

    #giftvoucher-template .giftvoucher-template-steps .giftvoucher-step.active .step-group .step-number {
        border-color: var(--wpgv-accent) !important;
        background: var(--wpgv-accent) !important;
        color: var(--wpgv-accent-contrast) !important;
    }

    #giftvoucher-template .giftvoucher-template-steps .step-group .step-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }
}

/* ---------------------------------------------------------------------------
   Template slider motion (5.2.2).

   The track gets its own compositing layer so a swipe or an arrow tap moves it
   without repainting the page. When the format or category filter loads other
   cards, the slider fades out and the rebuilt one fades in
   (wpgvSliderFadeOut / wpgvSliderFadeIn in voucher-template-script.js).
   Visitors who ask the system for less motion get no fade.
   --------------------------------------------------------------------------- */
#giftvoucher-template #slider-giftvoucher-template .slick-track {
    will-change: transform;
}

#giftvoucher-template #slider-giftvoucher-template {
    transition: opacity .15s ease;
}

#giftvoucher-template #slider-giftvoucher-template.wpgv-slider-swapping {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    #giftvoucher-template #slider-giftvoucher-template {
        transition: none !important;
    }
}

/* ---------------------------------------------------------------------------
   Step transitions (5.2.2).

   A step change no longer covers the form with a white loader for a fixed
   second. The new step fades in and slides 12 px in from the side it comes
   from (wpgvAnimateStepEnter in voucher-template-script.js), the card preview
   stays transparent until it is drawn, and the step circles change colour
   smoothly. The checkout keeps its loader. No motion for visitors who ask the
   system for less.
   --------------------------------------------------------------------------- */
@keyframes wpgv-step-enter-forward {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes wpgv-step-enter-back {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

#giftvoucher-template .wrap-giftvoucher-template-content.wpgv-step-enter-forward {
    animation: wpgv-step-enter-forward .25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#giftvoucher-template .wrap-giftvoucher-template-content.wpgv-step-enter-back {
    animation: wpgv-step-enter-back .25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#giftvoucher-template #template_giftcard_container_1,
#giftvoucher-template #template_giftcard_container_2 {
    transition: opacity .2s ease;
}

#giftvoucher-template.wpgv-preview-pending #template_giftcard_container_1,
#giftvoucher-template.wpgv-preview-pending #template_giftcard_container_2 {
    opacity: 0;
}

#giftvoucher-template .giftvoucher-template-steps .giftvoucher-step,
#giftvoucher-template .giftvoucher-template-steps .step-group .step-number {
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

@media (prefers-reduced-motion: reduce) {
    #giftvoucher-template .wrap-giftvoucher-template-content.wpgv-step-enter-forward,
    #giftvoucher-template .wrap-giftvoucher-template-content.wpgv-step-enter-back {
        animation: none;
    }

    #giftvoucher-template #template_giftcard_container_1,
    #giftvoucher-template #template_giftcard_container_2,
    #giftvoucher-template .giftvoucher-template-steps .giftvoucher-step,
    #giftvoucher-template .giftvoucher-template-steps .step-group .step-number {
        transition: none;
    }
}

/* ---------------------------------------------------------------------------
   Template slider on phones and small tablets (5.2.2), one card at a time.

   The card in the middle is in focus; the cards peeking at the sides are
   smaller and faded, and they grow into focus as they slide in, on the same
   ease-out curve as the slide. The arrows are smaller and sit on the peeking
   cards, clear of the card in focus. "2 / 19" under the slider tells how many
   cards there are. No scaling or fading for visitors who ask for less motion.
   --------------------------------------------------------------------------- */
@media screen and (max-width: 736px) {
    #giftvoucher-template #slider-giftvoucher-template .slick-list {
        padding: 0 40px;
    }

    /* The cards peeking at the sides stay visible, a little faded. */
    #giftvoucher-template #slider-giftvoucher-template .slick-slide:not(.slick-active):not(.wpgv-slide-incoming) .item-voucher-template {
        transform: scale(.9);
        opacity: .5;
    }

    #giftvoucher-template #slider-giftvoucher-template .prev-slider,
    #giftvoucher-template #slider-giftvoucher-template .next-slider {
        width: 36px;
        height: 36px;
        line-height: 34px;
        font-size: 20px;
        top: calc(50% - 18px);
        background-color: rgba(255, 255, 255, .9);
        box-shadow: var(--wpgv-shadow-sm);
    }

    /* A tap leaves :hover on, so the pressed arrow keeps a light face with a coloured edge. */
    #giftvoucher-template #slider-giftvoucher-template .prev-slider:hover,
    #giftvoucher-template #slider-giftvoucher-template .next-slider:hover {
        background-color: var(--wpgv-surface);
        color: var(--wpgv-ink);
        border-color: var(--wpgv-accent);
        box-shadow: var(--wpgv-shadow-sm);
    }

    #giftvoucher-template #slider-giftvoucher-template .prev-slider {
        left: 2px;
    }

    #giftvoucher-template #slider-giftvoucher-template .next-slider {
        right: 2px;
    }

    #giftvoucher-template #slider-giftvoucher-template .wpgv-slider-counter {
        margin-top: 10px;
        text-align: center;
        font-size: 13px;
        color: var(--wpgv-muted);
        font-variant-numeric: tabular-nums;
    }
}

@media screen and (min-width: 737px) {
    #giftvoucher-template #slider-giftvoucher-template .wpgv-slider-counter {
        display: none !important;
    }
}


/* ---------------------------------------------------------------------------
   Card transition when the slider moves (5.2.2), every screen size.

   Next, Prev or a swipe: the cards leaving shrink and fade out while they
   slide away, and the cards coming in grow and light up while they slide in
   (wpgv-slide-incoming is set on beforeChange, so the new cards start growing
   with the slide, copies included when the slider wraps round). The layout at
   rest is unchanged: the cards in view are full size.
   --------------------------------------------------------------------------- */
#giftvoucher-template #slider-giftvoucher-template .slick-slide .item-voucher-template {
    transform: scale(.86);
    opacity: .3;
    transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1), opacity .5s cubic-bezier(0.22, 1, 0.36, 1), border-color .15s ease, box-shadow .15s ease;
}

#giftvoucher-template #slider-giftvoucher-template .slick-slide.slick-active .item-voucher-template,
#giftvoucher-template #slider-giftvoucher-template .slick-slide.wpgv-slide-incoming .item-voucher-template {
    transform: none;
    opacity: 1;
}

#giftvoucher-template #slider-giftvoucher-template .slick-slide.slick-active .item-voucher-template:hover {
    transform: translateY(-2px);
}

/* wpgv-frontend.css cuts every transition in the form to 0.01 ms when the visitor asks the
   system for less motion. The slider is exempt: Next, Prev and a swipe move the cards, and
   seeing them move shows where the cards went. Its durations are restated here, with the
   same !important and a stronger selector. */
@media (prefers-reduced-motion: reduce) {
    #giftvoucher-template #slider-giftvoucher-template .slick-track {
        transition-duration: .5s !important;
    }

    #giftvoucher-template #slider-giftvoucher-template .slick-slide .item-voucher-template {
        transition-duration: .5s, .5s, .15s, .15s !important;
    }
}

/* ---------------------------------------------------------------------------
   Category filter on phones and small tablets (5.2.3).

   One full-width button per category stacked about 480 px of buttons above the
   slider with nine categories. Up to 736 px the categories are one row of
   chips that scrolls sideways; the edge fades while chips are hidden past it
   (wpgv-cat-more-left / -right, set by wpgvCategoryRail() in
   voucher-template-script.js), and the chosen chip is scrolled into view.
   --------------------------------------------------------------------------- */
@media screen and (max-width: 736px) {
    #giftvoucher-template .voucher-category-selection-wrap .list-category-voucher {
        flex-wrap: nowrap;
        gap: 8px;
        margin: 0;
        padding: 4px 4px 8px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #giftvoucher-template .voucher-category-selection-wrap .list-category-voucher::-webkit-scrollbar {
        display: none;
    }

    #giftvoucher-template .voucher-category-selection-wrap .list-category-voucher li,
    #giftvoucher-template .voucher-category-selection-wrap .list-category-voucher li:not(:last-child) {
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        scroll-snap-align: center;
    }

    #giftvoucher-template .voucher-category-selection-wrap .list-category-voucher .category-voucher-item {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 0 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    #giftvoucher-template .voucher-category-selection-wrap .list-category-voucher.wpgv-cat-more-right {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    }

    #giftvoucher-template .voucher-category-selection-wrap .list-category-voucher.wpgv-cat-more-left {
        -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent);
        mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent);
    }

    #giftvoucher-template .voucher-category-selection-wrap .list-category-voucher.wpgv-cat-more-left.wpgv-cat-more-right {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
    }
}
