/**
 * BB-WooAutomate - WooCommerce Cart & Checkout Page Enhancements
 * Modern, clean UI/UX improvements for shortcode-based pages
 */

/* =============================================
   VARIABLES
   ============================================= */
:root {
    --bbwa-primary: #2563eb;
    --bbwa-primary-hover: #1d4ed8;
    --bbwa-success: #16a34a;
    --bbwa-success-light: #dcfce7;
    --bbwa-danger: #dc2626;
    --bbwa-warning: #f59e0b;
    --bbwa-warning-light: #fef3c7;
    --bbwa-gray-50: #f9fafb;
    --bbwa-gray-100: #f3f4f6;
    --bbwa-gray-200: #e5e7eb;
    --bbwa-gray-300: #d1d5db;
    --bbwa-gray-400: #9ca3af;
    --bbwa-gray-500: #6b7280;
    --bbwa-gray-600: #4b5563;
    --bbwa-gray-700: #374151;
    --bbwa-gray-800: #1f2937;
    --bbwa-gray-900: #111827;
    --bbwa-border-radius: 8px;
    --bbwa-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --bbwa-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --bbwa-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --bbwa-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --bbwa-transition: all 0.2s ease;
}

/* =============================================
   CART PAGE STYLES
   ============================================= */

/* Cart Table Container */
.woocommerce-cart .woocommerce-cart-form {
    margin-bottom: 30px;
}

.woocommerce-cart table.shop_table {
    border: none;
    border-radius: var(--bbwa-border-radius);
    overflow: hidden;
    box-shadow: var(--bbwa-shadow);
    background: #fff;
}

.woocommerce-cart table.shop_table thead {
    background: var(--bbwa-gray-50);
}

.woocommerce-cart table.shop_table thead th {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--bbwa-gray-700);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: none;
}

.woocommerce-cart table.shop_table tbody td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--bbwa-gray-100);
}

.woocommerce-cart table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

/* Product Image */
.woocommerce-cart table.shop_table .product-thumbnail {
    width: 100px;
}

.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--bbwa-border-radius);
    box-shadow: var(--bbwa-shadow-sm);
    transition: var(--bbwa-transition);
}

.woocommerce-cart table.shop_table .product-thumbnail img:hover {
    transform: scale(1.05);
    box-shadow: var(--bbwa-shadow-md);
}

/* Product Name */
.woocommerce-cart table.shop_table .product-name a {
    color: var(--bbwa-gray-800);
    font-weight: 500;
    text-decoration: none;
    transition: var(--bbwa-transition);
}

.woocommerce-cart table.shop_table .product-name a:hover {
    color: var(--bbwa-primary);
}

/* Price */
.woocommerce-cart table.shop_table .product-price,
.woocommerce-cart table.shop_table .product-subtotal {
    font-weight: 600;
    color: var(--bbwa-gray-800);
}

/* Quantity Selector */
.woocommerce-cart table.shop_table .quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--bbwa-gray-300);
    border-radius: var(--bbwa-border-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--bbwa-shadow-sm);
}

.woocommerce-cart table.shop_table .quantity .qty,
.woocommerce-cart table.shop_table td.product-quantity .quantity .qty,
.woocommerce-cart .shop_table .quantity input.qty,
.quantity .qty,
input.qty {
    width: 60px !important;
    height: 44px !important;
    text-align: center !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important; /* Explicit color - var(--bbwa-gray-800) fallback */
    background: #fff !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-text-fill-color: #1f2937 !important; /* Safari fix */
}

.woocommerce-cart table.shop_table .quantity .qty:focus {
    outline: none;
    background: var(--bbwa-gray-50);
}

.woocommerce-cart table.shop_table .quantity .qty::-webkit-outer-spin-button,
.woocommerce-cart table.shop_table .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* BBWA Quantity +/- Buttons */
.bbwa-qty-wrapper {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--bbwa-gray-300);
    border-radius: var(--bbwa-border-radius);
    overflow: hidden;
    box-shadow: var(--bbwa-shadow-sm);
    background: #fff;
}

