/* Shipping Dates Styling - Theme version without wrapper class */
.shipping-dates-section {
    width: 100%;
    margin: 15px 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.shipping-dates-header {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.ss-shipping-dates-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0;
}

.shipping-date-option {
    position: relative;
    width: 100%;
    margin: 0;
}

.shipping-date-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    visibility: hidden;
    z-index: -1;
}

.shipping-date-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    margin: 0;
    box-sizing: border-box;
}

.shipping-date-button:hover {
    border-color: #007cba;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.shipping-date-option input:checked + .shipping-date-button {
    border-color: #007cba;
    background: #f0f8ff;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
}

.shipping-date-button::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateY(-50%);
}

.shipping-date-option input:checked + .shipping-date-button::before {
    border-color: #007cba;
    background: #007cba;
    box-shadow: inset 0 0 0 3px #fff;
}

.shipping-date-text {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.shipping-date-price {
    font-size: 14px;
    color: #666;
    text-align: right;
    margin-left: 10px;
}

.shipping-date-price.has-emergency {
    color: #e74c3c;
    font-weight: 600;
}

.shipping-date-description {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    display: none;
}

.shipping-date-option input:checked ~ .shipping-date-description {
    display: block;
}

.woocommerce-checkout-review-order-table td, .woocommerce-checkout-review-order-table th {
    max-width: 100% !important;
}


  tr.woocommerce-shipping-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* optional, aligns left */
  }
  
  tr.woocommerce-shipping-totals th,
  tr.woocommerce-shipping-totals td {
    display: block;
    width: 100%;
  }

/* Shipping Methods Styling */
.woocommerce-shipping-totals ul#shipping_method {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 140%;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-shipping-totals ul#shipping_method li {
    margin: 0;
    padding: 0;
    position: relative;
}

.woocommerce-shipping-totals ul#shipping_method li input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    visibility: hidden;
    z-index: -1;
}

.woocommerce-shipping-totals ul#shipping_method li label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    margin: 0;
    box-sizing: border-box;
    font-weight: 400;
}

.woocommerce-shipping-totals ul#shipping_method li label:hover {
    border-color: #007cba;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.woocommerce-shipping-totals ul#shipping_method li input:checked + label {
    border-color: #007cba;
    background: #f0f8ff;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
}

.woocommerce-shipping-totals ul#shipping_method li label::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateY(-50%);
}

.woocommerce-shipping-totals ul#shipping_method li input:checked + label::before {
    border-color: #007cba;
    background: #007cba;
    box-shadow: inset 0 0 0 3px #fff;
}

.woocommerce-shipping-totals ul#shipping_method li label .woocommerce-Price-amount {
    color: #666;
    font-weight: 600;
}

/* Shipping Date Selector Styling */
.wc_payment_methods.ss_shipping_dates {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
}

.wc_payment_methods.ss_shipping_dates li.wc_payment_method {
    margin: 0;
    padding: 0;
    position: relative;
}

.wc_payment_methods.ss_shipping_dates li.wc_payment_method input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    visibility: hidden;
    z-index: -1;
}

.wc_payment_methods.ss_shipping_dates li.wc_payment_method label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    margin: 0;
    box-sizing: border-box;
    font-weight: 400;
}

.wc_payment_methods.ss_shipping_dates li.wc_payment_method label:hover {
    border-color: #007cba;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.wc_payment_methods.ss_shipping_dates li.wc_payment_method input:checked + label {
    border-color: #007cba;
    background: #f0f8ff;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
}

.wc_payment_methods.ss_shipping_dates li.wc_payment_method label::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateY(-50%);
}

.wc_payment_methods.ss_shipping_dates li.wc_payment_method input:checked + label::before {
    border-color: #007cba;
    background: #007cba;
    box-shadow: inset 0 0 0 3px #fff;
}

.wc_payment_methods.ss_shipping_dates li.wc_payment_method label .woocommerce-Price-amount {
    color: #666;
    font-weight: 600;
}

.wc_payment_methods.ss_shipping_dates li.wc_payment_method label .price.has-price .woocommerce-Price-amount {
    color: #666;
    font-weight: 600;
}

.wc_payment_methods.ss_shipping_dates li.wc_payment_method label .price.no-price .woocommerce-Price-amount {
    color: #27ae60;
    font-weight: 600;
}

/* Override default theme styles that interfere with custom radio buttons */
#shipping_method li > label::after {
    display: none !important;
    content: none !important;
}

/* Also override any potential interference with shipping date buttons */
.shipping-date-button::after {
    display: none !important;
    content: none !important;
}

.shipping-date-option label::after {
    display: none !important;
    content: none !important;
}

/* Override for shipping date selector */
.wc_payment_methods.ss_shipping_dates li.wc_payment_method label::after {
    display: none !important;
    content: none !important;
}

