.error-border {
    border: 1px solid red;
}

.btn-order-primary {
    background-color: #d13933;
}

.btn-order {
    background-color: #8F7777;
}

.bg-light {
    height: 70px;
}
.bundle-button:hover {
    opacity: 0.8;
}

/*ヘッダーデザイン*/
.arrows {
    margin: auto !important;
    padding: 0px;
    /*white-space: nowrap;*/
    text-align: center;
}

.arrows li {
    display: inline-block;
    line-height: 15px;
    margin: 0 9px 0 -10px;
    padding: 0 10px 0 10px;
    position: relative;
    font-size: 14px;
}

.arrows li::before,
.arrows li::after {
    border-right: 1px solid #666666;
    content: '';
    display: block;
    height: 50%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    transform: skewX(45deg);
}

.arrows li::after {
    bottom: 0;
    top: auto;
    transform: skewX(-45deg);
}

.arrows li:last-of-type::before,
.arrows li:last-of-type::after {
    display: none;
}

.arrows .current_li {
    color: #ff0000;
    font-weight: bold;
}

.arrows .before_li {
    color: hsl(0, 0%, 40%);
}

.l-main {
    margin-top: 70px;
}

button {
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.card-products {
    border-color: #6c757d !important;
}
.itemname {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}

/* Custom CSS to make the card disabled */
.disabled-card {
    /*opacity: 0.6;*/
    pointer-events: none;
    position: relative;
    /* Make the parent of .disabled-overlay relative */
}

.disabled-overlay {
    position: absolute;
    top: 0%;
    /* Adjusted to top */
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(214 193 193 / 60%);
    z-index: 1;
}

.disabled-message {
    text-align: center;
    background: rgb(67 49 49 / 90%);
    border-radius: 8px;
    z-index: 2;
    font-size: 1.5rem;
    color: #ffff;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

@media (min-width: 577px) and (max-width: 896px) {
    .disabled-message {
        font-size: 2.6rem !important;
    }
}

.disabled-card .position-up {
    pointer-events: auto;
}

.button-position {
    position: relative;
    z-index: 1000;
    background: #fff;
}

/* SweetAlert2 custom design */
.swal2-popup {
    text-align: center;
}

.swal2-modal {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.swal2-title {
    font-size: 1.1em !important;
}

.swal2-html-container {
    font-size: 1em !important;
    text-align: left !important;
}

.swal2-popup {
    background-color: #f2f2f2 !important;
    box-shadow: 5px 5px 5px 0 rgba(0, 0, 0, 0.3);
}

.swal2-footer {
    display: flex;
    justify-content: center !important;
}

.swal2-confirm,
.swal2-deny,
.swal2-cancel {
    margin: 5px;
}

.swal2-confirm,
.swal2-deny,
.swal2-cancel {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    width: 100px;
    min-width: 100px;
}
.custom-confirm-button {
    margin-right: 30px;
}
/* Hide unnecessary elements in SweetAlert2 */
.swal2-icon,
.swal2-image,
.swal2-progress-steps,
.swal2-range,
.swal2-select,
.swal2-radio,
.swal2-checkbox,
.swal2-input,
.swal2-file,
.swal2-validation-message,
.swal2-timer-progress-bar-container {
    display: none !important;
}

.text-sum {
    text-align: left;
}

body {
    background: #ffffff;
    color: #2a2a2a;
}

.header.fixed-top {
    box-shadow: none;
}

.l-main {
    margin-top: 58px;
}

.col-12.text-center h5.font-weight-normal {
    margin-top: 2.2rem !important;
    font-size: 2rem;
    font-weight: 700 !important;
    color: #3a312f;
}

.col-12.text-danger h5 {
    margin: 1.4rem auto 1.55rem !important;
    max-width: 760px;
    font-size: 1.28rem;
    font-weight: 700 !important;
    line-height: 1.28;
    letter-spacing: 0.01em;
    color: #ff1f11 !important;
    text-align: center;
}

.resize-sm {
    max-width: 760px;
    margin: 0 auto;
}

.cart-item {
    margin-bottom: 6px;
    min-height: 160px;
    padding: 4px 10px !important;
    background: #fff;
    border: 1px solid #ddd5cf;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.cart-item .card {
    width: 100%;
    max-width: 170px;
    width: 170px;
    height: 170px;
    aspect-ratio: 1 / 1;
    margin: 0 auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: 0;
    box-shadow: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item .card > a {
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item .card-img {
    width: 170px !important;
    height: 170px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center center;
    display: block;
    min-width: 170px !important;
    max-width: 170px !important;
    max-height: none !important;
}

.cart-item .itemname {
    -webkit-line-clamp: 3;
    line-height: 1.28;
    font-size: 0.95rem;
}

.cart-item > .col-lg-6:first-child,
.cart-item > .col-xl-6:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    height: 100%;
}

.cart-item > .col-lg-6:last-child,
.cart-item > .col-xl-6:last-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
}

.cart-item .text-left.text-danger.mr-2 {
    margin-bottom: 2px;
}

.cart-item .text-left.text-danger.mr-2 strong span:first-child {
    font-size: 0.95rem !important;
}

.cart-item .text-left.text-danger.mr-2 strong span:first-child,
.cart-item .text-left[style*="font-size: 1.1rem;"] strong span:first-child {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

.cart-item .text-left.text-danger.mr-2 strong span:first-child {
    font-size: 1.12rem !important;
}

.cart-item .text-left.text-danger.mr-2 strong span:last-child {
    font-size: 1.15rem !important;
    font-weight: 700;
}

.cart-item .text-left.text-danger.mr-2 strong span:last-child {
    font-size: 1.12rem !important;
}

.cart-item .text-left[style*="font-size: 1.1rem;"] strong span:last-child {
    font-size: 1rem !important;
    font-weight: 700;
}

.cart-item .text-left[style*="font-size: 1.1rem;"] strong {
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 500 !important;
}

.cart-item .text-left[style*="font-size: 1.1rem;"] strong span:first-child {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
}

.cart-item .text-left[style*="font-size: 1.1rem;"] strong span:last-child {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
}

.cart-item > .col-lg-6:last-child > .row.ml-1.mb-1[style*="width:100%"],
.cart-item > .col-xl-6:last-child > .row.ml-1.mb-1[style*="width:100%"] {
    display: none;
}

.singleline {
    display: none;
}

.payment-note {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ff1f11;
    line-height: 1.28;
    letter-spacing: 0.01em;
    text-align: center;
}

@media (min-width: 992px) {
    .payment-note {
        white-space: nowrap;
    }
}

.cart-item .form-select {
    width: 46px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid #b7afa9;
    border-radius: 2px;
    background: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
    color: #3b332f;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 30px;
}

.button-position {
    min-width: 62px;
    height: 30px;
    padding: 3px 8px !important;
    border: 1px solid #b9b2ac !important;
    border-radius: 3px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    color: #57504b !important;
    background: #fff !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: transparent !important;
    font-size: 0 !important;
    position: relative;
    overflow: hidden;
    text-indent: -9999px;
}

.button-position::before {
    content: "削除";
    color: #57504b;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    text-indent: 0;
}

.button-position::after {
    content: "\00d7";
    color: #8a8a8a;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1;
    position: absolute;
    right: 8px;
    top: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    text-indent: 0;
}


.cart-item-subtotal {
    color: #e33636 !important;
    font-size: 1.05rem !important;
    line-height: 1.2;
}

.cart-item-taxin {
    margin-top: 2px;
    color: #6a625e !important;
    font-size: 0.9rem !important;
    line-height: 1.2;
}

#blank-remove .container {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 3px solid #9f9996 !important;
    width: 72%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

#blank-remove .text-sum,
#blank-remove .order_price_text,
#blank-remove .price-tax {
    font-size: 1.35rem;
    line-height: 1.7;
}

#blank-remove .text-sum {
    font-weight: 700;
    color: #3a312f;
}

#blank-remove .order_price_text {
    font-weight: 700;
    color: #2f2b2a;
}

.ctax10 {
    display: none;
}

#blank-remove .price-tax {
    color: #e33636 !important;
    font-size: 1.35rem;
}