.bbwa-qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: var(--bbwa-gray-100);
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: var(--bbwa-gray-700);
    transition: var(--bbwa-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbwa-qty-btn:hover {
    background: var(--bbwa-primary);
    color: #fff;
}

.bbwa-qty-btn:active {
    background: var(--bbwa-primary-hover);
    color: #fff;
}

.bbwa-qty-minus {
    border-radius: 0;
    border-right: 1px solid var(--bbwa-gray-200);
}

.bbwa-qty-plus {
    border-radius: 0;
    border-left: 1px solid var(--bbwa-gray-200);
}

.bbwa-qty-wrapper .qty,
.bbwa-qty-wrapper input.qty,
.bbwa-qty-wrapper input[type="number"] {
    width: 60px !important;
    height: 44px !important;
    text-align: center !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important; /* Explicit color for visibility */
    background: #fff !important;
    -moz-appearance: textfield;
    appearance: textfield;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-text-fill-color: #1f2937 !important; /* Safari fix */
}

.bbwa-qty-wrapper .qty:focus {
    outline: none;
    background: var(--bbwa-gray-50);
}

.bbwa-qty-wrapper .qty::-webkit-outer-spin-button,
.bbwa-qty-wrapper .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Button - Trash Icon */
.woocommerce-cart table.shop_table .product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bbwa-gray-100);
    color: transparent;
    text-decoration: none;
    font-size: 0;
    transition: var(--bbwa-transition);
    position: relative;
}

/* Trash icon using SVG background */
.woocommerce-cart table.shop_table .product-remove a::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.woocommerce-cart table.shop_table .product-remove a:hover {
    background: var(--bbwa-danger);
}

.woocommerce-cart table.shop_table .product-remove a:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E");
}

/* Coupon Section */
.woocommerce-cart .coupon {
    display: flex;
    gap: 10px;
    align-items: center;
}

.woocommerce-cart .coupon input[type="text"] {
    padding: 12px 16px;
    border: 1px solid var(--bbwa-gray-200);
    border-radius: var(--bbwa-border-radius);
    font-size: 14px;
    min-width: 200px;
    transition: var(--bbwa-transition);
}

.woocommerce-cart .coupon input[type="text"]:focus {
    outline: none;
    border-color: var(--bbwa-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.woocommerce-cart .coupon button,
.woocommerce-cart button[name="update_cart"] {
    padding: 12px 24px;
    border: none;
    border-radius: var(--bbwa-border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--bbwa-transition);
}

.woocommerce-cart .coupon button {
    background: var(--bbwa-gray-800);
    color: #fff;
}

.woocommerce-cart .coupon button:hover {
    background: var(--bbwa-gray-900);
}

.woocommerce-cart button[name="update_cart"] {
    background: var(--bbwa-gray-100);
    color: var(--bbwa-gray-700);
}

.woocommerce-cart button[name="update_cart"]:hover:not(:disabled) {
    background: var(--bbwa-gray-200);
}

.woocommerce-cart button[name="update_cart"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cart Totals */
.woocommerce-cart .cart_totals {
    background: #fff;
    border-radius: var(--bbwa-border-radius);
    box-shadow: var(--bbwa-shadow);
    padding: 24px;
}

.woocommerce-cart .cart_totals > h2 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bbwa-gray-100);
    font-size: 18px;
    font-weight: 600;
    color: var(--bbwa-gray-800);
}

.woocommerce-cart .cart_totals table {
    border: none;
    margin: 0;
    width: 100%;
    table-layout: fixed;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--bbwa-gray-100);
    vertical-align: middle;
}

.woocommerce-cart .cart_totals table th {
    font-weight: 500;
    color: var(--bbwa-gray-600);
    text-align: left;
    width: 45%;
}

.woocommerce-cart .cart_totals table td {
    text-align: right;
    font-weight: 500;
    width: 55%;
}

/* Coupon row in cart totals - icon for remove */
.woocommerce-cart .cart_totals .cart-discount th,
.woocommerce-cart .cart_totals .cart-discount td {
    color: var(--bbwa-success);
}

.woocommerce-cart .cart_totals .cart-discount td a.woocommerce-remove-coupon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--bbwa-gray-200);
    border-radius: 50%;
    margin-left: 8px;
    color: transparent;
    font-size: 0;
    text-decoration: none;
    vertical-align: middle;
    position: relative;
}

.woocommerce-cart .cart_totals .cart-discount td a.woocommerce-remove-coupon::before {
    content: '×';
    font-size: 14px;
    line-height: 1;
    color: var(--bbwa-gray-600);
    font-weight: bold;
}

.woocommerce-cart .cart_totals .cart-discount td a.woocommerce-remove-coupon:hover {
    background: var(--bbwa-danger);
}

.woocommerce-cart .cart_totals .cart-discount td a.woocommerce-remove-coupon:hover::before {
    color: #fff;
}

.woocommerce-cart .cart_totals table tr.order-total th,
.woocommerce-cart .cart_totals table tr.order-total td {
    font-size: 18px;
    font-weight: 700;
    color: var(--bbwa-gray-900);
    border-bottom: none;
    padding-top: 16px;
}

