.text-red {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

.cart-wrapper.checkout-wrapper {
    background-color: #f8f8f8;
}

.checkout-wrapper .cart-table-head,
.checkout-wrapper .cart-item-box {
    grid-template-columns: 3fr 1fr 1.5fr 1fr;
}

.checkout-wrapper .shop-title-wrapper {
    grid-template-columns: 1fr;
}

.checkout-wrapper .cart-table-head {
    box-shadow: none;
    border: 0;
}

.checkout-address-default {
    font-weight: normal;
    color: var(--primary);
    display: inline-block;
    border: 1px solid var(--primary);
    padding: 2px 4px;
    margin-top: 5px;
    font-size: 14px;
}

.checkout-address-unmapped {
    font-weight: normal;
    color: #D80D0D;
    display: inline-block;
    border: 1px solid #D80D0D;
    padding: 2px 4px;
    margin-top: 5px;
    font-size: 14px;
}

.checkout-address-title {
    display: flex;
    align-items: center;
    grid-gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 12px;
}

.checkout-address-detail {
    font-size: 16px;
    color: #525252;
}

.checkout-address-detail + .checkout-address-detail {
    margin-top: 4px;
}

.checkout-address-detail-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-gap: 24px;
}

.checkout-address-btn {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
}

.checkout-address-popup-wrapper {
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 11, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.checkout-address-popup {
    box-shadow: 0 0 3px rgba(11, 11, 11, 0.25);
    border-radius: 3px;
    background-color: #fff;
    margin-bottom: 25px;
    width: 500px;
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    max-height: 640px;
    overflow-y: auto;
}

.checkout-address-head {
    font-size: 18px;
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid #ccc;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    line-height: 1;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 9;
}

.checkout-address-content {
    padding: 0 16px;
}

.checkout-address-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: flex-start;
    grid-gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .09);
}

.checkout-address-item-update {
    background: transparent;
    border: 0;
    padding: 4px;
    color: var(--primary);
    font-size: 14px;
}

.checkout-address-item-label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-gap: 8px;
    align-items: flex-start;
    margin: 0;
}

.checkout-address-item-bottom {
    color: #525252;
    font-size: 14px;
    font-weight: 400;
    margin-top: 4px;
}

.checkout-address-item-phone {
    color: #525252;
    font-size: 14px;
    padding-left: 8px;
    margin-left: 8px;
    position: relative;
}

.promotion-code-list-label {
    margin: 10px 0;
}

.checkout-address-item-top span {
    font-weight: 400;
}

.checkout-address-item-name {
    color: #000;
    font-size: 16px;
}

.checkout-address-item-phone::before {
    content: "";
    width: 1px;
    height: 100%;
    background: #ccc;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.checkout-address-item:last-child {
    border-bottom: 0;
}

.checkout-address-add-btn {
    display: flex;
    align-items: center;
    grid-gap: 8px;
    background: transparent;
    border: 1px solid var(--primary);
    padding: 6px 8px;
    color: var(--primary);
    line-height: 1;
}

.checkout-address-add-btn:hover {
    background: var(--primary);
    color: #fff;
}

.checkout-address-form {
    padding: 16px 0;
}

.checkout-address-field {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 16px;
}

.checkout-address-field.full-width {
    grid-template-columns: 1fr;
}

.checkout-address-field + .checkout-address-field {
    margin-top: 12px;
}

.checkout-address-field input {
    padding: 6px 10px;
    border: 1px solid #ccc;
}

.checkout-address-field input[type="number"]::-webkit-inner-spin-button,
.checkout-address-field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.checkout-address-footer {
    border-top: 1px solid #ccc;
    padding: 16px;
    display: flex;
    align-items: center;
    grid-gap: 12px;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 9;
}

.checkout-address-footer button {
    background: transparent;
    border: 1px solid #ccc;
    padding: 4px 12px;
}

