/* ===================================
   Order Summary Page Styles
   =================================== */

.order-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 2px;
}

.header-subtitle i {
    font-size: 13px;
}

.order-summary-section {
    background-color: #f5f5f5;
    padding: 8px 0;
    padding-bottom: 120px;
}

/* Store Section */
.store-section {
    background-color: #ffffff;
    padding: 12px 16px;
    margin-bottom: 2px;
}

.store-header-order {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.store-name-order {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
    flex: 1;
}

.btn-add-note {
    background: none;
    border: none;
    color: #666666;
    text-decoration: unset;
    font-size: 12px;
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.btn-add-note i {
    font-size: 12px;
}

/* Top Pick Badge */
.top-pick-badge {
    background-color: #fffbef;
    color: #c47b00;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-pick-badge i {
    font-size: 11px;
}

/* Product Item */
.product-item-order {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 12px;
}

.product-item-order img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.product-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    margin: 0;
    line-height: 1.3;
}

.product-variant-text {
    font-size: 13px;
    color: #666666;
}

.product-badges-order {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.badge-return,
.badge-authentic {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #fff8e1;
    color: #f59e0b;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.badge-return i,
.badge-authentic i {
    font-size: 12px;
}

.badge-authentic {
    background-color: #e8f5e9;
    color: #10b981;
}

.product-price-qty {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.price-section-order {
    display: grid;
}

.product-price-current {
    font-size: 17px;
    font-weight: 700;
    color: #fe2c55;
}

.price-section-order i {
    color: #fe2c55;
}

.product-price-original {
    font-size: 13px;
    color: #999999;
}

.product-discount {
    background-color: #ffe5ec;
    color: #fe2c55;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
}

.cart-item-images{
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: auto;
}
.stock-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgb(50 50 50 / 60%);
    color: #ffffff;
    padding: 4px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.3px;
    overflow: hidden;
    text-align: center;
}

/* Discount Section */
.discount-section {
    background-color: #ffffff;
    padding: 11px 16px;
    margin-bottom: 8px;
}

.discount-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.discount-item i:first-child {
    font-size: 20px;
    color: #fe2c55;
}

.discount-item span:nth-child(2) {
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    flex: 1;
}

.discount-amount {
    font-size: 14px;
    font-weight: 600;
    color: #fe2c55 !important;
}

.discount-item i:last-child {
    font-size: 12px;
    color: #999999;
}

/* Order Summary Collapsible */
.order-summary-collapsible {
    background-color: #ffffff;
    padding: 16px;
    margin-bottom: 2px;
}

.summary-header {
    cursor: pointer;
    margin-bottom: 12px;
}

.summary-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
    margin: 0;
}

.summary-section {
    margin-bottom: 16px;
}

.summary-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.summary-row-header i {
    font-size: 12px;
    color: #666666;
    margin-left: auto;
    margin-right: 8px;
}

.summary-amount {
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
}

.summary-details {
    padding-left: 16px;
}

.summary-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666666;
}

.text-pink {
    color: #fe2c55 !important;
    font-weight: 500;
}

/* Savings Message */
.savings-message {
    background-color: #ffe5ec;
    color: #fe2c55;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.savings-message i {
    font-size: 16px;
}

/* Total Section */
.total-section {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.total-label {
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
    padding-top: 2px;
}

.total-price-grid{
    display: grid;
}
.total-amount {
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    color: #111;
}

/* Guaranteed Checkout */
.guaranteed-checkout {
    text-align: center;
    padding: 11px 16px;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 9px;
    font-size: 13px;
    color: #009ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.guaranteed-checkout i {
    font-size: 14px;
}

/* SST Notice */
.sst-notice {
    background-color: #ffffff;
    font-size: 13px;
    letter-spacing: -0.2px;
    color: #999999;
}

/* Payment Method Section */
.payment-method-section {
    background-color: #ffffff;
    padding: 16px;
    margin-bottom: 2px;
}

.payment-method-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 16px;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.payment-option:last-of-type {
    border-bottom: none;
}

.payment-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.payment-icon {
    font-size: 24px;
    color: #0066cc;
}

.payment-icon-add {
    font-size: 20px;
    color: #666666;
}

.payment-icon-qr {
    font-size: 24px;
    color: #fe2c55;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payment-option-content > span {
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
}

.card-logos {
    display: flex;
    gap: 6px;
}

.card-logos img {
    height: 20px;
    width: auto;
}

.card-offer {
    font-size: 12px;
    color: #fe2c55;
    font-weight: 500;
}

.payment-radio {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.payment-radio:checked {
    border-color: #fe2c55;
}

.payment-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #fe2c55;
    border-radius: 50%;
}

/* View All Options */
.view-all-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 7px;
}

.payment-logos {
    display: flex;
    gap: 6px;
}

.payment-logos img {
    height: 20px;
    width: auto;
}

.btn-view-all {
    background: none;
    border: none;
    color: #666666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-view-all i {
    font-size: 12px;
}

/* Terms Section */
.terms-section {
    background-color: #f5f5f5;
    padding: 12px 16px;
    font-size: 12px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.terms-section a {
    color: #1f1f1f;
    font-weight: 500;
    text-decoration: none;
}

/* Savings Message Bottom */
.savings-message-bottom {
    background-color: #ffe5ec;
    color: #fe2c55;
    padding: 12px 10px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.savings-message-bottom i {
    font-size: 16px;
}

/* Bottom Place Order Bar */
.bottom-order-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.total-label-bottom {
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
}

.item-count {
    font-size: 13px;
    font-weight: 400;
    color: #666666;
}

.total-price-bottom {
    font-size: 18px;
    font-weight: 700;
    color: #fe2c55;
}

.btn-place-order {
    background: linear-gradient(135deg, #fe2c55, #ff6b9d);
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    text-align: center;
}

.btn-place-order:hover {
    opacity: 0.9;
}

.voucher-info {
    font-size: 10px;
    font-weight: 300;
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .product-item-order img {
        width: 80px;
        height: 80px;
    }

    .product-item-title {
        font-size: 13px;
    }

    .product-price-current {
        font-size: 15px;
    }

    .btn-place-order {
        padding: 6px 10px;
        font-size: 15px;
    }
}