#HandlingInformation {
    margin-top: 6px;
}

#cardCheck,
#blank-remove-order,
#blank-add-order {
    min-height: 42px;
    border: 0 !important;
    border-radius: 4px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18) !important;
    font-size: 1.44rem !important;
    font-weight: 700 !important;
    display: block;
}

#cardCheck,
#blank-remove-order,
#blank-add-order {
    width: calc(42.92352% - 17.8848px);
    max-width: 531px;
    margin-left: auto;
    margin-right: auto;
}

#cardCheck {
    background: #d53b37 !important;
}

#blank-remove-order,
#blank-add-order {
    background: #8f7777 !important;
}

.item-bar {
    padding-top: 0 !important;
}

.item-bar hr {
    display: none;
}

@media (min-width: 992px) {
    #bundle-text,
    .cart-item,
    .resize-sm {
        width: 52.5%;
        max-width: 1200px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 991px) {
    .cart-item {
        display: flex !important;
        align-items: center;
        min-height: 124px;
        padding: 10px 10px !important;
        border: 1px solid #d8d3ce;
        border-radius: 16px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        margin-left: -21px;
        margin-right: -21px;
    }

    .cart-item > .col-lg-6:first-child,
    .cart-item > .col-xl-6:first-child {
        flex: 0 0 118px;
        max-width: 118px;
        padding-right: 10px;
        padding-left: 2px;
        padding-top: 0;
        display: flex;
        align-items: center;
    }

    .cart-item > .col-lg-6:last-child,
    .cart-item > .col-xl-6:last-child {
        flex: 1 1 auto;
        max-width: calc(100% - 118px);
        padding-left: 16px;
        padding-right: 0;
        justify-content: flex-start;
        padding-top: 0;
    }

    .cart-item .card {
        width: 118px;
        min-width: 118px;
        max-width: 118px;
        height: 118px;
        aspect-ratio: 1 / 1;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cart-item .card > a {
        display: block;
        width: 118px;
        min-width: 118px;
        max-width: 118px;
        height: 118px;
    }

    .cart-item .card-img {
        height: 118px;
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: center center;
        display: block;
        min-width: 0 !important;
        max-height: none !important;
    }

    .cart-item a .row.text-dark:first-child {
        display: none;
    }

    .cart-item a .row.text-dark[style*="min-height:50px"] {
        min-height: 28px !important;
        margin-bottom: 4px;
    }

    .cart-item .itemname {
        font-size: 0.94rem;
        line-height: 1.25;
        font-weight: 700;
        -webkit-line-clamp: 2;
        word-break: break-word;
        color: #2d2724;
    }

    .cart-item .row.ml-1.mb-1[style*="width:100%"] {
        display: none;
    }

    .cart-item .text-left.text-danger.mr-2,
    .cart-item .text-left[style*="font-size: 1.1rem;"] {
        font-size: 0.82rem !important;
        line-height: 1.18;
        margin-bottom: 0;
    }

    .cart-item .text-left.text-danger.mr-2,
    .cart-item .text-left.text-danger.mr-2 strong,
    .cart-item .text-left.text-danger.mr-2 span {
        color: #d43832 !important;
    }

    .cart-item .text-left.text-danger.mr-2 strong span:last-child {
        font-size: 1.08rem !important;
        font-weight: 700;
    }

    .cart-item .text-left.text-danger.mr-2 strong span:first-child,
    .cart-item .text-left[style*="font-size: 1.1rem;"] strong span:first-child {
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
    }

    .cart-item .text-left[style*="font-size: 1.1rem;"] strong span:last-child {
        font-size: 0.9rem !important;
        font-weight: 700;
    }

    .cart-item .text-left[style*="font-size: 1.1rem;"] strong {
        font-size: 0.82rem;
        font-weight: 500 !important;
        color: #4b433f;
    }

    .cart-item .text-left[style*="font-size: 1.1rem;"] strong span:first-child,
    .cart-item .text-left[style*="font-size: 1.1rem;"] strong span:last-child {
        font-weight: 500 !important;
    }

    .cart-item .row.ml-1.mb-1[style*="height:32.8px"] {
        display: none;
    }

    .cart-item .select-row {
        margin-top: 6px !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        position: relative;
        top: 0;
    }

    .cart-item .select-row .col-lg-12 {
        display: flex;
        padding-left: 0;
        padding-right: 0;
        align-items: center !important;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .cart-item .select-row .col-7 {
        flex: 1 1 auto;
        max-width: calc(100% - 94px);
        font-size: 0.82rem !important;
        display: flex;
        align-items: center;
        gap: 6px;
        padding-right: 0;
        min-width: 0;
        height: 32px;
        color: #4b433f;
        font-weight: 700;
    }

    .cart-item .select-row .col-5 {
        flex: 0 0 94px;
        max-width: 94px;
        padding-right: 0;
        padding-left: 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        overflow: visible;
        height: 32px;
    }

    .cart-item .form-select {
        width: 44px;
        height: 32px;
        padding: 0 4px;
        font-size: 0.88rem;
        border-radius: 2px;
        line-height: 32px;
        margin-top: 0;
        margin-bottom: 0;
        border: 1px solid #b7afa9;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
        color: #3a312f;
        font-weight: 600;
    }

    .button-position {
        min-width: 0;
        width: 86px;
        max-width: 86px;
        height: 32px;
        padding: 3px 8px !important;
        font-size: 0 !important;
        line-height: 1;
        position: relative;
        top: 0;
        right: 0;
        margin-left: 4px;
        white-space: nowrap;
        overflow: visible;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        vertical-align: top;
        border: 1px solid #b9b2ac !important;
        border-radius: 3px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
        color: transparent !important;
        background: #fff !important;
    }

    .button-position::before {
        font-size: 0.88rem;
        left: 12px;
    }

    .button-position::after {
        font-size: 1.12rem;
        right: 10px;
        width: 16px;
        height: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .cart-item .row.mt-1 {
        display: none;
    }

    .cart-item-subtotal,
    .cart-item-taxin {
        text-align: right;
        font-size: 0.8rem !important;
    }

}

@media (max-width: 767px) {
    .l-main + div + div,
    body .products.p-3.text-center + div[style*="margin: 1.8em"],
    body div[style*="margin: 1.8em;"] {
        margin-top: 0.4em !important;
    }

    .col-12.text-center h5.font-weight-normal {
        font-size: 1.45rem;
    }

    .col-12.text-danger h5 {
        font-size: 1.05rem;
        line-height: 1.32;
        padding: 0 10px;
    }

    .cart-item .itemname {
        font-size: 0.82rem !important;
        line-height: 1.12;
    }

    #blank-remove .text-sum,
    #blank-remove .order_price_text {
        font-size: 1.08rem;
    }

    #blank-remove .price-tax {
        font-size: 1.08rem;
    }

    #blank-remove .container {
        width: 100%;
        max-width: none;
    }

    #cardCheck,
    #blank-remove-order,
    #blank-add-order {
        width: 100%;
        max-width: none;
        min-height: 40px;
        font-size: 0.9rem !important;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    #blank-remove-order,
    #blank-add-order {
        width: 100%;
        max-width: none;
    }
}