.checkout-address-footer button.checkout-address-submit {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.checkout-address-footer button.checkout-address-submit[disabled] {
    cursor: not-allowed;
    opacity: 0.4;
}

.checkout-address-footer button.checkout-address-submit:hover {
    background: #fff;
    color: var(--primary);
}

.checkout-address-footer button.checkout-address-close:hover {
    background: rgba(0,0,0,.02);
}

.checkout-address-add {
    margin: 16px 0px;
}

.cart-item-total {
    text-align: right;
}

.cart-item-total-price {
    color: var(--price);
    font-size: 20px;
    font-weight: 700;
    margin-left: 8px;
}

 .hide-label {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    grid-gap: 0;
    width: fit-content;
    padding: 10px 0;
    font-weight: bold;
    margin-top: 16px;
    cursor: pointer;
    line-height: 22px;
    user-select: none;
}

.hide-label input[type=checkbox] {
    width: 0;
    height: 0;
    position: absolute;
    display: none;
}

.hide-checkbox {
    width: 22px;
    min-width: 22px;
    height: 22px;
    border-radius: 3px;
    position: relative;
    display: block;
    border: 2px solid #e1e1e1;
    margin-right: 10px;
}

.hide-checkbox::after {
    content: "";
    width: 5px;
    height: var(--gap12);
    display: block;
    position: absolute;
    bottom: 4px;
    right: 6px;
    transform: rotate(45deg);
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    opacity: 0;
}

.hide-label input[type=checkbox]:checked~.hide-checkbox {
    border-color: var(--primary);
}

.hide-label input[type=checkbox]:checked~.hide-checkbox::after {
    opacity: 1
}

.hide-product-help {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 200ms ease-in-out;
    margin-left: 4px;
}

.hide-product-help-box {
    font-weight: 500;
    color: #313131;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(11 11 11 / 30%);
    padding: 10px 12px;
    border-radius: 9px;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translate(-50%, 10px);
    opacity: 0;
    transition: all 200ms ease-in-out;
    min-width: 240px;
    line-height: 1.5;
    pointer-events: none;
    font-size: 14px;
}

.hide-product-help:hover {
    color: var(--primary)
}

.hide-product-help:hover .hide-product-help-box {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hide-product-help-box::after {
    top: 100%;
	left: 50%;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(255, 255, 255, 0);
	border-top-color: #ffffff;
	border-width: 6px;
	margin-left: -6px;
}

.panel-checkout .form-control {
    display: block;
    width: 100%;
    padding: var(--gap12);
    background-color: #fff;
    background-image: none;
    border-radius: var(--borderRadius);
    border: 1px solid #e1e1e1;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    height: auto;
    color: var(--dark);
    box-shadow: none;  
    font-size: 16px;
}

.panel-checkout .form-control:focus {
    border-color: var(--primary);
}

.panel-checkout select.form-control {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23d1d1d1"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 9c.852 0 1.297 .986 .783 1.623l-.076 .084l-6 6a1 1 0 0 1 -1.32 .083l-.094 -.083l-6 -6l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057v-.118l.005 -.058l.009 -.06l.01 -.052l.032 -.108l.027 -.067l.07 -.132l.065 -.09l.073 -.081l.094 -.083l.077 -.054l.096 -.054l.036 -.017l.067 -.027l.108 -.032l.053 -.01l.06 -.01l.057 -.004l12.059 -.002z" /></svg>') !important;
    background-position: calc(100% - 8px) 12px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
}

.panel-checkout select.form-control:focus {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%2343c0e4" ><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M11.293 7.293a1 1 0 0 1 1.32 -.083l.094 .083l6 6l.083 .094l.054 .077l.054 .096l.017 .036l.027 .067l.032 .108l.01 .053l.01 .06l.004 .057l.002 .059l-.002 .059l-.005 .058l-.009 .06l-.01 .052l-.032 .108l-.027 .067l-.07 .132l-.065 .09l-.073 .081l-.094 .083l-.077 .054l-.096 .054l-.036 .017l-.067 .027l-.108 .032l-.053 .01l-.06 .01l-.057 .004l-.059 .002h-12c-.852 0 -1.297 -.986 -.783 -1.623l.076 -.084l6 -6z" /></svg>') !important;
}

/* Payment method */
.payment-method label:hover {
    border-color: #43c0e4;
}

.payment-method input:checked ~ label::after {
    opacity: 1;
    background-color: transparent;
}

.payment_type:checked ~ label .geekmark {
    border-color: var(--primary);
}

.payment_type:checked:hover ~ label .geekmark::after,
.payment_type:checked ~ label .geekmark::after {
    background-color: var(--primary) !important;
    opacity: 1;
}

.payment_type:checked ~ .method-content-sub-title {
    display: grid;
    margin-top: 16px;
}
.payment_type:checked ~ .method-content-sub-title.grid2col {
    display: block;
}

.panel-checkout .choose-bank-account .form-control {
    padding: 4px 12px 4px 8px;
    background-position: calc(100% - 6px) 6px !important;
    border-width: 1px;
    border-color: var(--gray);
    margin-top: 6px;
}

.panel-checkout .choose-bank-account .form-control:hover {
    border-color: var(--primary);
}

.banking-step {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    grid-gap: 16px;
}

.payment-value-code-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-gap: 6px;
    margin: 0;
}

.payment-value-code-image {
    border: 1px dashed var(--gray);
    border-radius: 5px;
    padding: 4px;
    width: 100%;
    height: 76px;
    font-size: 12px;
    object-fit: contain;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.payment-value-code-name {
    font-size: 14px;
    display: block;
    text-align: center;
}

.advisory input,
.method-item input,
.panel-checkout .radio input {
    position: absolute;
    visibility: hidden;
}

.method-item {
    position: relative;
}

.geekmark {
    height: var(--gap20);
    width: var(--gap20);
    min-width: var(--gap20);
    border-radius: var(--gap18);
    display: block;
    border: 2px solid #aaa;
    transition: all 250ms ease;
    position: relative;
}

.advisory {
    margin: 0;
    padding: 0 0 0 !important;
}
.advisory .geekmark {
    position: relative;
    top: auto;
    left: auto;
    bottom: -3px;
    right: auto;
    border-radius: 2px;
    margin-right: var(--gap10);
}

.advisory input:checked ~ .geekmark {
    border: 2px solid #43c0e4;
    background-color: #43c0e4;
}

.geekmark:after {
    content: "";
    position: absolute;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    width: var(--gap10);
    height: var(--gap10);
    background-color: var(--primary);
    -webkit-transition: opacity 300ms ease-in-out;
    -moz-transition: opacity 300ms ease-in-out;
    -ms-transition: opacity 300ms ease-in-out;
    -o-transition: opacity 300ms ease-in-out;
}

.method-list-contain {
    display: grid;
    grid-gap: 6px;
    margin-bottom: 14px;
}

.method-item-content {
    --paymentIcon: 24px;
    width: 100%;
    display: grid;
    grid-template-columns: var(--paymentIcon) calc(100% - var(--paymentIcon) - 12px);
    grid-gap: 14px;
}

.method-item-content .method-icon {
    width: var(--paymentIcon);
    height: var(--paymentIcon);
    min-width: var(--paymentIcon);
    padding: 2px;
    mix-blend-mode: multiply;
}

#more-payment-method-online {
    color: #288ad6; 
    cursor: pointer; 
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#more-payment-method-online.less svg {
    transform: rotate(180deg);
}

.payment-method-content-box {
    display: none;
}

.payment-method-content-box.grid2col {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 16px;
    cursor: default;
    width: calc(100% - 16px);
    padding-top: 16px;
    border-top: 1px solid #e1e1e1;
    margin-top: 16px;
}

.payment-method input:checked ~ label .method-item-content .method-content .payment-method-content-box {
    display: grid;
}

.banking-content {
    background-color: var(--primary);
    color: #fff;
    width: fit-content;
    margin: 6px auto;
    line-height: 32px;
    border-radius: 44px;
    text-align: center;
    padding: 4px 18px;
    -webkit-border-radius: 44px;
    -moz-border-radius: 44px;
    -ms-border-radius: 44px;
    -o-border-radius: 44px;
}

.banking-step > div:first-child {
    font-weight: 600;
    font-size: 15px;
}

.banking-note {
    text-align: center;
    font-style: italic;
    font-size: 14px;
}

.payment-method label:hover .geekmark::after {
    opacity: 1;
    border-color: var(--borderColor);
    background-color: #aaa;
}

.advisory:hover .geekmark::after,
.payment-method label:hover .geekmark::after,
.advisory input:checked ~ .geekmark::after,
.payment-method input:checked ~ label .geekmark:after {
    opacity: 1;
}

.payment-method input:disabled ~ label {
    opacity: 0.8;
    cursor: not-allowed;
}

.payment-method input:disabled ~ label .geekmark {
    border-color: #aaa;
}

.payment-method input:disabled ~ label img {
    opacity: 0.6;
    filter: brightness(0) invert(0);
    -webkit-filter: brightness(0) invert(0);
}

.payment-method input:disabled ~ label .geekmark::after {
    background-color: var(--gray);
}

.payment-method input:disabled ~ label .geekmark::after {
    background-color: var(--gray);
    opacity: 0;
}

.payment-method input:checked ~ label .geekmark::after {
    background-color: var(--primary-dk);
    opacity: 1;
}

.advisory:hover .geekmark {
    border-color: var(--primary);
}

.box-info-payment {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.bank-pay {
    margin-right: 25px;
}

.panel-checkout .form-horizontal .control-label {
    text-align: left;
    padding-left: 25px;
    font-weight: normal;
}

#panel_order .footer td#cell_delivery_fee_value {
    padding-left: 0;
}

.payment-method label + label {
    border-top: 1px solid #ddd;
}

.payment-method label input[type="radio"] {
    margin-top: var(--gap20);
    margin-right: var(--gap20);
}

.panel-checkout .media {
    margin-top: 0;
}

.gateway label {
    display: flex;
    justify-items: flex-start;
    align-items: center;
    padding: 0 !important;
    grid-gap: var(--gap10);
}

.payment-method label .media {
    --imageIcon: 48px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--gap12);
    overflow: visible;
}

