/**
 * Frontend Styles for Advanced Shipping Settings
 */

/* Checkout Info Box */
.ass-checkout-shipping-info {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.ass-checkout-shipping-info.ass-invalid {
    border-color: #dc3232;
}

.ass-asap-date-info {
    margin: 0;
    font-size: 14px;
}

.ass-reservation-prompt {
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
}

.ass-date-options {
    margin-top: 5px;
}

.ass-date-option {
    cursor: pointer;
    display: inline-block;
    padding: 4px 0;
    font-size: 14px;
}

.ass-date-option input[type="radio"] {
    margin-right: 8px;
}

.ass-no-dates-error {
    color: #a00;
    margin: 0;
    font-size: 14px;
}

/* Product Page Shortcode Styling */
.ass-shipping-info {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.ass-method {
    margin-bottom: 20px;
}

.ass-method:last-child {
    margin-bottom: 0;
}

.ass-method-header-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ass-method-logo {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.ass-method-name {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.ass-date-label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

.ass-date {
    font-size: 14px;
    padding-left: 12px;
    color: #444;
    position: relative;
    margin-bottom: 2px;
}

.ass-date:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ccc;
}

.ass-asap-date {
    font-size: 14px;
    color: #444;
}

/* Pickup Location Logo in Checkout */
.ass-pickup-checkout-logo {
    height: 30px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
}


.ass-disclaimer-divider {
    margin: 15px 0 10px 0;
    border: 0;
    border-top: 1px solid #e5e5e5;
    background: none;
    height: 0;
}

.ass-disclaimer-link {
    display: inline-block;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ass-disclaimer-link:hover {
    color: #333;
    text-decoration: underline;
}

.ass-disclaimer-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.ass-hidden-field {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Order Details Page Styling */
.ass-order-delivery-info {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.ass-order-delivery-info p {
    margin: 0;
    font-size: 14px;
}

/* Free Shipping Widget */
.ass-free-shipping-widget {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.ass-free-shipping-widget--loading {
    opacity: 0.6;
    pointer-events: none;
}

.ass-free-shipping-widget--hidden {
    display: none;
}

.ass-free-shipping-widget[data-state="message"] .ass-free-shipping-widget__bar {
    display: none;
}

.ass-free-shipping-widget__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.ass-free-shipping-widget__title svg {
    width: 16px;
    height: 16px;
    opacity: 0.85;
    flex-shrink: 0;
}

.ass-free-shipping-widget__bar {
    height: 10px;
    border-radius: 999px;
    background: #f1f1f1;
    overflow: hidden;
    margin-bottom: 8px;
}

.ass-free-shipping-widget__bar > span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #64d07a, #4caf50);
    transition: width 0.25s ease;
}

.ass-free-shipping-widget__note {
    font-size: 13px;
    margin-top: 0;
    opacity: 0.95;
    line-height: 1.4;
}