/* Proceed to Checkout Button */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block;
    padding: 16px 24px;
    background: var(--bbwa-primary);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--bbwa-border-radius);
    transition: var(--bbwa-transition);
    margin-top: 20px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--bbwa-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--bbwa-shadow-md);
}

/* =============================================
   CHECKOUT PAGE STYLES
   ============================================= */

/* Checkout Form Container */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle {
    margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-info {
    background: var(--bbwa-gray-50);
    border: none;
    border-left: 4px solid var(--bbwa-primary);
    padding: 16px 20px;
    border-radius: 0 var(--bbwa-border-radius) var(--bbwa-border-radius) 0;
    color: var(--bbwa-gray-700);
}

.woocommerce-checkout .woocommerce-info a {
    color: var(--bbwa-primary);
    font-weight: 500;
}

/* Checkout Columns */
.woocommerce-checkout .col2-set {
    margin-bottom: 30px;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    background: #fff;
    border-radius: var(--bbwa-border-radius);
    box-shadow: var(--bbwa-shadow);
    padding: 24px;
}

/* Form Headings */
.woocommerce-checkout h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--bbwa-gray-800);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bbwa-gray-100);
}

/* Form Fields */
.woocommerce-checkout .form-row {
    margin-bottom: 16px;
}

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bbwa-gray-700);
}

.woocommerce-checkout .form-row label .required {
    color: var(--bbwa-danger);
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--bbwa-gray-200);
    border-radius: var(--bbwa-border-radius);
    font-size: 14px;
    color: var(--bbwa-gray-800);
    background: #fff;
    transition: var(--bbwa-transition);
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    outline: none;
    border-color: var(--bbwa-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Select2 Styling */
.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid var(--bbwa-gray-200);
    border-radius: var(--bbwa-border-radius);
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 16px;
    color: var(--bbwa-gray-800);
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

/* Validation States */
.woocommerce-checkout .form-row.woocommerce-validated input.input-text {
    border-color: var(--bbwa-success);
}

.woocommerce-checkout .form-row.woocommerce-invalid input.input-text {
    border-color: var(--bbwa-danger);
}

/* Order Review Section */
.woocommerce-checkout #order_review_heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--bbwa-gray-800);
    margin-bottom: 20px;
}

.woocommerce-checkout #order_review {
    background: #fff;
    border-radius: var(--bbwa-border-radius);
    box-shadow: var(--bbwa-shadow);
    padding: 24px;
}

.woocommerce-checkout table.shop_table {
    border: none;
    margin-bottom: 20px;
}

.woocommerce-checkout table.shop_table thead th {
    padding: 12px 0;
    font-weight: 600;
    color: var(--bbwa-gray-700);
    border-bottom: 1px solid var(--bbwa-gray-200);
}

.woocommerce-checkout table.shop_table tbody td,
.woocommerce-checkout table.shop_table tfoot th,
.woocommerce-checkout table.shop_table tfoot td {
    padding: 12px 0;
    border-bottom: 1px solid var(--bbwa-gray-100);
}

.woocommerce-checkout table.shop_table tfoot tr:last-child th,
.woocommerce-checkout table.shop_table tfoot tr:last-child td {
    border-bottom: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--bbwa-gray-900);
    padding-top: 16px;
}

/* Checkout coupon remove icon */
.woocommerce-checkout .cart-discount td a.woocommerce-remove-coupon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--bbwa-gray-200);
    border-radius: 50%;
    margin-left: 6px;
    color: transparent;
    font-size: 0;
    text-decoration: none;
    vertical-align: middle;
    position: relative;
}

.woocommerce-checkout .cart-discount td a.woocommerce-remove-coupon::before {
    content: '\u00d7';
    font-size: 12px;
    line-height: 1;
    color: var(--bbwa-gray-600);
    font-weight: bold;
}

.woocommerce-checkout .cart-discount td a.woocommerce-remove-coupon:hover {
    background: var(--bbwa-danger);
}

.woocommerce-checkout .cart-discount td a.woocommerce-remove-coupon:hover::before {
    color: #fff;
}

/* Checkout table alignment */
.woocommerce-checkout table.shop_table tfoot th {
    text-align: left;
}

.woocommerce-checkout table.shop_table tfoot td {
    text-align: right;
}

/* Payment Methods */
.woocommerce-checkout #payment {
    background: var(--bbwa-gray-50);
    border-radius: var(--bbwa-border-radius);
    padding: 20px;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
    background: #fff;
    margin-bottom: 10px;
    border-radius: var(--bbwa-border-radius);
    border: 1px solid var(--bbwa-gray-200);
    transition: var(--bbwa-transition);
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: var(--bbwa-primary);
}