.payment-method label .media-left {
    width: var(--imageIcon);
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
    transition: width 300ms ease-in-out;
}

.payment-method label .media-left::before {
    content: "";
    padding-top: 100%;
    display: block;
}

.payment-method label .media-left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.payment-method h4 + p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

.payment-method .media-heading {
    font-size: 16px;
    margin-bottom: 0;
}

/**/
.payment-method-title {
    display: flex;
    align-items: center;
    grid-gap: 8px;
    font-size: 18px;
    font-weight: 700;
}

.checkout-total-wrapper {
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    padding: 16px 0;
    display: flex;
    justify-content: flex-end;
}

.checkout-total-item .checkout-total-label {
    color: #A3A3A3;
    font-size: 16px;
    min-width: 200px;
}

.checkout-total-item .checkout-total-value {
    font-size: 16px;
    color: #0A0A0A;
    text-align: right;
}

.checkout-total-item {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-gap: 24px;
    align-items: center;
}

.checkout-total-item + .checkout-total-item {
    margin-top: 16px;
}

.checkout-total-item .checkout-total-value.total-price {
    color: var(--price);
    font-weight: 700;
    font-size: 24px;
    background: transparent;
}

.place-order-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
}

.place-order-term {
    color: #525252;
}

.place-order-button {
    border-radius: 4px;
    background: var(--Price-Color, #D80D0D);
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.12);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 24px;
    min-width: 200px;
    border: 0;
    position: relative;
}

