.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.cart-wrapper {
    margin-bottom: 20px;
    min-height: calc(85vh - 197px);
}

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

.cart-container {
    max-width: 970px;
    width: 100%;
    margin: auto;
    padding: 16px 0;
}

.cart-table-head,
.cart-item-by-shop,
.cart-table-bottom,
.checkout-address-wrapper,
.payment-method-wrapper,
.chiaki-voucher-wrapper {
    padding: 16px 12px;
    border-radius: 1px;
    border: 0.4px solid var(--Neutral-200, #E5E5E5);
    background: #FFF;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
}

.cart-table-head,
.cart-item-box {
    display: grid;
    grid-template-columns: 20px 3fr 1fr 1.5fr 1fr 1fr;
    grid-gap: 12px;
    align-items: center;
}

.cart-table-head-title {
    text-align: center;
    color: #525252;
    margin: 0;
}

.selectLabelCartProduct {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 6px;
    line-height: 18px;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}

.selectCartProduct {
    opacity: 0;
    position: absolute;
}

.selectCartProduct ~ span {
    border: 1px solid #e1e1e1;
    width: var(--gap20);
    min-width: var(--gap20);
    height: var(--gap20);
    display: block;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    transition: border-color 200ms ease-in-out;
}

.selectCartProduct ~ span::before {
    content: "";
    width: 5px;
    height: var(--gap12);
    display: block;
    position: absolute;
    bottom: 4px;
    right: 6px;
    transform: scale(0.4) rotate(45deg);
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    opacity: 0;
    transition: all 200ms ease-in-out;
}

.selectCartProduct ~ span:hover {
    border-color: var(--primary);
}

.selectCartProduct:checked ~ span {
    border-color: var(--primary);
}

.selectCartProduct:disabled ~ span::before,
.selectCartProduct:disabled ~ span {
    border-color: #999;;
}

.selectCartProduct:checked ~ span::before {
    transform: scale(1) rotate(45deg);
    opacity: 1;
}

.bold-title {
    color: #0A0A0A;
    font-weight: 600;
}

.cart-item-by-shop {
    margin: 16px 0;
}

.shop-title-wrapper {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-gap: 12px;
}

.cart-item-by-shop .shop-title {
    display: flex;
    align-items: center;
    grid-gap: 12px;
    color: #0A0A0A;
    font-weight: 600;
}

.cart-item-by-shop > div {
    padding: 16px 0;
    border-top: 1px solid #f5f5f5;
}

.cart-item-by-shop > div:first-child {
    border-top: 0;
    padding-top: 0;
}

.cart-item-title-wrapper {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    grid-gap: 12px;
}

.cart-item-title-wrapper:hover {
    color: var(--primary);
}

.cart-item-title .cart-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #0A0A0A;
}

.cart-item-box .cart-item-variant {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 4px;
    border: 1px solid #e1e1e1;
    padding: 3px 6px 2px 8px;
    border-radius: 5px;
    background: #f5f5f5;
    width: fit-content;
    margin-top: 4px;
    max-width: 100%;
}

.cart-item-box .cart-item-title .cart-item-variant:hover {
    opacity: 0.8;
}

.cart-item-box .cart-item-title .cart-item-variant {
    cursor: pointer;
}

.cart-item-box .cart-item-variant span{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #0a0a0a;
}

.cart-item-quantity input {
    width: 60px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    height: 36px;
    line-height: 36px;
    text-align: center;
}

.cart-item-variant .promotion-code-arrow {
    transform: rotate(90deg);
    color: #0000008a;
    min-width: 12px;
    width: 12px;
    height: 12px;
}

.cart-item-quantity input::-webkit-outer-spin-button,
.cart-item-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-price {
    color: var(--price);
    font-weight: 600;
    text-align: right;
    line-height: 1.2;
}

.cart-item-price .cart-item-price-old {
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
    color: #A3A3A3;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #0A0A0A;
    grid-gap: 4px;
}

