/* ArquiAlcance Booking Widget */
.aqb-booking-widget {
    max-width: 540px;
    margin: 32px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(68,66,96,0.10), 0 2px 8px rgba(68,66,96,0.04);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #444260;
}

.aqb-booking-widget * {
    box-sizing: border-box;
}

/* Header */
.aqb-header {
    text-align: center;
    margin-bottom: 28px;
}

.aqb-header .aqb-calendar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #a3005c, #db0e83);
    color: #fff;
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(219,14,131,0.3);
}

.aqb-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #444260 !important;
    margin: 0 0 4px;
    line-height: 1.3;
}

/* Labels */
.aqb-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #8B85C1 !important;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ===== Date Grid ===== */
.aqb-date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 10px;
}

.aqb-date-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 2px solid #ececf3;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    color: #444260 !important;
    line-height: 1.2;
    min-height: 76px;
}

.aqb-date-btn:hover {
    border-color: #db0e83;
    background: #fdf0f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219,14,131,0.12);
}

.aqb-date-btn.selected {
    border-color: #db0e83;
    background: linear-gradient(135deg, #a3005c, #db0e83);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(219,14,131,0.35);
    transform: translateY(-2px);
}

.aqb-date-btn.selected .aqb-day-name,
.aqb-date-btn.selected .aqb-day-num,
.aqb-date-btn.selected .aqb-month {
    color: #fff !important;
    opacity: 1;
}

.aqb-date-btn .aqb-day-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #8B85C1 !important;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.aqb-date-btn .aqb-day-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #444260 !important;
    line-height: 1.1;
}

.aqb-date-btn .aqb-month {
    font-size: 0.7rem;
    font-weight: 600;
    color: #8B85C1 !important;
    margin-top: 1px;
}

/* ===== Time Slots ===== */
.aqb-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.aqb-slot-btn {
    padding: 13px 10px;
    border: 2px solid #ececf3;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    font-family: inherit;
    color: #444260 !important;
}

.aqb-slot-btn:hover {
    border-color: #db0e83;
    background: #fdf0f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219,14,131,0.12);
}

.aqb-slot-btn.selected {
    border-color: #db0e83;
    background: linear-gradient(135deg, #a3005c, #db0e83);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(219,14,131,0.35);
}

.aqb-slots-empty {
    text-align: center;
    color: #8B85C1 !important;
    padding: 24px;
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

/* ===== Buttons ===== */
.aqb-confirm-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(90deg, #a3005c, #db0e83);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(219,14,131,0.3);
}

.aqb-confirm-btn:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219,14,131,0.4);
}

.aqb-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.aqb-back-btn {
    display: inline-block;
    background: none;
    border: none;
    color: #8B85C1 !important;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 8px 0;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
}

.aqb-back-btn:hover {
    color: #db0e83 !important;
}

/* ===== Summary ===== */
.aqb-summary {
    background: #f3f3f9;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
    border: 1px solid #ececf3;
}

.aqb-summary p {
    margin: 6px 0;
    font-size: 1rem;
    color: #444260 !important;
}

.aqb-summary strong {
    color: #444260 !important;
}

/* ===== Success ===== */
.aqb-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #a3005c, #db0e83);
    color: #fff;
    border-radius: 50%;
    font-size: 2.2rem;
    margin: 0 auto 18px;
    box-shadow: 0 6px 20px rgba(219,14,131,0.35);
}

.aqb-success-message {
    text-align: center;
    font-size: 1.1rem;
    color: #444260 !important;
    font-weight: 600;
    line-height: 1.5;
}

.aqb-already-booked {
    text-align: center;
    padding: 20px;
}

.aqb-booked-info {
    font-size: 1.05rem;
    color: #444260 !important;
}

/* ===== Loading ===== */
.aqb-loading {
    text-align: center;
    padding: 36px;
    color: #8B85C1 !important;
}

.aqb-loading p {
    color: #8B85C1 !important;
}

.aqb-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #ececf3;
    border-top-color: #db0e83;
    border-radius: 50%;
    animation: aqb-spin 0.7s linear infinite;
    margin: 0 auto 14px;
}

@keyframes aqb-spin {
    to { transform: rotate(360deg); }
}

/* ===== Error ===== */
.aqb-error {
    text-align: center;
    color: #dc2626 !important;
    padding: 14px 16px;
    background: #fef2f2;
    border-radius: 12px;
    margin-top: 14px;
    border: 1px solid #fecaca;
}