.place-order-button .opacity {
    opacity: 0;
}

.cart-item-title-wrapper, .cart-item-title-wrapper:hover {
    color: #0A0A0A;
}

.cart-item-box .cart-item-variant {
    cursor: default;
}

.cart-item-box .cart-item-variant:hover {
    text-decoration: none;
}

.cart-item-variant-checkout {
    font-size: 14px;
}

.cart-item-img-wrapper img{
    width: 100%;
    height: 100%;
}

.cart-item-title-wrapper .underage-wrapper {
    position: relative;
}

.cart-item-title-wrapper .underage-wrapper::before {
    content: "18+";
    position: absolute;
    inset: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    border-radius: 100%;
    top: 50%;
    left: 50%;
    width: 60%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.cart-item-title-wrapper .underage {
    filter: blur(2px);
}

.cart-item-has-key {
    font-size: 13px; 
    font-style:italic;
}

/* Voucher */
.promotion-code-content {
    font-weight: normal;
    cursor: pointer;
    padding: 8px 0;
    margin: 0;
}

.promotion-code-text::after {
    content: " " attr(data-promotion-text) "";
    color: var(--primary);
}

.promotion-code-text {
    font-size: 13px;
    flex: 1;
    height: fit-content;
    width: fit-content;
}

.promotion-code-content-top {
    position: relative;
}

.promotion-code-message {
    color: #EC4747;
    font-size: 13px;
    display: block;
    margin-top: 4px;
}

.promotion-code-text strong:first-child {
    font-size: 17px;
    border-radius: 4px;
}

.promotion-code-text > div:not(:has(strong)):last-child {
    font-size: 12px;
    display: inline-block;
}

.promotion-input-group {
    position: relative;
}

.btn-clear-promotion {
    position: absolute;
    right: 10px;
    top: 3px;
    border: none;
    background-color: transparent;
    padding: 0px;
    margin: 0px;
    color: #555;
    font-size: 25px;
}

.promotion-code-popup-wrapper {
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 11, 0.5);
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.promotion-code-popup {
    box-shadow: 0 0 3px rgba(11, 11, 11, 0.25);
    border-radius: 8px;
    background-color: #fff;
    margin-bottom: 0;
    width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    max-height: 600px;
    overflow-y: hidden;
}

.promotion-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 12px;
    border-bottom: 1px solid #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #fff;
}