.cart-item-quantity-minus, .cart-item-quantity-plus {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--Neutral-200, #E5E5E5);
    background: var(--Neutral-50, #FAFAFA);
    line-height: 36px;
    cursor: pointer;
}

.cart-item-price-total {
    text-align: center;
    font-weight: 700;
}

.cart-item-delete {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: var(--price);
    grid-gap: 4px;
    font-weight: 700;
    background-color: transparent;
    border: none;
}

.cart-table-bottom .cart-item-delete {
    width: fit-content;
}

.cart-item-delete:hover,
.cart-item-delete:focus {
    color: var(--price);
}

.promotion-code-btn {
    align-items: center;
    grid-gap: 8px;
    line-height: 1;
    cursor: pointer;
    color: #0A0A0A;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) max-content 16px;
    grid-template-areas: "promoIcon promoContent promoAction promoArrow";
}

.promotion-code-icon {
    grid-area: promoIcon;
}

.promotion-code-txt {
    grid-area: promoContent;
}

.promotion-discount-value-wrapper {
    grid-area: promoAction;
    display: flex;
    align-items: center;
    grid-gap: 6px;
}

.promotion-code-arrow {
    grid-area: promoArrow;
}

.promotion-code-btn:hover {
    color: var(--primary);
}

.promotion-discount-value {
    background: #EDFBFD;
    padding: 6px 8px;
    color: #139CC6;
}

.shipping-info-box {
    display: flex;
    align-items: center;
    grid-gap: 8px;
    line-height: 1;
    height: 14px;
}

.shipping-info-box .shipping-fee {
    margin: 0;
    color: #0A0A0A;
    font-size: 16px;
}

.shipping-info-box .shipping-time {
    color: #A3A3A3;
    margin-left: 5px;
}

.cart-table-bottom {
    display: grid;
    grid-template-columns: 20px 1fr 1fr 1fr 1fr;
    grid-gap: 12px;
    align-items: center;
    position: sticky;
    bottom: 0;
    z-index: 99;
}

.cart-table-bottom-title {
    margin: 0;
}

.cart-summary {
    display: flex;
    align-items: center;
    grid-gap: 8px;
    justify-items: center;
    position: relative;
}

.cart-summary-price {
    text-align: right;
    color: #525252;
    cursor: pointer;
}

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

.cart-summary-price .cart-save-price {
    color: #0A0A0A;
    margin-left: 4px;
}

.cart-summary svg {
    cursor: pointer;
}

.cart-table-bottom .btn-checkout {
    border-radius: 4px;
    background: var(--Price-Color, #D80D0D);
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.12);
    border: 0;
    color: #fff;
    padding: 12px 24px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.cart-price-detail {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    background: #fff;
    width: 450px;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
    padding: 16px 24px;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

.cart-summary:hover .cart-price-detail {
    opacity: 1;
    visibility: visible;
}

.cart-price-detail-title {
    font-size: 20px;
    color: #0A0A0A;
    margin-bottom: 8px;
}

.cart-price-detail-row:not(.cart-price-detail-row-last) {
    display: flex;
    justify-content: space-between;
}

.cart-price-detail-row {
    padding: 10px 0;
    border-top: 1px solid #F5F5F5;
    font-size: 15px;
}

.cart-price-detail-row-last .cart-price-detail-row {
    border: 0;
    padding: 0 0 4px 0;
}

.final-payment-amount {
    text-align: right;
    color: #A3A3A3;
    font-size: 15px;
}

.cart-save-price {
    color: var(--price);
}

/* promotion code */

.promotion-span {
    width: 100%;
    height: 100%;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99828;
}

.promote-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 620px;
    max-height: 70vh;
    background-color: #fff;
    border-radius: 7px;
    box-shadow: 0 6px 36px rgba(11 11 11 / 22%);
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.input-group.procode-gr {
    display: flex !important;
    justify-content: flex-start;
    align-items: stretch;
    position: sticky;
    top: 0;
    left: 0;
    padding: 0 16px;
    z-index: 5;
    border-radius: 9px 9px 0 0;
    background-color: #fff;
    box-shadow: 0 6px 36px rgba(255 255 255 / 70%);
}

.input-group.procode-gr .form-control {
    border: 2px solid #e1e1e1;
    border-right: none;
    box-shadow: none;
    height: 48px;
}

.promote-content .close-apply-code {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.promote-content .close-apply-code:hover {
    color: var(--price);
}

.input-group.procode-gr .submit_promotion_code {
    border-radius: 0 5px 5px 0;
    border: none;
}

.promote-content .code-apply-item-wrapper {
    margin: 0;
    padding: 0;
    max-height: fit-content;
    display: flex;
    flex-direction: column;
    grid-gap: 16px;
    overflow: visible;
}

.promote-content .code-apply-item-wrapper .code-apply-item {
    padding: 0;
    margin: 0;
}

.promote-content .code-apply-item-wrapper .code-apply-item .code-apply-content::before {
    top: -10px;
}

.promote-content .code-apply-item-wrapper .code-apply-item .code-apply-content::after {
    bottom: -10px;
}

.promotion-span .code-apply-background {
    z-index: 1;
    opacity: 1;
}

.promotion-span .code-apply-title {
    margin: 0;
    padding: 12px 10px 0 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.input-apply-code {
    --ip: 20px;
    cursor: pointer;
    color-adjust: exact;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    border: 1px solid #d1d1d1;
    display: block;
    margin: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    vertical-align: top;
    height: var(--ip);
    min-height: var(--ip);
    width: var(--ip);
    min-width: var(--ip);
    outline: none;
    z-index: 1;
}

.input-apply-code[type="radio"] {
    border-radius: var(--ip);
}

.input-apply-code[type="checkbox"] {
    border-radius: 5px;
}

.input-apply-code:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.input-apply-code:checked[type=radio] {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 10 3 3 6-6'/%3E%3C/svg%3E");
}

.code-apply-item .apply-text {
    display: block;
    margin: 0;
}

.code-apply-item .code-apply-logo {
    min-width: var(--w);
    border-radius: 4px;
    background-color: var(--header-color);
    border-right: 1px solid #e8e8e8;
}

.code-apply-item .code-apply-logo.code-store {
    background-color: inherit !important;
}

.code-apply-item .code-apply-content {
    margin: 0;
    width: 100%;
    font-weight: 500;
    color: #494949;
    border-left: none;
    padding: 12px 32px 12px 16px;
    border-color: #d6d6d6;
}

.code-apply-item .code-apply-content strong,
.code-apply-item .code-apply-content b {
    color: #111;
}

.code-apply-item .code-apply-content::after,
.code-apply-item .code-apply-content::before {
    border-color: transparent #d6d6d6 #d6d6d6 transparent;
}

.input-apply-code {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    display: block;
}

.action-promotion {
    display: flex; 
    justify-content: space-between; 
    padding: 0 16px;
    font-size: 13px !important;
    margin-top: 5px;
    margin-bottom: 10px;
}

.promotion-span .choose-discount-code {
    user-select: none;
    padding: 0 16px 12px 16px;
    color: var(--primary);
}
.promotion-span .choose-discount-code:empty {
    display: none;
}

.promotion-span .choose-discount-code:hover {
    color: var(--primary);
}

.code-apply-background {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    opacity: 1;
    pointer-events: all;
    background: radial-gradient(ellipse closest-corner,rgba(0,0,0,.2) 1%,rgba(0,0,0,.7) 100%);
}

.code-apply-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    font-weight: 600;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Arial, sans-serif;
    font-size: 19px;
    color: #666;
    user-select: none;
    padding: 16px 20px 0;
}

.code-apply-title small {
    text-transform: none;
    font-size: 15px;
    color: #666;
    margin-right: auto;
    margin-left: 7px;
    font-weight: normal;
}

.close-apply-code {
    color: #999;
    cursor: pointer;
}

.code-apply-logo {
    width: var(--w);
    position: relative;
    display: block;
}

/* Cart loading */
.cart-loading-item {
    background: linear-gradient(45deg, rgba(209,209,209,0.35), rgba(11,11,11,0.1), rgba(209,209,209,0.1), rgba(209,209,209,0.15));
    animation: gradient 3000ms ease infinite;
    border-radius: var(--borderRadius);
    min-height: var(--gap20);
    margin-bottom: 16px;
    height: 100%;
}

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

.cart-loading-group {
    margin-bottom: 16px;
}

.cart-loading-item.cart-loading-head,
.cart-loading-item.cart-loading-footer {
    width: 100%;
    height: 56px;
}


.cart-loading-group .cart-loading-item:first-child {
    content: "";
    height: var(--gap20);
    display: block;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 130px;
    height: 40px;
    background: linear-gradient(45deg, rgba(209,209,209,0.35), rgba(11,11,11,0.1), rgba(209,209,209,0.1), rgba(209,209,209,0.15));
	background-size: 400% 400%;
    animation: gradient 3000ms ease infinite;
}

.cart-loading-group .cart-loading-item:nth-child(2) {
    content: "";
    height: 90px;
    display: block;
    border-radius: 4px;
    margin-bottom: 2px;
    width: 100%;
    background: linear-gradient(45deg, rgba(209,209,209,0.35), rgba(11,11,11,0.1), rgba(209,209,209,0.1), rgba(209,209,209,0.15));
	background-size: 400% 400%;
    animation: gradient 3000ms ease infinite;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* Cart empty */
.order-by-phone-box {
    background-color: transparent;
    padding: 0;
    margin-top: var(--gap16);
    text-align: center;
}

#js-cart-empty {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.error-code-page {
    position: relative;
    width: 360px;
    margin: 0 auto;
}

.error-code-page::before {
    content: "";
    padding-top: 56.25%;
    display: block;
}

.error-code-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.cart-customer-review {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    column-gap: 6px;
    border-radius: var(--borderRadius);
    padding: 8px var(--gap12);
    text-decoration: none;
    border: 1px solid #d1d1d1;
    font-size: 15px;
    width: 100%;
    color: var(--black);
    margin-top: 24px;
}

.cart-customer-review-sbox {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 4px;
    margin-top: 6px;
    font-size: var(--gap14);
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.product-rating .rating-star-item {
    width: var(--gap20);
    min-width: var(--gap20);
    height: var(--gap20);
    margin: 0 2px;
}

.rating-star-item.star-on.haft-star {
    background: rgb(255, 188, 89);
    background: linear-gradient(90deg, rgba(255, 188, 89, 1) 0%, rgba(255, 188, 89, 1) 50%, rgba(204, 204, 204, 1) 50%, rgba(204, 204, 204, 1) 100%);
}

.cart-report-box {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    margin: var(--gap20) auto 0;
    padding: 8px var(--gap16);
    border: 1px solid #e1e1e1;
    border-radius: var(--borderRadius);
    width: 100%;
}

.cart-report-box img {
    width: 36px;
    height: 36px;
    margin-right: var(--gap10);
}

.risk-free-shopping {
    margin: 65px auto 25px;
    width: 100%;
    background-color: var(--cart-background);
    padding: var(--gap12);
    border-radius: 7px;
}

.risk-free-shopping .risk-free-title {
    font-size: var(--gap20);
    display: block;
    text-align: center;
    margin: 0;
    padding: var(--gap12) 0 var(--gap20);
    color: #333;
}

.risk-free-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
}

.risk-box {
    width: 25%;
    padding: 0 var(--gap12);
    text-align: center;
}

.risk-free-shopping svg {
    height: 40px;
}

.risk-free-shopping .risk-title {
    font-size: var(--gap16);
    margin-bottom: 7px;
    font-weight: bold;
}

.risk-free-shopping p {
    font-size: var(--gap14);
}

.cart-item-img-wrapper {
    background: #f8f8f8;
    position: relative;
    overflow: hidden;
}

.cart-item-img-wrapper img {
    mix-blend-mode: multiply;
    opacity: 1;
}

.cart-item-title .out-of-stock-label {
    background-color: var(--price);
    color: #fff;
    pointer-events: none;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 9px;
    padding: 4px 8px 3px;
}

.out-of-stock .cart-item-quantity-minus, 
.out-of-stock .cart-item-quantity-plus {
    cursor: default;
    pointer-events: none;
}

.out-of-stock .cart-item-quantity-input {
    cursor: default;
    pointer-events: none;
    background-color: #fafafa;
}

/* Combo */
.cart-item-by-shop .cart-combo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #b4e7f969;
    padding: 8px 12px;
    font-size: 14px;
}

.cart-combo-label {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 2px 6px;
    font-weight: 600;
    border-radius: 2px;
}

.cart-combo-content {
    display: inline-block;
}

.cart-combo-wrapper svg {
    color: var(--primary);
}

.cart-combo-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-by-shop > div.cart-item-box-has-combo {
    padding: 0;
    border: 1px solid #f5f5f5;
}

.cart-item-box-has-combo .cart-item-box {
    padding: 16px 12px;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-box-has-combo .cart-item-box:last-child {
    border-bottom: 0;
}

.cart-item-by-shop > div.cart-item-box {
    padding-left: 12px;
    padding-right: 12px;
}

.cart-item-by-shop > div.shop-title-wrapper {
    padding-left: 12px;
    padding-right: 12px;
}

.cart-table-head, .cart-table-bottom {
    padding: 16px 24px;
}
.product-order-label {
    font-size: 12px;
    color: rgb(238, 77, 45);
    border: 1px solid rgb(238, 77, 45);
    padding: 4px;
    border-radius: 2px;
    width: fit-content;
    line-height: 1;
}

.cart-item-title,
.product-order-label-wrapper {
    display: flex;
    flex-direction: column;
    grid-gap: 4px;
}

.cart-table-bottom-guide {
    grid-column-start: span 5;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
    cursor: pointer;
}

.cart-table-bottom-guide svg {
    color: #EC4747;
    animation: bounce 2s infinite;
    transform-origin: center;
}

.cart-table-bottom-guide-txt {
    color: var(--primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(4px);
    }
    60% {
        transform: translateY(2px);
    }
}

.cart-item-box.age-restricted {
    border: 2px solid #dc3545;
    position: relative;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

.age-restriction-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* Same store popup */
.item-same-store-wrapper {
    grid-column-start: span 6;
    position: relative;
}

.item-same-store-title {
    font-size: 16px;
    padding-left: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    grid-gap: 4px;
    background: #fefae0;
    padding: 8px 12px;
}

.same-store-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1000;
    background-color: transparent;
}

.same-store-popup {
    position: absolute;
    top: 50px;
    left: -12px;
    width: calc(100% + 24px);
    background: #fff;
    border-radius: 3px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--primary);
    padding: 16px;
}

/* .same-store-popup::before {
    position: absolute;
    top: -4px;
    left: calc(50% - 4px);
    display: block;
    z-index: 1;
    content: "";
    width: 8px;
    height: 8px;
    background-color: #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
} */

.item-same-store-append  .cart-item-box {
    padding: 16px 0;
}

.item-same-store-append  .cart-item-box + .cart-item-box {
    border-top: 1px solid #e5e5e5;
} 

.same-store-popup-body .cart-item-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-gap: 8px;
    position: relative;
}

.same-store-popup-body .icon-addtocart {
    right: 8px;
    bottom: 18px;
    width: 26px;
    height: 26px;
    cursor: pointer;
}

.same-store-popup-body .cart-item-price {
    text-align: left;
}

.item-same-store-append {
    padding-left: 32px;
}

.same-store-note {
    color: var(--price);
    font-size: 14px;
    grid-column-start: span 6;
}

.same-store-discount-label {
    font-size: 13px;
    padding: 2px 4px;
    background: #FEF2F2;
    border-radius: 4px;
    color: var(--price);
    margin-right: 4px;
    font-weight: 600;
}

.same-store-popup .same-store-discount-label,
.item-same-store-append .same-store-note {
    display: none;
}

.same-store-popup-body {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.same-store-popup .cart-item-img-wrapper::before {
    content: "";
    padding-top: 100%;
    display: block;
}

.same-store-popup .cart-item-img-wrapper {
    width: 100%;
    display: block;
}

.same-store-popup .cart-item-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #777;
    font-size: 11px;
    object-fit: contain;
    object-position: center;
    border-radius: 5px;
}

.same-store-popup .cart-item-title {
    color: var(--dark);
    line-height: 1.4;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 500;
    min-height: 45px;
}

.cart-item-box-has-combo .same-store-popup .cart-item-box {
    border-bottom: 0;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}



/* Same store popup */
.item-same-store-wrapper {
    grid-column-start: span 6;
    position: relative;
}

.item-same-store-title {
    font-size: 16px;
    padding-left: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    grid-gap: 4px;
    background: #fefae0;
    padding: 8px 12px;
}

.same-store-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1000;
    background-color: transparent;
}

.same-store-popup {
    position: absolute;
    top: 50px;
    left: -12px;
    width: calc(100% + 24px);
    background: #fff;
    border-radius: 3px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--primary);
    padding: 16px;
}