.woocommerce-checkout #payment ul.payment_methods li label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    font-weight: 500;
}

.woocommerce-checkout #payment ul.payment_methods li .payment_box {
    padding: 16px;
    background: var(--bbwa-gray-50);
    border-top: 1px solid var(--bbwa-gray-100);
    font-size: 14px;
    color: var(--bbwa-gray-600);
}

/* Place Order Button */
.woocommerce-checkout #place_order {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--bbwa-success);
    color: #fff;
    border: none;
    border-radius: var(--bbwa-border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--bbwa-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-checkout #place_order:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: var(--bbwa-shadow-md);
}

/* =============================================
   BBWA CUSTOM ENHANCEMENTS
   ============================================= */

/* Free Shipping Progress Bar */
.bbwa-shipping-progress {
    background: #fff;
    border-radius: var(--bbwa-border-radius);
    box-shadow: var(--bbwa-shadow);
    padding: 20px;
    margin-bottom: 24px;
}

.bbwa-shipping-progress-text {
    font-size: 14px;
    color: var(--bbwa-gray-700);
    margin-bottom: 12px;
    text-align: center;
}

.bbwa-shipping-progress-text strong {
    color: var(--bbwa-primary);
}

.bbwa-shipping-progress-bar {
    height: 8px;
    background: var(--bbwa-gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.bbwa-shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bbwa-primary), var(--bbwa-success));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bbwa-shipping-progress.complete .bbwa-shipping-progress-text {
    color: var(--bbwa-success);
}

.bbwa-shipping-progress.complete .bbwa-shipping-progress-fill {
    background: var(--bbwa-success);
}

/* Trust Badges - Horizontal Layout */
.bbwa-trust-badges {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 16px 20px !important;
    background: var(--bbwa-gray-50, #f9fafb) !important;
    border-radius: var(--bbwa-border-radius, 8px) !important;
    margin-top: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bbwa-trust-badge {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: left !important;
    flex: 0 1 auto !important;
}

.bbwa-trust-badge-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    flex-shrink: 0 !important;
}

.bbwa-trust-badge-icon svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    fill: var(--bbwa-primary, #2563eb) !important;
}

.bbwa-trust-badge-text {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--bbwa-gray-600, #4b5563) !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

/* Trust Badges - Vertical Layout (Cart Page) */
body.bbwa-cart-badges-vertical .bbwa-trust-badges {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

body.bbwa-cart-badges-vertical .bbwa-trust-badge {
    flex-direction: row !important;
    width: 100% !important;
}

/* Trust Badges - Vertical Layout (Checkout Page) */
body.bbwa-checkout-badges-vertical .bbwa-trust-badges {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

body.bbwa-checkout-badges-vertical .bbwa-trust-badge {
    flex-direction: row !important;
    width: 100% !important;
}

/* Stock Status */
.bbwa-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.bbwa-stock-status.in-stock {
    background: var(--bbwa-success-light);
    color: var(--bbwa-success);
}

.bbwa-stock-status.low-stock {
    background: var(--bbwa-warning-light);
    color: var(--bbwa-warning);
}

/* Estimated Delivery */
.bbwa-estimated-delivery-row td {
    padding: 0 !important;
    border: none !important;
}

.bbwa-estimated-delivery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bbwa-success-light);
    border-radius: var(--bbwa-border-radius);
    margin-top: 16px;
}

.bbwa-estimated-delivery svg {
    width: 20px;
    height: 20px;
    fill: var(--bbwa-success);
    flex-shrink: 0;
}

.bbwa-estimated-delivery-text {
    font-size: 14px;
    color: var(--bbwa-gray-700);
}

.bbwa-estimated-delivery-text strong {
    color: var(--bbwa-success);
}

/* Applied Coupons */
.bbwa-applied-coupons-wc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.bbwa-applied-coupon-wc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bbwa-success-light);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bbwa-success);
}

/* Secure Checkout Banner */
.bbwa-secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--bbwa-gray-50);
    border-radius: var(--bbwa-border-radius);
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--bbwa-gray-600);
}