.promotion-code-body {
    padding: 0 16px 12px;
}

.procode-gr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-gap: 8px;
    padding: 12px 0 0;
    position: sticky;
    top: 58.7px;
    z-index: 2;
    background: #fff;
}

.input-promotion-code {
    height: 40px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
}

.submit_promotion_code {
    background: var(--primary);
    color: #fff;
    border: 0;
    padding: 8px 16px;
    border-radius: 8px;
}

.submit_promotion_code[disabled] {
    cursor: not-allowed;
}

.promotion-code-item {
    display: flex;
    align-items: stretch;
    grid-gap: 10px;
    margin-top: 12px;
    border: 2px solid #e3e3e3;
    border-radius: 8px;
}

.promotion-code-item-disable {
    opacity: 0.5;
    pointer-events: none;
}

.promotion-code-item svg {
    border-radius: 8px 0 0 8px;
    width: 66px;
    height: 100%;
}

.promotion-code-item .promotion-code-img {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    min-height: 100px;
}

.promotion-code-item .promotion-code-img,
.promotion-code-item .promotion-code-img img {
    border-radius: 8px 0 0 8px;
}

.promotion-code-item .promotion-code-img-chiaki {
    background-color: #139CC6;
}

.promotion-code-item .promotion-code-img-freeship-extra {
    background-color: #FFF000;
}

.promotion-code-item .promotion-code-img-normal-freeship {
    background-color: #00C090;
}

.promotion-code-item .promotion-code-img-shop {
    background-color: #ACE7F6;
}

.promotion-code-footer {
    padding: 16px 16px 20px 16px;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -4px 12px 0 rgba(0, 0, 0, 0.04);
    background: #fff;
    z-index: 9;
}

.promotion-code-btn-agree {
    width: 100%;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 8px 24px;
    border-radius: 4px;
}

.promotion-code-btn-agree:hover {
    background: var(--primary-dk);
}

.promotion-code-checkbox-input {
    display: none;
}

.promotion-code-checkbox-input + .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    display: block;
    border-radius: 50px;
    position: relative;
}