/* .same-store-popup::before {
    position: absolute;
    top: -4px;
    left: calc(50% - 4px);
    display: block;
    z-index: 1;
    content: "";
    width: 8px;
    height: 8px;
    background-color: #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
} */

.item-same-store-append  .cart-item-box {
    padding: 16px 0;
}

.item-same-store-append  .cart-item-box + .cart-item-box {
    border-top: 1px solid #e5e5e5;
} 

.same-store-popup-body .cart-item-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-gap: 8px;
    position: relative;
}

.same-store-popup-body .icon-addtocart {
    right: 8px;
    bottom: 18px;
    width: 26px;
    height: 26px;
    cursor: pointer;
}

.same-store-popup-body .cart-item-price {
    text-align: left;
}

.item-same-store-append {
    padding-left: 32px;
}

.same-store-note {
    color: var(--price);
    font-size: 14px;
    grid-column-start: span 6;
}

.same-store-discount-label {
    font-size: 13px;
    padding: 2px 4px;
    background: #FEF2F2;
    border-radius: 4px;
    color: var(--price);
    margin-right: 4px;
    font-weight: 600;
}

.same-store-popup .same-store-discount-label,
.item-same-store-append .same-store-note {
    display: none;
}

.same-store-popup-body {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.same-store-popup .cart-item-img-wrapper::before {
    content: "";
    padding-top: 100%;
    display: block;
}

.same-store-popup .cart-item-img-wrapper {
    width: 100%;
    display: block;
}

.same-store-popup .cart-item-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #777;
    font-size: 11px;
    object-fit: contain;
    object-position: center;
    border-radius: 5px;
}