.bbwa-secure-checkout svg {
    width: 16px;
    height: 16px;
    fill: var(--bbwa-success);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    /* Cart Table Mobile */
    .woocommerce-cart table.shop_table {
        display: block;
    }
    
    .woocommerce-cart table.shop_table thead {
        display: none;
    }
    
    .woocommerce-cart table.shop_table tbody {
        display: block;
    }
    
    .woocommerce-cart table.shop_table tr {
        display: flex;
        flex-wrap: wrap;
        padding: 16px;
        border-bottom: 1px solid var(--bbwa-gray-100);
        position: relative;
        align-items: center;
    }
    
    .woocommerce-cart table.shop_table td {
        padding: 6px 0;
        border: none;
        display: block;
    }
    
    .woocommerce-cart table.shop_table .product-remove {
        position: absolute;
        right: 12px;
        top: 12px;
        order: 1;
    }
    
    .woocommerce-cart table.shop_table .product-thumbnail {
        width: 70px;
        order: 2;
    }
    
    .woocommerce-cart table.shop_table .product-thumbnail img {
        width: 60px;
        height: 60px;
    }
    
    .woocommerce-cart table.shop_table .product-name {
        flex: 1;
        padding-left: 12px;
        padding-right: 40px;
        order: 3;
        font-size: 14px;
    }
    
    .woocommerce-cart table.shop_table .product-price {
        width: 100%;
        order: 4;
        text-align: left;
        padding-left: 82px;
        font-size: 13px;
        color: var(--bbwa-gray-500);
    }
    
    .woocommerce-cart table.shop_table .product-price::before {
        content: 'Price: ';
        font-weight: normal;
    }
    
    .woocommerce-cart table.shop_table .product-quantity {
        width: auto;
        order: 5;
        padding-left: 82px;
        margin-top: 8px;
    }
    
    .woocommerce-cart table.shop_table .product-subtotal {
        width: auto;
        order: 6;
        margin-left: auto;
        margin-top: 8px;
        font-size: 15px;
    }
    
    /* Actions row */
    .woocommerce-cart table.shop_table tr.actions {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
    }
    
    .woocommerce-cart table.shop_table tr.actions td {
        width: 100%;
    }
    
    .woocommerce-cart .coupon {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .woocommerce-cart .coupon input[type="text"] {
        min-width: 100%;
        flex: 1;
    }
    
    .woocommerce-cart .coupon button {
        width: 100%;
    }
    
    .woocommerce-cart button[name="update_cart"] {
        width: 100%;
        margin-top: 8px;
    }
    
    /* Cart totals mobile */
    .woocommerce-cart .cart_totals {
        padding: 16px;
    }
    
    .woocommerce-cart .cart_totals table th,
    .woocommerce-cart .cart_totals table td {
        padding: 10px 0;
        font-size: 14px;
    }
    
    /* Trust Badges Mobile */
    .bbwa-trust-badges {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
        margin-top: 16px;
    }
    
    .bbwa-trust-badge {
        flex: 0 0 calc(50% - 6px);
    }
    
    .bbwa-trust-badge-icon {
        width: 36px;
        height: 36px;
    }
    
    .bbwa-trust-badge-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .bbwa-trust-badge-text {
        font-size: 11px;
    }
    
    /* Checkout Mobile */
    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        padding: 16px;
    }
    
    .woocommerce-checkout #order_review {
        padding: 16px;
    }
    
    /* Shipping progress mobile */
    .bbwa-shipping-progress {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    /* Secure checkout banner mobile */
    .bbwa-secure-checkout {
        padding: 10px;
        font-size: 12px;
        margin-bottom: 16px;
    }
    
    /* Trust badges mobile - stack vertically */
    .bbwa-trust-badges {
        flex-direction: column !important;
        gap: 12px !important;
    }
}

/* =============================================
   CART PAGE - TRUST BADGES HORIZONTAL FIX
   ============================================= */
.woocommerce-cart .bbwa-trust-badges,
body.woocommerce-cart .bbwa-trust-badges,
.cart-collaterals .bbwa-trust-badges,
.cart_totals .bbwa-trust-badges {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 16px !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    margin-top: 16px !important;
    width: 100% !important;
}