.promotion-code-checkbox-input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.promotion-code-checkbox-input:checked + .checkmark::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    position: absolute;
    border-radius: 50px;
}

.promotion-code-checkbox {
    cursor: pointer;
    display: flex;
    align-items: center;
    margin: 0;
    padding-right: 10px;
    width: 100%;
    justify-content: flex-end;
}

.promotion-code-close {
    display: flex;
    cursor: pointer;
}

.chiaki-voucher-wrapper .chiaki-voucher {
    display: grid;
    align-items: center;
    grid-template-columns: 24px minmax(0, 1fr) max-content 16px;
    grid-template-areas: "promoIcon promoContent promoAction promoArrow";
    grid-gap: 8px;
    cursor: pointer;
}

.chiaki-voucher-wrapper {
    margin-bottom: 16px;
}

.checkout-address-close {
    display: flex;
    cursor: pointer;
}

.method-content-sub-title {
    display: none;
    width: 100%;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 16px;
    max-height: 370px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    align-items: flex-start;
    font-size: 16px;
    color: #595959;
    padding: 16px;
    border: 1px solid var(--gray);
    border-radius: 5px;
}

.payment_type:checked ~ .method-content-sub-title {
    display: grid;
    margin-top: 16px;
}

.payment-method .radio:hover {
    background: transparent;
}

.payment-value-code-label:hover img {
    border-color: var(--primary);
}

.payment-method .radio.gateway {
    padding: 10px 36px 10px 28px;
}

.payment-method .radio.gateway.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.checkout-address-wrapper {
    background-image: url("/images/line-bg.png");
    background-repeat: repeat-x;
    background-position: top left;
}

.payment_value:checked ~ .payment-value-code-label img {
    border: 1px solid var(--primary);
}