.aqb-error p {
    color: #dc2626 !important;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 560px) {
    .aqb-booking-widget {
        padding: 22px 18px;
        margin: 20px 12px;
        border-radius: 16px;
    }
    .aqb-date-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .aqb-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .aqb-header h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 380px) {
    .aqb-date-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Thank You CTA Button ===== */
.aqb-thankyou-cta {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(68,66,96,0.08);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #ececf3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.aqb-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #a3005c, #db0e83);
    color: #fff;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(219,14,131,0.3);
}

.aqb-cta-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #444260 !important;
    margin: 0 0 6px !important;
    line-height: 1.3;
}

.aqb-cta-desc {
    font-size: 0.9rem;
    color: #8B85C1 !important;
    margin: 0 0 20px;
}

.aqb-cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #a3005c, #db0e83);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(219,14,131,0.3);
}

.aqb-cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219,14,131,0.4);
    color: #fff !important;
}

/* ===== CTA Responsive ===== */
@media (max-width: 560px) {
    .aqb-thankyou-cta {
        padding: 22px 18px;
    }
    .aqb-cta-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    .aqb-cta-icon svg {
        width: 22px;
        height: 22px;
    }
    .aqb-cta-title {
        font-size: 1.05rem !important;
    }
    .aqb-cta-desc {
        font-size: 0.85rem;
    }
    .aqb-cta-button {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ===== Product Page Booking Widget ===== */
.aqb-product-booking {
    background: #f3f3f9;
    border: 2px solid #ececf3;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aqb-product-booking * { box-sizing: border-box; }

.aqb-product-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: #444260;
}

.aqb-product-header .aqb-calendar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #a3005c, #db0e83);
    color: #fff;
    border-radius: 10px;
    flex-shrink: 0;
}

.aqb-reassurance {
    font-size: 0.88rem;
    color: #8B85C1;
    margin: 0 0 18px;
    line-height: 1.5;
}

.aqb-reassurance-small {
    font-size: 0.82rem;
    color: #8B85C1;
    margin: 10px 0 6px;
    line-height: 1.5;
}

/* Pre-confirm (product mode) */
.aqb-preselected {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fdf0f8;
    border: 2px solid #f9a8d4;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
}

.aqb-preselected-check {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #a3005c, #db0e83);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    font-weight: 700;
}

.aqb-preselected strong {
    display: block;
    color: #a3005c;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.aqb-preselected p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #db0e83;
    font-weight: 600;
}

/* Current booking (reschedule mode) */
.aqb-current-booking {
    background: #f3f3f9;
    border: 1px solid #c4c1e8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.aqb-current-booking p { margin: 4px 0; font-size: 0.9rem; color: #444260; }

/* Confirmed booking (thank you page) */
.aqb-confirmed {
    text-align: center;
}

.aqb-confirmed .aqb-summary {
    text-align: left;
    max-width: 320px;
    margin: 0 auto 20px;
}

/* Disabled add-to-cart button */
form.cart button.aqb-disabled,
form.cart .single_add_to_cart_button.aqb-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Per-product booking description */
.aqb-product-description {
    background: #fdf0f8;
    border-left: 3px solid #db0e83;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: #a3005c;
    line-height: 1.5;
}

/* Override WooCommerce add-to-cart button en páginas con booking */
.aqb-product-booking ~ .cart .single_add_to_cart_button,
form.cart .single_add_to_cart_button {
    background: linear-gradient(90deg, #a3005c, #db0e83) !important;
    border-color: #db0e83 !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(219,14,131,0.3) !important;
}
form.cart .single_add_to_cart_button:hover {
    background: linear-gradient(90deg, #8a004d, #c00b72) !important;
    border-color: #c00b72 !important;
    box-shadow: 0 6px 20px rgba(219,14,131,0.4) !important;
}

/* WooCommerce button override */
form.cart .single_add_to_cart_button{background:linear-gradient(90deg,#a3005c,#db0e83)!important;border-color:#db0e83!important;color:#fff!important;box-shadow:0 4px 16px rgba(219,14,131,.3)!important;}
form.cart .single_add_to_cart_button:hover{background:linear-gradient(90deg,#8a004d,#c00b72)!important;border-color:#c00b72!important;}

/* WooCommerce loop/archive buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit{background:linear-gradient(90deg,#a3005c,#db0e83)!important;color:#fff!important;border-color:#db0e83!important;box-shadow:0 4px 14px rgba(219,14,131,.25)!important;}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover{background:linear-gradient(90deg,#8a004d,#c00b72)!important;color:#fff!important;border-color:#c00b72!important;}