.same-store-popup .cart-item-title {
    color: var(--dark);
    line-height: 1.4;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 500;
    min-height: 45px;
}

.cart-item-box-has-combo .same-store-popup .cart-item-box {
    border-bottom: 0;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}


.overflow-hidden {
    overflow: hidden;
}

.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: 25px;
    width: 500px;
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 0 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: 0 16px 12px;
    border-bottom: 1px solid #f5f5f5;
}

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

.procode-gr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-gap: 8px;
}

.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: grid;
    grid-template-columns: 66px minmax(0, 1fr) 30px;
    align-items: stretch;
    grid-gap: 10px;
    margin-top: 12px;
    border: 1px 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;
}

.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;
}

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

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

.promotion-code-item-wrapper {
    position: relative;
}

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

.promotion-code-checkbox-input:disabled + .checkmark {
    cursor: not-allowed;
    opacity: 0.5;
}

.voucher-no-product-warning {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 4px solid #ffc107;
    padding: 10px 14px;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.15);
    margin-top: 4px;
}

.voucher-no-product-warning svg {
    flex-shrink: 0;
    color: #ff9800;
    stroke-width: 2;
}

.voucher-no-product-warning span {
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

@keyframes growDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        max-height: 100px;
        padding-top: 10px;
        padding-bottom: 10px;
        transform: scaleY(1);
    }
}