.woocommerce-cart .bbwa-trust-badge,
body.woocommerce-cart .bbwa-trust-badge {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.woocommerce-cart .bbwa-trust-badge-icon,
body.woocommerce-cart .bbwa-trust-badge-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    background: #fff !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.woocommerce-cart .bbwa-trust-badge-icon svg,
body.woocommerce-cart .bbwa-trust-badge-icon svg {
    width: 14px !important;
    height: 14px !important;
    fill: #111 !important;
}

.woocommerce-cart .bbwa-trust-badge-text,
body.woocommerce-cart .bbwa-trust-badge-text {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

/* =============================================
   HIDE WOOSTIFY QTY BUTTONS - USE BBWA BUTTONS
   ============================================= */
.woocommerce-cart .quantity .woostify-qty-btn,
.woocommerce-cart .woostify-qty-btn,
.woocommerce-cart .quantity-btn,
.woocommerce-cart .qty-btn {
    display: none !important;
}

/* Ensure BBWA qty buttons are visible */
.woocommerce-cart .bbwa-qty-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce-cart .bbwa-qty-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes bbwa-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.bbwa-loading {
    animation: bbwa-pulse 1.5s infinite;
}

/* =============================================
   QTY INPUT VISIBILITY FIX - MAXIMUM SPECIFICITY
   Override ANY theme/plugin hiding the qty number
   ============================================= */

/* Nuclear option: ensure qty input text is ALWAYS visible */
html body.woocommerce-cart table.shop_table td.product-quantity .quantity input.qty,
html body.woocommerce-cart table.shop_table .quantity .qty,
html body.woocommerce-cart .quantity input.qty,
html body .woocommerce-cart-form .quantity input.qty,
html body .quantity input[type="number"].qty,
html body .bbwa-qty-wrapper input.qty,
html body .bbwa-qty-wrapper .qty,
html body input.qty,
.quantity .qty,
input.qty {
    /* Force visible text */
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    
    /* Ensure visibility */
    opacity: 1 !important;
    visibility: visible !important;
    
    /* Proper sizing */
    width: 50px !important;
    min-width: 50px !important;
    height: 40px !important;
    
    /* Text styling */
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
    
    /* Background */  
    background: #fff !important;
    background-color: #fff !important;
    
    /* No hiding tricks */
    text-indent: 0 !important;
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    
    /* Display */
    display: inline-block !important;
    
    /* Remove spinners */
    -moz-appearance: textfield !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Override Woostify specific qty hiding patterns */
html body .quantity input.qty[type="number"],
html body .woostify-qty-btn + input.qty,
html body .quantity .woostify-qty-btn ~ input.qty {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* WebKit spinners removal with visibility fix */
html body input.qty::-webkit-outer-spin-button,
html body input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* =============================================
   SHIPPING METHOD STYLES
   ============================================= */

/* Base wrapper */
.bbwa-shipping-methods {
    margin: 20px 0;
}

.bbwa-shipping-methods-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--bbwa-gray-900, #111827);
    margin-bottom: 12px;
}

/* ---------- STYLE 1: RADIO BUTTONS (Enhanced) ---------- */
.bbwa-shipping-style-radio .woocommerce-shipping-methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bbwa-shipping-style-radio .woocommerce-shipping-methods li {
    margin: 0 0 8px 0 !important;
    padding: 12px 16px !important;
    background: #fff !important;
    border: 1px solid var(--bbwa-gray-200, #e5e7eb) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.bbwa-shipping-style-radio .woocommerce-shipping-methods li:hover {
    border-color: var(--bbwa-primary, #2563eb) !important;
    background: var(--bbwa-gray-50, #f9fafb) !important;
}

.bbwa-shipping-style-radio .woocommerce-shipping-methods li:has(input:checked) {
    border-color: var(--bbwa-primary, #2563eb) !important;
    background: rgba(37, 99, 235, 0.05) !important;
}

.bbwa-shipping-style-radio .woocommerce-shipping-methods label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: var(--bbwa-gray-700, #374151) !important;
    margin: 0 !important;
    width: 100% !important;
}

.bbwa-shipping-style-radio .woocommerce-shipping-methods input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: var(--bbwa-primary, #2563eb) !important;
    flex-shrink: 0 !important;
}

.bbwa-shipping-style-radio .woocommerce-shipping-methods .woocommerce-Price-amount {
    margin-left: auto !important;
    font-weight: 600 !important;
    color: var(--bbwa-primary, #2563eb) !important;
}

/* ---------- STYLE 2: DROPDOWN SELECT ---------- */
.bbwa-shipping-style-dropdown {
    position: relative !important;
}

.bbwa-shipping-dropdown-box {
    background: #fff !important;
    border: 2px dashed var(--bbwa-gray-300, #d1d5db) !important;
    border-radius: 8px !important;
    padding: 20px !important;
}

.bbwa-shipping-dropdown-label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--bbwa-gray-600, #4b5563) !important;
    margin-bottom: 10px !important;
}

.bbwa-shipping-select {
    width: 100% !important;
    padding: 12px 40px 12px 16px !important;
    font-size: 14px !important;
    border: 1px solid var(--bbwa-gray-300, #d1d5db) !important;
    border-radius: 8px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center !important;
    background-size: 20px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    color: var(--bbwa-gray-900, #111827) !important;
    transition: all 0.2s ease !important;
}

.bbwa-shipping-select:hover,
.bbwa-shipping-select:focus {
    border-color: var(--bbwa-primary, #2563eb) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.bbwa-shipping-dropdown-note {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 12px !important;
    font-size: 12px !important;
    color: var(--bbwa-gray-500, #6b7280) !important;
}

.bbwa-shipping-dropdown-note svg {
    width: 16px !important;
    height: 16px !important;
    fill: var(--bbwa-gray-400, #9ca3af) !important;
}

/* =============================================
   WOOSTIFY MULTI-STEP CHECKOUT - SHIPPING STYLES
   ============================================= */

/* Woostify Radio Buttons - Enhanced Styling */
.bbwa-woostify-radio-styled {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.bbwa-woostify-radio-styled .shipping-methods-modified-item {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.bbwa-woostify-radio-styled .shipping-methods-modified-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    background: #fff !important;
    border: 2px solid var(--bbwa-gray-200, #e5e7eb) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    color: var(--bbwa-gray-700, #374151) !important;
    margin: 0 !important;
}

.bbwa-woostify-radio-styled .shipping-methods-modified-label:hover {
    border-color: var(--bbwa-primary, #2563eb) !important;
    background: var(--bbwa-gray-50, #f9fafb) !important;
}

.bbwa-woostify-radio-styled .shipping-methods-modified-input:checked + span,
.bbwa-woostify-radio-styled .shipping-methods-modified-label:has(input:checked) {
    border-color: var(--bbwa-primary, #2563eb) !important;
    background: rgba(37, 99, 235, 0.05) !important;
}

.bbwa-woostify-radio-styled .shipping-methods-modified-input {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: var(--bbwa-primary, #2563eb) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.bbwa-woostify-radio-styled .woocommerce-Price-amount {
    margin-left: auto !important;
    font-weight: 600 !important;
    color: var(--bbwa-primary, #2563eb) !important;
}

/* Woostify Dropdown Style - Already handled by .bbwa-shipping-dropdown-box */

/* Hide original Woostify shipping when dropdown is active */
.shipping-methods-modified + .bbwa-shipping-dropdown-box {
    margin-top: 0 !important;
}

/* Woostify Step 2 specific adjustments */
.has-multi-step-checkout .multi-step-checkout-content[data-step="second"] .bbwa-shipping-dropdown-box {
    margin: 16px 0 !important;
}

/* ---------- STYLE 3: SELECTABLE CARDS ---------- */
.bbwa-shipping-style-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 12px !important;
}

.bbwa-shipping-card {
    position: relative !important;
    background: #fff !important;
    border: 2px solid var(--bbwa-gray-200, #e5e7eb) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.bbwa-shipping-card:hover {
    border-color: var(--bbwa-primary, #2563eb) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.bbwa-shipping-card.selected {
    border-color: var(--bbwa-primary, #2563eb) !important;
    background: rgba(37, 99, 235, 0.03) !important;
}

.bbwa-shipping-card.selected::after {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 20px !important;
    height: 20px !important;
    background: var(--bbwa-primary, #2563eb) !important;
    border-radius: 50% !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px !important;
}

.bbwa-shipping-card input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bbwa-shipping-card-icon {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bbwa-gray-100, #f3f4f6) !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
}

.bbwa-shipping-card-icon svg {
    width: 20px !important;
    height: 20px !important;
    fill: var(--bbwa-gray-600, #4b5563) !important;
}

.bbwa-shipping-card.selected .bbwa-shipping-card-icon {
    background: rgba(37, 99, 235, 0.1) !important;
}

.bbwa-shipping-card.selected .bbwa-shipping-card-icon svg {
    fill: var(--bbwa-primary, #2563eb) !important;
}

.bbwa-shipping-card-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--bbwa-gray-900, #111827) !important;
    margin-bottom: 4px !important;
}

.bbwa-shipping-card-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--bbwa-primary, #2563eb) !important;
    margin-bottom: 4px !important;
}

.bbwa-shipping-card-delivery {
    font-size: 12px !important;
    color: var(--bbwa-gray-500, #6b7280) !important;
}

/* ---------- STYLE 4: ACCORDION (Collapsible) ---------- */
.bbwa-shipping-style-accordion {
    border: 1px solid var(--bbwa-gray-200, #e5e7eb) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.bbwa-shipping-accordion-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 20px !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
}

.bbwa-shipping-accordion-header:hover {
    background: var(--bbwa-gray-50, #f9fafb) !important;
}

.bbwa-shipping-accordion-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--bbwa-gray-900, #111827) !important;
}

.bbwa-shipping-accordion-title svg {
    width: 20px !important;
    height: 20px !important;
    fill: var(--bbwa-gray-600, #4b5563) !important;
}

.bbwa-shipping-accordion-selected {
    font-size: 13px !important;
    color: var(--bbwa-gray-600, #4b5563) !important;
}

.bbwa-shipping-accordion-selected strong {
    color: var(--bbwa-primary, #2563eb) !important;
}

.bbwa-shipping-accordion-arrow {
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease !important;
}

.bbwa-shipping-accordion-arrow svg {
    width: 18px !important;
    height: 18px !important;
    fill: var(--bbwa-gray-500, #6b7280) !important;
}

.bbwa-shipping-style-accordion.expanded .bbwa-shipping-accordion-arrow {
    transform: rotate(180deg) !important;
}

.bbwa-shipping-accordion-content {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
    background: var(--bbwa-gray-50, #f9fafb) !important;
}

.bbwa-shipping-style-accordion.expanded .bbwa-shipping-accordion-content {
    max-height: 500px !important;
}

.bbwa-shipping-accordion-list {
    padding: 12px 20px 20px !important;
    list-style: none !important;
    margin: 0 !important;
}

.bbwa-shipping-accordion-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    background: #fff !important;
    border: 1px solid var(--bbwa-gray-200, #e5e7eb) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.bbwa-shipping-accordion-item:last-child {
    margin-bottom: 0 !important;
}

.bbwa-shipping-accordion-item:hover {
    border-color: var(--bbwa-primary, #2563eb) !important;
}

.bbwa-shipping-accordion-item.selected {
    border-color: var(--bbwa-primary, #2563eb) !important;
    background: rgba(37, 99, 235, 0.03) !important;
}

.bbwa-shipping-accordion-item input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: var(--bbwa-primary, #2563eb) !important;
    flex-shrink: 0 !important;
}

.bbwa-shipping-accordion-item-info {
    flex: 1 !important;
}

.bbwa-shipping-accordion-item-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--bbwa-gray-900, #111827) !important;
}

.bbwa-shipping-accordion-item-delivery {
    font-size: 12px !important;
    color: var(--bbwa-gray-500, #6b7280) !important;
    margin-top: 2px !important;
}

.bbwa-shipping-accordion-item-price {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--bbwa-primary, #2563eb) !important;
    white-space: nowrap !important;
}

/* =============================================
   SHIPPING STYLES - RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    /* Trust Badges Mobile */
    .bbwa-trust-badges {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 12px !important;
    }
    
    .bbwa-trust-badge {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    /* Shipping Cards Mobile */
    .bbwa-shipping-style-cards {
        grid-template-columns: 1fr !important;
    }
    
    /* Dropdown Box Mobile */
    .bbwa-shipping-dropdown-box {
        padding: 16px !important;
    }
    
    /* Accordion Mobile */
    .bbwa-shipping-accordion-header {
        padding: 14px 16px !important;
    }
    
    .bbwa-shipping-accordion-list {
        padding: 10px 16px 16px !important;
    }
}

@media (max-width: 480px) {
    .bbwa-trust-badge-icon {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
    }
    
    .bbwa-trust-badge-icon svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .bbwa-trust-badge-text {
        font-size: 11px !important;
    }
    
    .bbwa-shipping-card {
        padding: 12px !important;
    }
    
    .bbwa-shipping-accordion-item {
        padding: 10px 12px !important;
        flex-wrap: wrap !important;
    }
    
    .bbwa-shipping-accordion-item-price {
        width: 100% !important;
        margin-top: 6px !important;
        margin-left: 30px !important;
    }
}

/* =============================================
   CHECKOUT PAGE - TRUST BADGES FIX
   Keep badges together in right column
   ============================================= */
.woocommerce-checkout .bbwa-trust-badges,
body.woocommerce-checkout .bbwa-trust-badges,
.woocommerce-checkout-review-order ~ .bbwa-trust-badges,
#order_review ~ .bbwa-trust-badges {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    margin-top: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
    float: none !important;
    position: relative !important;
}

.woocommerce-checkout .bbwa-trust-badge,
body.woocommerce-checkout .bbwa-trust-badge {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
}

/* ShopBuilder/Shopify checkout specific */
.rtsb-checkout-wrapper .bbwa-trust-badges,
.shopify-checkout .bbwa-trust-badges,
.rtsb-shopify-checkout .bbwa-trust-badges {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin-top: 16px !important;
}

.rtsb-checkout-wrapper .bbwa-trust-badge,
.shopify-checkout .bbwa-trust-badge,
.rtsb-shopify-checkout .bbwa-trust-badge {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
}
