/* SellaStudio Shipping — Checkout Styles */

/* Method descriptions */
.sss-method-desc {
    display: block;
    font-size: 0.82em;
    color: #555;
    font-weight: normal;
    margin-top: 3px;
    line-height: 1.4;
}

.sss-timeframe {
    display: inline-block;
    margin-top: 4px;
    background: #f0f0f0;
    border-radius: 3px;
    padding: 1px 7px;
    font-size: 0.78em;
    color: #333;
    font-style: italic;
}

/* Free delivery notice */
.sss-free-notice {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    padding: 10px 14px;
    margin: 10px 0;
    font-size: 0.9em;
    border-radius: 0 4px 4px 0;
}

.sss-free-notice--active {
    background: #e8f5e9;
    border-left-color: #43a047;
    font-weight: bold;
    color: #2e7d32;
}

/* Delivery notes */
.sss-delivery-notes {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 20px 0;
}

.sss-delivery-notes__title {
    margin: 0 0 10px;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #333;
}

.sss-delivery-notes__list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.sss-delivery-notes__list li {
    font-size: 0.82em;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Shipping method label fix */
.woocommerce-shipping-methods label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Address autocomplete */
.woocommerce form .form-row {
    position: relative;
}

.sss-address-suggestions {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d8dde3;
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.sss-address-suggestion {
    width: 100%;
    display: block;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    color: #1f2937;
}

.sss-address-suggestion:last-child {
    border-bottom: 0;
}

.sss-address-suggestion:hover,
.sss-address-suggestion:focus {
    background: #f4faf3;
    outline: none;
}

.sss-address-suggestion strong,
.sss-address-suggestion span {
    display: block;
}

.sss-address-suggestion strong {
    font-size: 0.92em;
    font-weight: 700;
    margin-bottom: 2px;
}

.sss-address-suggestion span {
    font-size: 0.78em;
    line-height: 1.35;
    color: #64748b;
}

.sss-autofill-highlight {
    background-color: #f0fdf4 !important;
    border-color: #22c55e !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Desktop checkout field layout */
@media (min-width: 768px) {
    .woocommerce-checkout #billing_phone_field,
    .woocommerce-checkout #billing_email_field {
        width: calc(50% - 10px);
        float: left;
        clear: none;
    }

    .woocommerce-checkout #billing_phone_field {
        margin-right: 20px;
        clear: both;
    }

    .woocommerce-checkout #billing_email_field {
        margin-right: 0;
    }

    .woocommerce-checkout #billing_city_field,
    .woocommerce-checkout #billing_state_field,
    .woocommerce-checkout #billing_postcode_field,
    .woocommerce-checkout #shipping_city_field,
    .woocommerce-checkout #shipping_state_field,
    .woocommerce-checkout #shipping_postcode_field {
        width: calc(33.333% - 14px);
        float: left;
        clear: none;
        margin-right: 21px;
    }

    .woocommerce-checkout #billing_city_field,
    .woocommerce-checkout #shipping_city_field {
        clear: both;
    }

    .woocommerce-checkout #billing_postcode_field,
    .woocommerce-checkout #shipping_postcode_field {
        margin-right: 0;
    }
}