.payment_value:checked ~ .payment-value-code-label::after {
    border-radius: 5px;
    content: "";
    width: 0;
    height: 0;
    border-left: 0px solid transparent;
    border-right: 30px solid transparent;
    border-top: 30px solid var(--primary);
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.payment_value:checked ~ .payment-value-code-label::before {
    content: "";
    width: 10px;
    height: 5px;
    position: absolute;
    top: 6px;
    left: 5px;
    z-index: 2;
    transform: rotate(-45deg);
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    pointer-events: none;
}

.payment_type:checked ~ .method-item-label {
    border-radius: 5px 5px 0 0;
    -webkit-border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    -ms-border-radius: 5px 5px 0 0;
    -o-border-radius: 5px 5px 0 0;
}

.gateway .payment-value-code-label {
    position: relative;
}

.payment-type {
    order: 2;
}

.last-used-payment {
    order: 1;
}

.checked-upon-head-icon {
    color: var(--primary);
}

.checked-upon-delivery {
    position: relative;
}

.checked-upon-head {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    grid-gap: 6px;
    cursor: pointer;
    color: #0A0A0A;
    font-size: 16px;
    cursor: pointer;
}

.checked-upon-head:hover {
    color: var(--primary);
}

.checked-upon-head span {
    line-height: 1;
}

.checked-upon-content {
    background-color: #fff;
    width: 100%;
    max-width: 480px;
    padding: 24px 32px;
    border-radius: 7px;
    box-shadow: 0 6px 36px rgba(11 11 11 / 15%);
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 15px;
    z-index: 9999;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    -o-border-radius: 7px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

.stardust-popup-list {
    display: grid;
    grid-gap: 8px;
}

.checked-upon-background {
    width: 100vw;
    height: 100vh;
    background-color: rgba(11 11 11 / 44%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    display: none;
    pointer-events: none;
}

.stardust-close {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    color: #797979;
}

.stardust-close:hover {
    color: var(--primary);
}

.checked-upon-delivery.active .checked-upon-content {
    opacity: 1;
    pointer-events: all;
}

.checked-upon-delivery.active .checked-upon-background {
    display: block;
    pointer-events: all;
}

.stardust-popup-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 16px;
}

.shipping-method-item input {
    display: none;
}

.shipping-method-item input:disabled {
    cursor: not-allowed;
}

.shipping-method-label {
    display: block;
    background: #fafafa;
    padding: 8px 8px 8px 20px;
    margin-bottom: 0;
    border-radius: 4px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
    position: relative;
    cursor: pointer;
    min-height: 63px;
}

.shipping-method-label.disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.shipping-method-label .shipping-method-title {
    font-weight: 400;
}

.shipping-method-time {
    color: #A3A3A3;
    font-weight: 400;
    font-size: 14px;
}

.shipping-method-price {
    grid-row-start: span 2;
}

.shipping-method-label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-right: 24px solid transparent;
    border-top: 24px solid transparent;
    border-top-left-radius: 4px;
    pointer-events: none;
}

.shipping-method-label::after {
    content: "";
    width: 10px;
    height: 5px;
    display: block;
    border-left: 1px solid transparent;
    border-bottom: 1px solid transparent;
    transform: rotate(-45deg);
    position: absolute;
    top: 4px;
    left: 2px;
    pointer-events: none;
}

.shipping-method-item input[type="radio"]:checked ~ .shipping-method-label {
    background: #EDFBFD;
}

.shipping-method-item input[type="radio"]:checked ~ .shipping-method-label::before {
    border-top: 24px solid var(--primary);
}

.shipping-method-item input[type="radio"]:checked ~ .shipping-method-label::after {
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.shipping-method-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 16px;
}

.shipping-method-heading {
    display: flex;
    align-items: center;
    grid-gap: 8px;
    margin-bottom: 12px;
}

.shipping-method-heading span {
    line-height: 1;
    color: #0A0A0A;
}

.checkout-address-item-label > input[type="radio"] {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.checkout-address-item-label .radio-mark {
    height: var(--gap18);
    width: var(--gap18);
    min-width: var(--gap18);
    border-radius: var(--gap18);
    display: block;
    border: 2px solid #aaa;
    transition: all 250ms ease;
    position: relative;
}

.checkout-address-item-label .radio-mark::after {
    content: "";
    position: absolute;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    width: var(--gap8);
    height: var(--gap8);
    background-color: #aaa;
    -webkit-transition: opacity 300ms ease-in-out;
    -moz-transition: opacity 300ms ease-in-out;
    -ms-transition: opacity 300ms ease-in-out;
    -o-transition: opacity 300ms ease-in-out;
}

.checkout-address-item-label:hover .radio-mark::after {
    opacity: 1;
}

.checkout-address-item-label input:checked ~ .radio-mark {
    border-color: var(--primary);
}

.checkout-address-item-label input:checked ~ .radio-mark::after {
    opacity: 1;
    background-color: var(--primary);
}

.promotion-code-txt {
    line-height: 1;
}

.promotion-code-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-gap: 0;
    padding: 16px 0;
}

.order-loader {
    width: 16px;
    height: 16px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    position: absolute;
    left: calc(50% - 8px);
    top: calc(50% - 8px);
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

.checkout-address-field .form-control {
    line-height: 1;
    padding: 10px 12px;
}

.download-app-banner {
    margin-top: 16px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-app-banner img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

@media (min-width: 780px) and (max-width: 1288px) {
    .promotion-code-popup-wrapper,
    .checkout-address-popup-wrapper {
        z-index: 99999;
    }
}

.promotion-code-selected {
    font-size: 13px;
}

.promotion-code-selected span {
    display: block;
    color: #EC4747;
}

.opent-promotion-detail-popup {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: inline-block;
    position: relative;
    pointer-events: auto;
}

.unsave-promotion-code {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    min-width: 50px;
    border-radius: 4px;
    font-size: 13px;
    width: fit-content;
    padding: 2px 4px;
    color: #2199c4;
    margin: 4px 0 0;
    border: 1px solid #2199c4;
    height: 24px;
}

.unsave-promotion-code:hover {
    color: #fff;
    background: #2199c4;
    border: 1px solid #2199c4;
}

.unsave-promotion-code.is-loading:hover {
    background: #fff;
}

.opent-promotion-detail-popup:hover {
    text-decoration: underline;
}

.promotion-code-content {
    position: relative;
    height: fit-content;
    width: fit-content;
    min-width: fit-content;
}

.promotion-code-content .opent-promotion-detail-popup {
    cursor: pointer;
    display: block;
    position: absolute;
    pointer-events: auto;
    bottom: 8px;
    right: 0;
    width: 100%;
    height: 20px;
}

/* Promotion Detail Popup */
.cart-discount-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 11, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    visibility: visible;
    opacity: 1;
}

.cart-discount-page .cart-discount-popup {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 6px 36px rgba(11, 11, 11, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
}

.cart-discount-popup-content {
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.cart-discount-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    background: #fff;
    z-index: 10;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.cart-discount-title {
    font-size: 18px;
    font-weight: 700;
    color: #0A0A0A;
}

.cart-discount-header svg {
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-discount-header svg:hover {
    color: var(--primary);
}

.cart-discount-voucher-card {
    padding: 10px 20px;
    margin-bottom: 50px;
    background: var(--primary-dk);
}

.cart-discount-voucher-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    position: relative;
    bottom: -50px;
    box-shadow: 0px 4px 4px -2px #e5e5e5;
    border-radius: 4px;
}

.cart-discount-voucher-card-inner .promotion-code-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-discount-voucher-card-inner .promotion-code-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-discount-voucher-info {
    flex: 1;
}

.cart-discount-voucher-name {
    font-size: 18px;
    font-weight: 600;
    color: #0A0A0A;
    margin: 0 0 4px 0;
}

.cart-discount-voucher-minorder {
    font-size: 14px;
    color: #525252;
    margin-bottom: 4px;
}

.cart-discount-voucher-expire {
    font-size: 14px;
    color: #EC4747;
}

.cart-discount-section {
    padding: 16px 20px;
}

.cart-discount-section:last-of-type {
    border-bottom: none;
}

.cart-discount-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #0A0A0A;
    margin: 0 0 8px 0;
}

.cart-discount-section-content {
    font-size: 14px;
    color: #525252;
    line-height: 1.5;
}

.cart-discount-applicable-products .cart-discount-section-content p {
    margin-bottom: 0;
}

.cart-discount-line {
    margin-bottom: 8px;
}

.cart-discount-line:last-child {
    margin-bottom: 0;
}

.cart-discount-note {
    margin-bottom: 12px;
}

.cart-discount-bullet-list {
    margin: 8px 0;
    padding-left: 16px;
}

.cart-discount-bullet-item {
    margin-bottom: 4px;
}

.cart-discount-bullet-item:last-child {
    margin-bottom: 0;
}

.cart-discount-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.cart-discount-link:hover {
    text-decoration: underline;
}

.cart-discount-shippers-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cart-discount-shippers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-discount-shippers-item {
    font-size: 14px;
    color: #525252;
    margin-bottom: 4px;
    position: relative;
}

.cart-discount-shippers-item::before {
    color: #A3A3A3;
    position: absolute;
    left: 0;
}

.cart-discount-shippers-item:last-child {
    margin-bottom: 0;
}

.cart-discount-terms-line {
    margin-bottom: 8px;
}

.cart-discount-terms-line:last-child {
    margin-bottom: 0;
}

.cart-discount-code {
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    color: var(--primary);
}

.cart-discount-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid #f5f5f5;
    background: #fff;
    border-radius: 0 0 8px 8px;
    flex-shrink: 0;
}

.cart-discount-accept {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-discount-accept:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
}

.cart-discount-accept:active {
    transform: translateY(1px);
}

.checkout-total-item .cart-loading-item {
    background-size: 400% 400%;
}

.voucher-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: voucher-spin 0.6s linear infinite;
}

.voucher-save-btn:disabled .voucher-loading-spinner {
    border-color: white;
    border-top-color: transparent;
}

@keyframes voucher-spin {
    to {
        transform: rotate(360deg);
    }
}