.chiaki-coin-wrapper {
    grid-column-start: span 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 8px;
}

.chiaki-coin-action {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin: 0;
}

.chiaki-coin-action input {
    opacity: 0;
    width: 0;
    height: 0;
}

.chiaki-coin-action .toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e5e5;
    border-radius: 34px;
    transition: 0.3s;
}

.chiaki-coin-action .toggle::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.chiaki-coin-action input:checked + .toggle {
    background-color: var(--primary);
}

.chiaki-coin-action input:checked + .toggle::before {
    transform: translateX(24px);
}

.chiaki-coin-info {
    display: flex;
    align-items: center;
    grid-gap: var(--gap8);
    font-size: 15px;
    font-weight: 600;
}

.chiaki-coin-info span {
    display: block;
    line-height: 24px;
}

.chiaki-coin-help {
    color: #000;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
}

.checkout-wrapper .chiaki-coin-wrapper {
    border-top: 1px solid #f1f1f1;
    margin-top: 14px;
    padding-top: 14px;
}

.checkout-wrapper .chiaki-coin-info {
    font-weight: 400;
}

.cart-wrapper:not(.checkout-wrapper) .chiaki-coin-wrapper {
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
    padding: 8px 0;
}

.out-of-stock .selectLabelCartProduct span,
.out-of-stock .selectLabelCartProduct input {
    cursor: not-allowed;
    opacity: 0.3;
    width: var(--gap20);
    min-width: var(--gap20);
    height: var(--gap20);
    margin: 0;
}

