/* Additional Styles for Multi-Store Checkout */

/* Store Checkout Section */
.store-checkout-section {
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.store-checkout-section .ps-table--shopping-cart {
    margin-bottom: 0;
}

/* PS Modal Active State */
.ps-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Modal Pengiriman - XL Modal */
#pengirimanModal .ps-modal__container {
    max-width: 850px;
    width: 95%;
}

#pengirimanModal .ps-modal__header {
    padding: 24px 30px;
}

#pengirimanModal .ps-modal__title {
    font-size: 20px;
    font-weight: 600;
}

#pengirimanModal .ps-modal__footer {
    padding: 20px 30px;
    gap: 12px;
}

#pengirimanModal .ps-modal__footer .ps-btn {
    min-width: 140px;
    padding: 12px 24px;
    font-size: 16px;
}

/* Shipping Options Container */
.shipping-options-container {
    min-height: 250px;
    padding: 24px 30px;
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.shipping-card {
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 12px;
    background-color: #fff;
}

.shipping-card:last-child {
    margin-bottom: 0;
}

.shipping-card:hover {
    border-color: #d0d0d0;
}

.shipping-card.selected {
    border-color: var(--primary-color, #fd8d27);
    background-color: #fffef5;
    box-shadow: 0 0 0 1px var(--primary-color, #fd8d27) inset;
}

.shipping-card .fw-bold {
    font-weight: 600;
    color: #212529;
    font-size: 15px;
    margin-bottom: 3px;
    display: block;
}

.shipping-card .text-muted {
    color: #6c757d;
    font-size: 13px;
    display: block;
    line-height: 1.4;
}

.shipping-card .text-end {
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.shipping-card .text-end .fw-bold {
    font-size: 16px;
    color: #212529;
    font-weight: 600;
}

/* Voucher Display */
.voucher-code-display,
.voucher-ongkir-code-display {
    font-size: 13px;
}

/* Hapus Button Styling */
.remove-voucher,
.remove-voucher-ongkir {
    min-width: 90px;
    font-weight: 600;
}

/* Button spacing */
.ps-btn--sm {
    font-size: 14px;
    padding: 8px 16px;
}

/* Modal improvements */
.ps-modal__container {
    max-width: 600px;
    width: 90%;
}

.ps-modal__content {
    max-height: 60vh;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .store-checkout-section {
        margin-bottom: 20px;
    }

    .ps-modal__container {
        width: 95%;
    }

    /* Modal Pengiriman Responsive */
    #pengirimanModal .ps-modal__container {
        max-width: 96%;
        width: 96%;
    }

    #pengirimanModal .ps-modal__header,
    #pengirimanModal .ps-modal__footer {
        padding: 16px 20px;
    }

    #pengirimanModal .ps-modal__title {
        font-size: 18px;
    }

    .shipping-options-container {
        padding: 15px 20px;
    }

    .shipping-card {
        padding: 14px 16px;
        margin-bottom: 10px;
    }

    .shipping-card .fw-bold {
        font-size: 14px;
    }

    .shipping-card .text-muted {
        font-size: 12px;
    }

    .shipping-card .text-end .fw-bold {
        font-size: 15px;
    }

    #pengirimanModal .ps-modal__footer .ps-btn {
        min-width: 110px;
        padding: 10px 18px;
        font-size: 15px;
    }
}



@media (max-width: 991.98px) {
    #back2top {
        bottom: 90px !important;
    }
}
@media (max-width: 767.98px) {
    #back2top {
        bottom: 90px;
    }
}
@media (max-width: 1120px) {
    #back2top {
        bottom: 90px !important;
    }

}

/* Optional smooth scrolling */
html {
    scroll-behavior: smooth;
}

.btn-2 {
    padding: 5px 5px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.badge-1 {
    padding: 8px 12px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 12px;
}

/* Layout atas agar sama seperti navigation */
.header__top__top .ps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    padding: 9px;
}

/* Biar list di kanan sejajar dan rapih */
.header__right__top .header__top-links__top {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.header__top-links__top li {
    list-style: none;
}

.header__top-links__top a {
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .header__top__top {
        display: none;
    }
}

