/* Sidebar & Order Summary Styles */

.osp-3sc-sidebar {
    width: 40%;
    flex-shrink: 0;
    height: fit-content;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Sidebar Box Styling - Apply to individual sections */
.osp-3sc-sidebar-box {
    background: var(--osp-box-background);
    border-radius: var(--osp-border-radius);
    padding: 30px;
    border: var(--osp-border-width) solid var(--osp-border-color);
}



.osp-3sc-order-summary h3 {
    color: #ffffff;
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.osp-3sc-order-summary .woocommerce-checkout-review-order {
    background: transparent;
    border: none;
}

.osp-3sc-order-summary table {
    background: transparent;
    color: #ffffff;
}


/* Remove borders from WooCommerce shop tables */
.woocommerce table.shop_table {
    border: none;
    font-weight: 400;
    font-size: 15px;
    color: #bac9d1;
}

.woocommerce table.shop_table th {
    padding: 0;
}

/* Remove WooCommerce default border-top from tbody th, tfoot td, and tfoot th */
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
    border-top: none;
    padding: 0;
    font-weight: inherit;
}

/* Custom Review Order Table Styling - Styled to look like divs but maintain table functionality */
.osp-3sc-review-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    border: none;
    color: #ffffff;
}

/* Hide table headers */
.osp-3sc-review-table .osp-3sc-hidden {
    display: none;
}

.osp-3sc-review-table tbody tr.osp-3sc-cart-item td {
    padding: 0;
    background: transparent;
}


.osp-3sc-review-table tbody .product-quantity {
    display: none;
}

.osp-3sc-review-table tbody tr.osp-3sc-cart-item td.product-name {
    color: #ffffffeb;
    font-size: 20px;
    line-height: 1.4;
    flex: 1;
}

.osp-3sc-review-table tbody tr.osp-3sc-cart-item td.product-total {
    font-size: 15px;
    text-align: right;
    color: #ffffffdb;
}

.osp-3sc-review-table tbody tr.osp-3sc-cart-item .product-quantity {
    color: #ccc;
    font-weight: 500;
}

/* Style tfoot section */
.osp-3sc-review-table tfoot {
    border-top: 2px solid var(--osp-divider-color);
}

/* Unified styling for all table rows */
.osp-3sc-review-table tr {
    border-bottom: 1px solid var(--osp-divider-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    background: transparent;
    gap: 20px;
}

.osp-3sc-review-table tfoot tr.osp-3sc-order-total {
    padding-top: 30px;
    border-bottom: none;
}

.osp-3sc-review-table tfoot tr.osp-3sc-order-total td,
.osp-3sc-review-table tfoot tr.osp-3sc-order-total th {
    font-size: 30px;
    font-weight: 700;
    color: white;
}

/* Original price strikethrough */
.osp-3sc-original-price {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

/* Coupon savings message */
.osp-3sc-coupon-savings-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #93c841;
    padding: 12px 15px;
    background: #19202e;
    border: 1px solid #ffffff1f;
    border-radius: 6px;
    margin-top: 10px;
}

.osp-3sc-coupon-savings-msg:empty {
    display: none;
}

.osp-3sc-coupon-savings-msg .woocommerce-Price-amount {
    color: #93c841;
}

.osp-3sc-savings-content {
    flex: 1;
    min-width: 0;
}

.osp-3sc-coupon-applied {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.osp-3sc-savings-amount {
    white-space: nowrap;
}

@media (max-width: 477px) {
    .osp-3sc-coupon-savings-msg {
        align-items: flex-start;
    }
    .osp-3sc-savings-amount {
        display: block;
        margin-top: 4px;
        white-space: normal;
    }
    .osp-3sc-savings-dash {
        display: none;
    }
}

.osp-3sc-coupon-code {
    color: #93c841;
    font-weight: 700;
    border: 1px solid rgba(147, 200, 65, 0.3);
    border-radius: 99px;
    padding: 2px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.osp-3sc-coupon-code svg {
    flex-shrink: 0;
}

.osp-3sc-change-coupon-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
    text-decoration: underline;
    flex-shrink: 0;
}

.osp-3sc-change-coupon-btn:hover {
    color: #fff;
}

.osp-3sc-review-table tfoot tr[class*="shipping"] {
    font-size: 14px;
}

.osp-3sc-fees-notice {
    display: block;
    font-size: 12px;
    color: #ccc;
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.4;
}

.osp-3sc-benefit {
    display: block;
    margin-bottom: 2px;
    color: #ccc;
}

.osp-3sc-benefit:last-child {
    margin-bottom: 0;
}

.osp-3sc-one-time-fee {
    display: none;
}

/* Trust labels under total */
.osp-3sc-total-trust-row {
    border-bottom: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.osp-3sc-total-trust-row td {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 !important;
}

.osp-3sc-trust-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.osp-3sc-coupon-section h4 {
    color: var(--osp-primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 0;
}

.osp-3sc-coupon-section p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Native WooCommerce coupon form styling */
.osp-3sc-coupon-section .checkout_coupon {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    position: relative;
}

.osp-3sc-coupon-section .checkout_coupon .form-row-first {
    width: 100%;
    position: relative;
}

.osp-3sc-coupon-section .checkout_coupon input[type="text"] {
    width: 100%;
    background: #19202e;
    border: 1px solid #ffffff1f;
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 115px 8px 15px;
    font-size: 14px;
    height: 55px;
    box-sizing: border-box;
}

.osp-3sc-coupon-section .checkout_coupon input[type="text"]:focus {
    border-color: var(--osp-primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 160, 238, 0.2);
}

.osp-3sc-coupon-section .checkout_coupon input[type="text"]::placeholder {
    color: #999;
}

/* Style the native WooCommerce coupon button */
.osp-3sc-coupon-section .checkout_coupon button[type="submit"],
.osp-3sc-coupon-section .checkout_coupon .button {
    width: 100px;
    background: var(--osp-primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    height: auto;
    z-index: 2;
    text-align: center;

}

.osp-3sc-coupon-section .checkout_coupon button[type="submit"]:hover,
.osp-3sc-coupon-section .checkout_coupon .button:hover {
    background: var(--osp-secondary-color);
}

.osp-3sc-coupon-section .checkout_coupon button[type="submit"]:disabled,
.osp-3sc-coupon-section .checkout_coupon .button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.osp-3sc-coupon-section .checkout_coupon .clear {
    clear: both;
}

/* Coupon error styling for native form */
.osp-3sc-coupon-section .checkout_coupon .coupon-error-notice {
    color: #ffffff;
    font-size: 16px;
    margin-top: 5px;
    display: block;
}

.osp-3sc-coupon-section .checkout_coupon input.has-error {
    border-color: #dc3545;
}

/* Trusted Traders Section */
.osp-3sc-trusted-traders {
    text-align: center;
}

.osp-3sc-trusted-traders h3 {
    color: #d9e6ff;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.osp-3sc-trusted-traders ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.osp-3sc-trusted-traders li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #bbccd5;
    font-size: 15px;
    line-height: 24px;
    text-align: left;
}

.osp-3sc-trusted-traders li:last-child {
    margin-bottom: 0;
}

.osp-3sc-trusted-traders .checkmark {
    display: flex;
    margin-right: 10px;
}

.osp-3sc-trusted-traders .checkmark svg {
    width: 24px;
    height: 24px;
}

.osp-3sc-trusted-traders .checkmark svg path {
    fill: #bbccd5;
}