.out-of-stock .cart-item-title-wrapper .cart-item-img-wrapper,
.out-of-stock .cart-item-title-wrapper .cart-item-title .cart-item-name,
.out-of-stock .cart-item-title-wrapper .voucher-label-wrapper,
.out-of-stock .cart-item-price,
.out-of-stock .cart-item-quantity,
.out-of-stock .cart-item-price-total {
    opacity: 0.3;
}

.promotion-code-list {
    position: relative;
    overflow: auto;
    max-height: 300px;
    margin-right: -16px;
    padding-right: 16px;
}

.cart-promotion-filter-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.cart-promotion-filter-radio input[type="checkbox"] {
    display: none;
}

.cart-promotion-filter-radio .cart-radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.cart-promotion-filter-radio input[type="checkbox"]:checked + .cart-radio-custom {
    border-color: var(--primary);
}

.cart-promotion-filter-radio input[type="checkbox"]:checked + .cart-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.cart-promotion-filter-radio .cart-radio-label {
    font-size: 14px;
    color: #333;
}

.cart-promotion-filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cart-promotion-filter-checkbox input {
    display: none;
}

.cart-promotion-filter-checkbox-box {
    width: 18px;
    height: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    transition: .2s;
    position: relative;
}

.cart-promotion-filter-checkbox:hover .cart-promotion-filter-checkbox-box {
    border-color: var(--primary, #2199c4);
}

.cart-promotion-filter-checkbox input:checked + .cart-promotion-filter-checkbox-box {
    border-color: var(--primary, #2199c4);
    background: #fff;
}

.cart-promotion-filter-checkbox input:checked + .cart-promotion-filter-checkbox-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--primary, #2199c4);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cart-promotion-filter-checkbox input:focus + .cart-promotion-filter-checkbox-box {
    box-shadow: 0 0 0 3px rgba(79,70,229,.25);
}

.cart-promotion-filter-checkbox .cart-promotion-filter-label {
    font-size: 14px;
    color: #333;
}

.cart-summary-price-loading {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    grid-gap: 6px;
}

.out-of-stock-wrapper {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.show-similar-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-gap: 2px;
    width: max-content;
    font-size: 12px;
    color: var(--primary);
    border-radius: 24px;
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
    transition: .3s ease;
}

.show-similar-product-btn:hover {
    color: #0a769d;
}

.similar-product-list-wrapper {
    border: 0 solid var(--primary);
    position: relative;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.similar-product-list-wrapper.open {
    background-color: #EDFBFD;
    max-height: 944px;
    opacity: 1;
    overflow-y: auto;
}

.cart-item-by-shop .similar-product-list-wrapper {
    padding: 0 16px;
}

.cart-item-by-shop .similar-product-list-wrapper.open {
    padding: 12px 16px;
}

.similar-product-list-wrapper .sp-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    flex-direction: column;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    grid-gap: 10px;
    padding: 8px 12px;
    border: 1px solid #D2F3FB;
}

.similar-product-list-wrapper .swiper-button-next,
.similar-product-list-wrapper .swiper-button-prev {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}

.similar-product-list-wrapper .swiper-button-next:hover,
.similar-product-list-wrapper .swiper-button-prev:hover {
    color: var(--primary);
}

.similar-product-list-wrapper .swiper-button-next {
    right: 0;
}

.similar-product-list-wrapper .swiper-button-prev {
    left: 0;
}

.similar-product-list-wrapper .swiper-button-next::after,
.similar-product-list-wrapper .swiper-button-prev::after {
    font-size: 14px;
    color: #333;
    font-weight: 700;
}

.similar-product-list-wrapper .swiper-button-next.swiper-button-disabled,
.similar-product-list-wrapper .swiper-button-prev.swiper-button-disabled {
    display: none;
}

.similar-product-list-wrapper .swiper-container {
    padding: 0 5px 5px; 
    height: max-content;
    margin: 0;
}

.sp-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    width: 100%;
}

.sp-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: sp-spin 1s linear infinite;
}

@keyframes sp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sp-img {
    position: relative;
    width: 100%;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.sp-img::before {
    content: "";
    padding-bottom: 100%;
    display: block;
}

.sp-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    border-radius: 4px;
}

.sp-content {
    padding: 0;
}

.sp-title {
    font-size: 15px;
    overflow: hidden;
    margin-bottom: 4px;
    color: #0A0A0A;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
    line-height: 1.2;
}

.sp-price-box {
    display: flex;
    align-items: baseline;
    grid-gap: 8px;
}

.sp-price {
    color: #0A0A0A;
    font-weight: 600;
    font-size: 16px;
}

.sp-original-price {
    font-size: 14px;
    color: #A3A3A3;
    text-decoration: line-through;
    line-height: 1;
}

.sp-add-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--Primary-500, #139CC6);
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 8px;
    bottom: 12px;
    cursor: pointer;
}

.similar-product-close {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9;
    color: #999;
    transition: all 0.2s ease;
}

.similar-product-close:hover {
    color: #333;
}  

.similar-product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.similar-product-title {
    text-transform: uppercase;
    color: #0A0A0A;
    font-size: 15px;
}

.simillar-popup-open svg {
    transform: rotate(180deg);
}

.show-similar-product-btn svg {
    transition: .3s ease;
}
