/* ============================================
   VARIÁVEIS CSS PERSONALIZÁVEIS
   Estas são sobrescritas pelo generate_dynamic_css()
   ============================================ */
:root {
    /* Cores Principais */
    --wpmb-primary-color: #222222;
    --wpmb-accent-color: #22c55e;
    --wpmb-bg-color: #ffffff;

    /* Cores Adicionais (sobrescritas pelo painel) */
    --wpmb-success: #10b981;
    --wpmb-danger: #ef4444;
    --wpmb-warning: #f59e0b;
    --wpmb-text: #334155;
    --wpmb-text-light: #64748b;
    --wpmb-card-bg: #f8fafc;
    --wpmb-border: #e2e8f0;
    --wpmb-radius: 12px;
    --wpmb-transition: 0.3s;

    /* Fonte */
    --wpmb-font-family: 'Montserrat', sans-serif;
}

/* ============================================
   ESTILOS DE LAYOUT (wizard_layout)
   Classes: wpmb-layout-vertical, wpmb-layout-horizontal, wpmb-layout-tabs
   ============================================ */

/* Layout Vertical (padrão) */
.wpmb-layout-vertical .wpmb-steps-nav {
    flex-direction: row;
}

/* Layout Horizontal - Steps lado a lado */
.wpmb-layout-horizontal .wpmb-steps-nav {
    flex-direction: row;
    gap: 30px;
}

.wpmb-layout-horizontal .wpmb-grid-layout {
    display: block;
}

/* Layout Tabs - Navegação por abas */
.wpmb-layout-tabs .wpmb-steps-nav {
    background: var(--wpmb-card-bg, #f8fafc);
    border-radius: var(--wpmb-radius, 12px);
    padding: 8px;
    gap: 5px;
}

.wpmb-layout-tabs .wpmb-steps-nav::before {
    display: none;
    /* Remove linha conectora */
}

.wpmb-layout-tabs .step-item {
    flex-direction: row;
    gap: 10px;
    padding: 10px 15px;
    border-radius: calc(var(--wpmb-radius, 12px) - 4px);
    transition: all var(--wpmb-transition, 0.3s);
}

.wpmb-layout-tabs .step-item.active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wpmb-layout-tabs .step-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

/* ============================================
   ESTILOS VISUAIS (wizard_style)
   Classes: wpmb-style-modern, wpmb-style-classic, wpmb-style-minimal
   ============================================ */

/* Estilo Moderno (padrão) - Gradientes e sombras */
.wpmb-style-modern .wpmb-summary-card {
    background: linear-gradient(135deg, var(--wpmb-card-bg, #f8fafc) 0%, #fff 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--wpmb-border, #e2e8f0);
}

.wpmb-style-modern .wpmb-btn-primary {
    background: linear-gradient(135deg, var(--wpmb-primary-color) 0%, color-mix(in srgb, var(--wpmb-primary-color) 80%, black) 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.wpmb-style-modern .wpmb-btn-success {
    background: linear-gradient(135deg, var(--wpmb-accent-color) 0%, color-mix(in srgb, var(--wpmb-accent-color) 80%, black) 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.wpmb-style-modern .step-item.active .step-circle {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Estilo Clássico - Visual tradicional */
.wpmb-style-classic .wpmb-summary-card {
    background: #fff;
    border: 2px solid var(--wpmb-border, #e2e8f0);
    box-shadow: none;
    border-radius: 4px;
}

.wpmb-style-classic .wpmb-btn-primary,
.wpmb-style-classic .wpmb-btn-success {
    border-radius: 4px;
    box-shadow: none;
}

.wpmb-style-classic .step-circle {
    border-radius: 4px;
}

.wpmb-style-classic .wpmb-card-inner-compact {
    border-radius: 4px;
}

/* Estilo Minimalista - Limpo e simples */
.wpmb-style-minimal .wpmb-summary-card {
    background: transparent;
    border: 1px solid var(--wpmb-border, #e2e8f0);
    box-shadow: none;
    padding: 15px;
}

.wpmb-style-minimal .wpmb-btn-primary,
.wpmb-style-minimal .wpmb-btn-success {
    background: transparent;
    color: var(--wpmb-primary-color);
    border: 2px solid var(--wpmb-primary-color);
}

.wpmb-style-minimal .wpmb-btn-success {
    color: var(--wpmb-accent-color);
    border-color: var(--wpmb-accent-color);
}

.wpmb-style-minimal .step-circle {
    background: transparent;
    border: 2px solid var(--wpmb-border, #e2e8f0);
}

.wpmb-style-minimal .step-item.active .step-circle {
    background: transparent;
    border-color: var(--wpmb-accent-color);
    color: var(--wpmb-accent-color);
}

/* ============================================
   ANIMAÇÕES (enable_animations)
   Classe: wpmb-no-animations
   ============================================ */
.wpmb-no-animations,
.wpmb-no-animations * {
    transition: none !important;
    animation: none !important;
}

/* ============================================
   BARRA DE PROGRESSO (show_progress_bar)
   ============================================ */
.wpmb-progress-bar {
    height: 4px;
    background: var(--wpmb-border, #e2e8f0);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.wpmb-progress-bar-fill {
    height: 100%;
    background: var(--wpmb-accent-color);
    transition: width var(--wpmb-transition, 0.3s);
    border-radius: 2px;
}

.wpmb-modern-wrapper {
    font-family: var(--wpmb-font-family), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--wpmb-text, var(--wpmb-primary-color));
    background: var(--wpmb-bg-color, #ffffff);
    line-height: 1.5;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    position: relative;
    /* Necessário para cálculos de offset */
    padding: 0 20px;
}

.wpmb-modern-wrapper *,
.wpmb-modern-wrapper *::before,
.wpmb-modern-wrapper *::after {
    box-sizing: border-box;
}

.wpmb-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media(min-width: 768px) {
    .wpmb-grid-layout {
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 32px;
        align-items: start;
    }
}

.wpmb-header {
    margin-bottom: 24px;
}

.wpmb-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--wpmb-primary-color);
    line-height: 1.3;
}

.wpmb-description {
    color: #64748b;
    margin: 0 0 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.wpmb-h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--wpmb-primary-color);
}

/* --- GALERIA (Ajuste de Preenchimento) --- */
.wpmb-mobile-gallery-top {
    display: none;
    margin-bottom: 20px;
}

.wpmb-desktop-gallery-sidebar {
    display: block;
}

.wpmb-mobile-spacer {
    display: none;
}

.wpmb-main-img {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* Aspect Ratio 4:3 para imagens mais horizontais */
    overflow: hidden;
    border-radius: 12px;
    background: #eee;
    margin-bottom: 12px;
}

.wpmb-main-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    /* Garante preenchimento total */
    display: block;
}

@media (max-width: 767px) {
    .wpmb-mobile-gallery-top {
        display: block;
    }

    .wpmb-desktop-gallery-sidebar {
        display: none !important;
    }

    /* Spacer maior para acomodar botão + resumo */
    .wpmb-mobile-spacer {
        display: block;
        height: 110px;
    }

    /* Ajuste dos botões de ação no mobile */
    .wpmb-actions {
        padding: 15px 0;
        background: #fff;
        transition: transform 0.2s ease;
        display: flex;
        flex-wrap: wrap;
        /* Permite que o resumo fique acima */
        gap: 10px;
        justify-content: space-between;
    }

    /* Linha de Resumo (Oculta por padrão, aparece no Sticky) */
    .wpmb-sticky-summary-line {
        display: none;
        width: 100%;
        text-align: center;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 5px;
    }

    .wpmb-sticky-summary-line strong {
        color: var(--wpmb-primary-color);
        font-size: 1.1rem;
    }

    /* Quando entra no modo Sticky via JS */
    .wpmb-actions.wpmb-is-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99999;
        padding: 10px 15px 15px 15px;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
        border-top: 1px solid #eee;
        margin: 0 !important;
        animation: slideUp 0.3s ease;
        background: #fff;
        flex-direction: column;
        /* Empilha resumo e botões */
        gap: 0;
    }

    .wpmb-actions.wpmb-is-sticky .wpmb-sticky-summary-line {
        display: block;
        /* Mostra o resumo */
    }

    .wpmb-actions.wpmb-is-sticky .wpmb-buttons-row {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .wpmb-actions.wpmb-is-sticky button {
        flex: 1;
        padding: 12px 20px;
    }
}

@media (min-width: 768px) {
    .wpmb-sticky-summary-line {
        display: none !important;
    }

    .wpmb-buttons-row {
        display: flex;
        gap: 10px;
        width: 100%;
        justify-content: flex-end;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}


/* --- BENEFÍCIOS --- */
.wpmb-benefits-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.wpmb-benefit-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
}

.wpmb-benefit-tag .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--wpmb-accent-color);
}

.wpmb-benefit-tag img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* --- STEPS CIRCULARES --- */
.wpmb-steps-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    gap: 12px;
    padding: 0 8px;
}

/* Linha conectora - começa do primeiro círculo e termina no último */
.wpmb-steps-nav {
    position: relative;
}

.wpmb-steps-nav::before {
    content: '';
    position: absolute;
    top: 18px;
    height: 1px;
    background: #e5e7eb;
    z-index: 0;
    /* Linha começa do centro do primeiro círculo e termina no centro do último */
    left: 18px;
    right: 18px;
}

.step-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    cursor: default;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    /* Cinza inativo */
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    border: 2px solid #fff;
    /* Borda branca para separar da linha */
}

/* Step ativo: sem borda, sem sombra */
.step-item.active .step-circle {
    border: none;
    box-shadow: none;
}

.step-check {
    display: none;
    font-size: 20px;
}

.step-label {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 4px;
}

/* Ativo - removido box-shadow, já está acima */

.step-item.active .step-label {
    color: var(--wpmb-primary-color);
    font-weight: 700;
}

/* Completado (usando classe .completed via JS) */
.step-item.completed .step-circle {
    background: var(--wpmb-accent-color);
    color: #fff;
}

.step-item.completed .step-num {
    display: none;
}

.step-item.completed .step-check {
    display: block;
}

/* --- CALENDÁRIO --- */
.wpmb-calendar-locked {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
    position: relative;
}

/* Mensagem visual de bloqueio (opcional) */
.wpmb-calendar-locked::after {
    content: "Selecione uma opção acima";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

/* SEGURANÇA v3.8.0: Calendário em estado de loading */
.wpmb-calendar-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.wpmb-calendar-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--wpmb-primary-color);
    border-radius: 50%;
    animation: wpmb-spin 0.8s linear infinite;
    z-index: 20;
}

/* NOVO v3.8.1: Estilo mais evidente para dias bloqueados do usuário */
.ui-datepicker td.wpmb-date-unavailable {
    background-color: #fee2e2 !important;
    opacity: 0.5;
}

.ui-datepicker td.wpmb-date-unavailable span,
.ui-datepicker td.wpmb-date-unavailable a {
    background-color: transparent !important;
    color: #dc2626 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    text-decoration: line-through;
    opacity: 0.6;
}

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

/* ============================================
   CALENDÁRIO CLEAN DESIGN (v3.9.0)
   Estilo minimalista baseado em referências modernas
   PRIORIDADE MÁXIMA: Sobrescreve jQuery UI e Elementor
   ============================================ */

/* Reset completo para garantir que nada sobrescreva */
.wpmb-calendar-wrapper,
.wpmb-modern-wrapper .wpmb-calendar-wrapper,
body .wpmb-calendar-wrapper,
.elementor-element .wpmb-calendar-wrapper {
    max-width: 100% !important;
    margin: 0 auto !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Sobrescrever TODOS os estilos do jQuery UI datepicker */
.wpmb-calendar-wrapper .ui-datepicker,
.wpmb-calendar-wrapper.ui-datepicker,
.wpmb-modern-wrapper .wpmb-calendar-wrapper .ui-datepicker,
body .wpmb-calendar-wrapper .ui-datepicker,
.elementor-element .wpmb-calendar-wrapper .ui-datepicker {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    border-width: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    margin: 0 !important;
}

/* Header do Calendário - Sobrescrever jQuery UI completamente */
.wpmb-calendar-wrapper .ui-datepicker-header,
.wpmb-calendar-wrapper .ui-datepicker .ui-datepicker-header,
.wpmb-modern-wrapper .wpmb-calendar-wrapper .ui-datepicker-header,
body .wpmb-calendar-wrapper .ui-datepicker-header {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-width: 0 !important;
    padding: 16px 0 20px 0 !important;
    margin: 0 0 16px 0 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.wpmb-calendar-wrapper .ui-datepicker-title,
.wpmb-calendar-wrapper .ui-datepicker .ui-datepicker-title,
.wpmb-calendar-wrapper .ui-datepicker-header .ui-datepicker-title {
    color: #14b8a6 !important;
    /* Teal clean */
    font-weight: 600 !important;
    font-size: 16px !important;
    text-align: center !important;
    flex: 1 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Botões de navegação (prev/next) - Sobrescrever completamente */
.wpmb-calendar-wrapper .ui-datepicker-prev,
.wpmb-calendar-wrapper .ui-datepicker-next,
.wpmb-calendar-wrapper .ui-datepicker-header .ui-datepicker-prev,
.wpmb-calendar-wrapper .ui-datepicker-header .ui-datepicker-next {
    cursor: pointer !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    background: #f3f4f6 !important;
    /* Cinza claro */
    background-color: #f3f4f6 !important;
    background-image: none !important;
    border: none !important;
    border-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
}

.wpmb-calendar-wrapper .ui-datepicker-prev:hover,
.wpmb-calendar-wrapper .ui-datepicker-next:hover,
.wpmb-calendar-wrapper .ui-datepicker-prev.ui-state-hover,
.wpmb-calendar-wrapper .ui-datepicker-next.ui-state-hover {
    background: #e5e7eb !important;
    /* Cinza médio no hover */
    background-color: #e5e7eb !important;
    background-image: none !important;
}

.wpmb-calendar-wrapper .ui-datepicker-prev,
.wpmb-calendar-wrapper .ui-datepicker-header .ui-datepicker-prev {
    left: 0 !important;
    right: auto !important;
}

.wpmb-calendar-wrapper .ui-datepicker-next,
.wpmb-calendar-wrapper .ui-datepicker-header .ui-datepicker-next {
    right: 0 !important;
    left: auto !important;
}

.wpmb-calendar-wrapper .ui-datepicker-prev .ui-icon,
.wpmb-calendar-wrapper .ui-datepicker-next .ui-icon,
.wpmb-calendar-wrapper .ui-datepicker-prev .ui-icon.ui-icon-circle-triangle-w,
.wpmb-calendar-wrapper .ui-datepicker-next .ui-icon.ui-icon-circle-triangle-e {
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: -9999px !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-width: 0 !important;
    position: relative !important;
    overflow: visible !important;
}

.wpmb-calendar-wrapper .ui-datepicker-prev .ui-icon::before,
.wpmb-calendar-wrapper .ui-datepicker-prev .ui-icon.ui-icon-circle-triangle-w::before {
    content: '‹' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: #374151 !important;
    text-indent: 0 !important;
    display: block !important;
}

.wpmb-calendar-wrapper .ui-datepicker-next .ui-icon::before,
.wpmb-calendar-wrapper .ui-datepicker-next .ui-icon.ui-icon-circle-triangle-e::before {
    content: '›' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: #374151 !important;
    text-indent: 0 !important;
    display: block !important;
}

/* Dias da semana - Sobrescrever completamente */
.wpmb-calendar-wrapper .ui-datepicker th,
.wpmb-calendar-wrapper .ui-datepicker thead th,
.wpmb-calendar-wrapper .ui-datepicker table th {
    font-weight: 500 !important;
    color: #374151 !important;
    /* Cinza escuro */
    font-size: 13px !important;
    padding: 10px 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-width: 0 !important;
}

/* Células de datas */
.wpmb-calendar-wrapper .ui-datepicker td,
.wpmb-calendar-wrapper .ui-datepicker table td,
.wpmb-calendar-wrapper .ui-datepicker tbody td {
    padding: 4px !important;
    text-align: center !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
}

/* Estados padrão das datas - PRIORIDADE MÁXIMA */
.wpmb-calendar-wrapper .ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker td .ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker td a.ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker td span.ui-state-default {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-width: 0 !important;
    text-align: center !important;
    font-weight: 500 !important;
    color: #374151 !important;
    /* Cinza escuro */
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 50% !important;
    /* Círculo perfeito */
    margin: 0 auto !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding: 0 !important;
    text-decoration: none !important;
}

/* Hover state - círculo azul claro */
.wpmb-calendar-wrapper .ui-state-hover,
.wpmb-calendar-wrapper .ui-datepicker td .ui-state-hover,
.wpmb-calendar-wrapper .ui-datepicker td a.ui-state-hover,
.wpmb-calendar-wrapper .ui-state-default:hover,
.wpmb-calendar-wrapper .ui-datepicker td .ui-state-default:hover,
.wpmb-calendar-wrapper .ui-datepicker td a.ui-state-default:hover {
    background: #e0f2fe !important;
    /* Azul claro */
    background-color: #e0f2fe !important;
    background-image: none !important;
    color: #374151 !important;
}

/* Datas de outros meses mais claras */
.wpmb-calendar-wrapper .ui-datepicker .ui-datepicker-other-month .ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker-other-month a,
.wpmb-calendar-wrapper .ui-datepicker-other-month span {
    color: #d1d5db !important;
    /* Cinza claro */
    background: transparent !important;
    background-color: transparent !important;
}

/* Data selecionada - círculo teal com texto branco - PRIORIDADE MÁXIMA */
.wpmb-calendar-wrapper .ui-state-active,
.wpmb-calendar-wrapper .ui-datepicker td .ui-state-active,
.wpmb-calendar-wrapper .ui-datepicker td a.ui-state-active,
.wpmb-calendar-wrapper .ui-state-highlight,
.wpmb-calendar-wrapper .ui-datepicker td .ui-state-highlight,
.wpmb-calendar-wrapper .ui-datepicker td a.ui-state-highlight,
.wpmb-day-selected .ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker td.ui-datepicker-current-day .ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker td.ui-datepicker-current-day a,
.wpmb-calendar-wrapper .ui-datepicker td.ui-datepicker-today .ui-state-active,
.wpmb-calendar-wrapper .ui-datepicker td.ui-datepicker-today a.ui-state-active {
    background: #14b8a6 !important;
    /* Teal */
    background-color: #14b8a6 !important;
    background-image: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 50% !important;
    border: none !important;
    border-width: 0 !important;
}

/* Range selecionado - retângulo cinza claro arredondado */
.wpmb-calendar-wrapper .ui-datepicker td.ui-datepicker-range-start,
.wpmb-calendar-wrapper .ui-datepicker td.ui-datepicker-range-end,
.wpmb-calendar-wrapper .ui-datepicker td.ui-datepicker-range-start .ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker td.ui-datepicker-range-end .ui-state-default {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    border-radius: 6px !important;
}

.wpmb-calendar-wrapper .ui-datepicker td.ui-datepicker-range-start .ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker td.ui-datepicker-range-start a,
.wpmb-calendar-wrapper .ui-datepicker td.ui-datepicker-range-end .ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker td.ui-datepicker-range-end a {
    background: #14b8a6 !important;
    background-color: #14b8a6 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
}

/* Dias indisponíveis */
.wpmb-calendar-wrapper .ui-datepicker td.ui-state-disabled .ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker td.ui-state-disabled a,
.wpmb-calendar-wrapper .ui-datepicker td.ui-state-disabled span {
    color: #d1d5db !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.wpmb-calendar-wrapper .ui-datepicker td.ui-state-disabled .ui-state-default:hover,
.wpmb-calendar-wrapper .ui-datepicker td.ui-state-disabled a:hover,
.wpmb-calendar-wrapper .ui-datepicker td.ui-state-disabled .ui-state-hover {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Estilos adicionais para melhorar visualização - PRIORIDADE MÁXIMA */
.wpmb-calendar-wrapper .ui-datepicker table,
.wpmb-calendar-wrapper .ui-datepicker .ui-datepicker-calendar table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
}

.wpmb-calendar-wrapper .ui-datepicker-calendar,
.wpmb-calendar-wrapper .ui-datepicker .ui-datepicker-calendar {
    width: 100% !important;
    border: none !important;
    border-width: 0 !important;
}

/* Remover todos os estilos de borda e background do jQuery UI */
.wpmb-calendar-wrapper .ui-widget,
.wpmb-calendar-wrapper .ui-widget-content,
.wpmb-calendar-wrapper .ui-corner-all,
.wpmb-calendar-wrapper .ui-datepicker.ui-widget,
.wpmb-calendar-wrapper .ui-datepicker.ui-widget-content {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* Ajuste de cor para links dentro do calendário */
.wpmb-calendar-wrapper .ui-datepicker a,
.wpmb-calendar-wrapper .ui-datepicker td a,
.wpmb-calendar-wrapper .ui-datepicker th a {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
}

/* Garantir que o dropdown do mês/ano seja visível */
.wpmb-calendar-wrapper .ui-datepicker-title select,
.wpmb-calendar-wrapper .ui-datepicker-header select {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #14b8a6 !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    cursor: pointer !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
}

.wpmb-calendar-wrapper .ui-datepicker-title select:hover,
.wpmb-calendar-wrapper .ui-datepicker-header select:hover {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
}

/* ============================================
   v3.10.0: DIAS BLOQUEADOS PARA MEMBROS (Alta Temporada)
   Esses dias ficam disponíveis mas com estilo diferenciado
   ============================================ */

/* Cel container - fundo laranja claro */
.wpmb-calendar-wrapper .ui-datepicker td.wpmb-date-member-blocked {
    position: relative;
}

/* Estilo do dia bloqueado para membros - laranja suave */
.wpmb-calendar-wrapper .ui-datepicker td.wpmb-date-member-blocked .ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker td.wpmb-date-member-blocked a.ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker td.wpmb-date-member-blocked span.ui-state-default {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    background-color: #fbbf24 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    position: relative;
}

/* Hover state para dias bloqueados para membros */
.wpmb-calendar-wrapper .ui-datepicker td.wpmb-date-member-blocked .ui-state-default:hover,
.wpmb-calendar-wrapper .ui-datepicker td.wpmb-date-member-blocked a.ui-state-default:hover,
.wpmb-calendar-wrapper .ui-datepicker td.wpmb-date-member-blocked .ui-state-hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    background-color: #f59e0b !important;
}

/* Indicador de alta temporada - pequeno badge */
.wpmb-calendar-wrapper .ui-datepicker td.wpmb-date-member-blocked::after {
    content: '★';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 8px;
    color: #d97706;
    opacity: 0.8;
}

/* Selecionado dentro de período bloqueado */
.wpmb-calendar-wrapper .ui-datepicker td.wpmb-date-member-blocked.ui-datepicker-current-day .ui-state-default,
.wpmb-calendar-wrapper .ui-datepicker td.wpmb-date-member-blocked .ui-state-active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    background-color: #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* Tooltip customizado para mobile (opcional) */
.wpmb-date-member-blocked[title] {
    cursor: help;
}

/* v3.10.0: Aviso de período bloqueado no resumo */
/* v5.0.0: RESTAURADO - VARIATION-ONLY */
.wpmb-blocked-period-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 8px 0;
    font-size: 0.9rem;
    color: #92400e;
    font-weight: 500;
}

.wpmb-blocked-period-warning.wpmb-blocked-paid {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-color: #ea580c;
    color: #c2410c;
}

.wpmb-blocked-period-warning.wpmb-blocked-keep {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
    color: #065f46;
}

.wpmb-blocked-icon {
    font-size: 1.1em;
}

.wpmb-blocked-text {
    flex: 1;
}

/* --- STEPS CONTENT --- */
.wpmb-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wpmb-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- BOTOES --- */
.wpmb-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.wpmb-actions.right-align .wpmb-buttons-row {
    justify-content: flex-end;
}

/* Esconder ações no desktop (botão vai para resumo) */
@media(min-width: 768px) {
    .wpmb-mobile-only {
        display: none !important;
    }
}

@media(max-width: 767px) {
    .wpmb-desktop-only {
        display: none !important;
    }
}

/* Botão Reservar Agora no Resumo (Desktop) */
.wpmb-summary-action-desktop {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--wpmb-border, #e5e7eb);
}

.wpmb-btn-reserve-now {
    width: 100%;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--wpmb-primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--wpmb-font-family), sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpmb-btn-reserve-now:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.wpmb-btn-reserve-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wpmb-btn-primary,
.wpmb-btn-success,
.wpmb-btn-ghost {
    padding: 12px 24px;
    border-radius: var(--wpmb-radius, 8px);
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--wpmb-transition, 0.2s);
    justify-content: center;
}

.wpmb-btn-primary {
    background: var(--wpmb-primary-color);
    color: #fff;
}

.wpmb-btn-success {
    background: var(--wpmb-accent-color);
    color: #fff;
    width: 100%;
}

.wpmb-btn-ghost {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.wpmb-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wpmb-btn-primary:hover:not(:disabled),
.wpmb-btn-success:hover {
    opacity: 0.9;
}

/* --- SUMMARY --- */
.wpmb-summary-card {
    background: var(--wpmb-card-bg, #f9fafb);
    border-radius: var(--wpmb-radius, 12px);
    padding: 20px;
    position: sticky;
    top: 20px;
    border: 1px solid var(--wpmb-border, #e5e7eb);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wpmb-summary-title {
    margin-top: 0;
}

.wpmb-gallery-widget {
    margin-bottom: 20px;
}

.wpmb-thumbs-row {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.wpmb-thumb-item {
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0.6;
}

.wpmb-thumb-item:hover {
    opacity: 1;
}

.wpmb-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.wpmb-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 5px;
}

.wpmb-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wpmb-accent-color);
}

/* --- LISTAS E EXTRAS --- */
.wpmb-cards-compact-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.wpmb-card-compact {
    cursor: pointer;
    position: relative;
}

.wpmb-card-compact input {
    position: absolute;
    opacity: 0;
}

.wpmb-card-inner-compact {
    border: 2px solid var(--wpmb-border, #e5e7eb);
    border-radius: var(--wpmb-radius, 10px);
    padding: 16px 12px;
    text-align: center;
    transition: all var(--wpmb-transition, 0.2s);
    background: #fff;
}

.wpmb-card-compact input:checked+.wpmb-card-inner-compact {
    border-color: var(--wpmb-primary-color);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.1);
}

.wpmb-compact-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--wpmb-primary-color);
    margin-bottom: 4px;
}

.wpmb-compact-meta {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 4px 0;
}

.wpmb-compact-price {
    display: block;
    font-weight: 700;
    color: var(--wpmb-primary-color);
    font-size: 1rem;
    margin-top: 6px;
}

/* EXTRAS ROW */
.wpmb-extra-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    flex-wrap: nowrap;
}

.wpmb-extra-item-row:hover {
    border-color: #d1d5db;
}

.wpmb-extra-item-row.active {
    border-color: var(--wpmb-accent-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.wpmb-extra-details {
    flex: 1;
    min-width: 0;
}

.wpmb-extra-details .name {
    display: block;
    font-weight: 600;
    color: var(--wpmb-primary-color);
    font-size: 0.95rem;
}

.wpmb-extra-details .desc {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 2px;
}

.wpmb-extra-details .price {
    color: var(--wpmb-accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-top: 2px;
}

.wpmb-fake-checkbox {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wpmb-extra-item-row.active .wpmb-fake-checkbox {
    background: var(--wpmb-accent-color);
    border-color: var(--wpmb-accent-color);
}

.wpmb-fake-checkbox .dashicons {
    color: #fff;
    font-size: 16px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}

.wpmb-extra-item-row.active .wpmb-fake-checkbox .dashicons {
    opacity: 1;
    transform: scale(1);
}

.wpmb-extra-qty-control {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 100px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.wpmb-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 16px;
}

.wpmb-extra-item-row.active .wpmb-qty-btn {
    border-color: var(--wpmb-accent-color);
    color: var(--wpmb-accent-color);
    background: #fff;
}

.wpmb-extra-item-row.active .wpmb-qty-btn:active,
.wpmb-extra-item-row.active .wpmb-qty-btn:hover {
    background: var(--wpmb-accent-color);
    color: #fff;
}

.wpmb-qty-btn:disabled {
    opacity: 0.3;
    cursor: default;
    border-color: #eee !important;
    color: #ccc !important;
    background: #f9f9f9 !important;
}

.wpmb-extra-qty-input {
    width: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--wpmb-primary-color);
    padding: 0;
    pointer-events: none;
}

.wpmb-extra-item-row.active .wpmb-extra-qty-input {
    color: var(--wpmb-primary-color);
}

/* ============================================
   GUEST SELECTOR (v5.0.1 - RESTAURADO)
   ============================================ */
.wpmb-guest-selector {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: #ffffff;
}

.wpmb-guests-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpmb-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.wpmb-guest-row:hover {
    background: #f5f5f5;
    border-color: var(--wpmb-primary-color);
}

.wpmb-guest-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wpmb-guest-label small {
    font-size: 12px;
    font-weight: 400;
    color: #28a745;
}

.wpmb-counter-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wpmb-counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--wpmb-primary-color);
    background: #fff;
    color: var(--wpmb-primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
    user-select: none;
}

.wpmb-counter-btn:hover:not(:disabled) {
    background: var(--wpmb-primary-color);
    color: #fff;
    transform: scale(1.05);
}

.wpmb-counter-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.wpmb-counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ddd;
    color: #999;
}

.wpmb-counter-val {
    font-weight: 600;
    font-size: 18px;
    min-width: 30px;
    text-align: center;
    color: #333;
}

/* Loading state */
.wpmb-loading-guests {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Empty state */
.wpmb-guests-inputs:empty::after {
    content: "Carregando configuração de pessoas...";
    display: block;
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .wpmb-guest-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .wpmb-counter-control {
        align-self: flex-end;
    }

    .wpmb-guest-label {
        width: 100%;
    }
}

/* ============================================
   BOTÕES DE HORÁRIO (SLOTS) - CLEAN DESIGN (v3.9.0)
   Estilo minimalista alinhado com o calendário
   ============================================ */
.wpmb-slots-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
    gap: 10px !important;
    margin-top: 16px !important;
}

.wpmb-slot-btn {
    padding: 12px 8px !important;
    text-align: center !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    /* Cinza escuro */
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hover state - background cinza claro */
.wpmb-slot-btn:hover:not(.disabled):not(.selected) {
    background: #f3f4f6 !important;
    /* Cinza claro */
    color: #374151 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Selecionado - background teal com texto branco */
.wpmb-slot-btn.selected {
    background: #14b8a6 !important;
    /* Teal */
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3) !important;
}

.wpmb-slot-btn.selected:hover {
    background: #0d9488 !important;
    /* Teal mais escuro */
}

/* Desabilitado */
.wpmb-slot-btn.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #f9fafb !important;
    color: #9ca3af !important;
    box-shadow: none !important;
}

.wpmb-slot-btn.disabled:hover {
    background: #f9fafb !important;
    box-shadow: none !important;
}

/* Data indisponível (injetado via JS) */
.wpmb-date-unavailable {
    background: #f8d7da !important;
    color: #721c24 !important;
    border-radius: 50% !important;
}

.wpmb-info-box {
    background: #e0f2fe;
    padding: 15px;
    border-radius: 6px;
    color: #0369a1;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* --- MEMBERSHIP BADGE (Fase 3 - v3.3.0) --- */
.wpmb-member-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    animation: badgeFadeIn 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpmb-badge-icon {
    font-size: 24px;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.wpmb-badge-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wpmb-badge-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.wpmb-badge-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Tier Basic - Gradient roxo/violeta */
.wpmb-tier-basic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Tier Premium - Gradient rosa/laranja */
.wpmb-tier-premium {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Tier VIP - Gradient dourado/laranja */
.wpmb-tier-vip {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

/* Efeito de brilho em movimento (opcional, muito premium) */
.wpmb-member-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsividade mobile */
@media (max-width: 767px) {
    .wpmb-member-badge {
        padding: 12px 16px;
        margin-bottom: 18px;
    }

    .wpmb-badge-icon {
        font-size: 20px;
    }

    .wpmb-badge-title {
        font-size: 0.9rem;
    }

    .wpmb-badge-desc {
        font-size: 0.75rem;
    }
}

/* ============================================
   MEMBER-ONLY VARIATIONS (v3.7.0)
   Variações bloqueadas para não-membros
   Redesign: Tag como faixa vermelha por cima
   ============================================ */

/* Variação bloqueada (não-membro ou tier insuficiente) */
.wpmb-card-compact.wpmb-locked {
    cursor: pointer;
    /* Mudamos de not-allowed para pointer para permitir clique e mostrar popup */
}

.wpmb-card-compact.wpmb-locked .wpmb-card-inner-compact {
    /* Removido opacity e filter grayscale para melhor visualização */
    background: #f5f5f5;
    border-color: #ddd;
    position: relative;
    overflow: hidden;
}

.wpmb-card-compact.wpmb-locked:hover .wpmb-card-inner-compact {
    border-color: #bbb;
    /* Hover sutil indicando que é clicável */
}

/* Impedir seleção visual */
.wpmb-card-compact.wpmb-locked input:checked+.wpmb-card-inner-compact {
    border-color: #ddd;
    background: #f5f5f5;
}

/* Tag "Apenas para membros" - DESIGN PREMIUM v3.12.0 */

/* Container da Tag Premium */
.wpmb-member-tag-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    gap: 8px;
}

/* Texto "Reserva Gratuita" */
.wpmb-member-tag-text-top {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

/* Barra Dourada */
.wpmb-member-only-tag {
    background: linear-gradient(90deg, #FFD700, #FDB931);
    color: #121212;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    cursor: default;
    white-space: nowrap;
    /* CORREÇÃO: Tag NÃO deve herdar opacidade da variação */
    opacity: 1 !important;
    filter: none !important;
}

/* Efeito Sweep Light (Brilho Animado) */
.wpmb-member-only-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: wpmb-sweep 3s infinite;
    pointer-events: none;
}

/* Borda interna premium */
.wpmb-member-only-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    pointer-events: none;
}

/* Ícone do cadeado */
.wpmb-member-only-tag .wpmb-lock-icon {
    font-size: 1rem;
}

/* Animação do brilho */
@keyframes wpmb-sweep {
    0% { left: -100%; }
    40% { left: 200%; }
    100% { left: 200%; }
}

/* Responsividade mobile para tag */
@media (max-width: 480px) {
    .wpmb-member-tag-text-top {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .wpmb-member-only-tag {
        padding: 10px 20px;
        font-size: 0.75rem;
    }

    .wpmb-cards-compact-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   POPUP MEMBER-ONLY (v3.7.0)
   Popup para quando não-membro clica em variação bloqueada
   ============================================ */

.wpmb-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--wpmb-popup-overlay, rgba(0, 0, 0, 0.65));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wpmb-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wpmb-popup-content {
    background: var(--wpmb-popup-bg, #fff);
    padding: 35px 30px;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.wpmb-popup-overlay.active .wpmb-popup-content {
    transform: scale(1);
}

.wpmb-popup-close {
    position: absolute;
    top: 15px;
    right: 18px;
    cursor: pointer;
    font-size: 28px;
    color: #999;
    line-height: 1;
    transition: color 0.2s ease;
}

.wpmb-popup-close:hover {
    color: #333;
}

.wpmb-popup-icon {
    font-size: 56px;
    margin-bottom: 15px;
    display: block;
}

.wpmb-popup-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wpmb-popup-title-color, #222);
    margin-bottom: 12px;
}

.wpmb-popup-message {
    font-size: 1rem;
    color: var(--wpmb-popup-text-color, #555);
    margin-bottom: 25px;
    line-height: 1.6;
}

.wpmb-popup-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--wpmb-popup-btn-color, #22c55e), color-mix(in srgb, var(--wpmb-popup-btn-color, #22c55e) 80%, black));
    color: #fff;
    padding: 14px 35px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.wpmb-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.wpmb-popup-secondary {
    display: block;
    margin-top: 15px;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
}

.wpmb-popup-secondary:hover {
    color: #555;
}

/* ============================================
   SEGURANÇA v3.8.2: Botão Loading (Validação)
   ============================================ */
.wpmb-btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.wpmb-btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 15px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: wpmb-spin 0.8s linear infinite;
}

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

/* Calendar loading overlay */
.wpmb-calendar-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.wpmb-calendar-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--wpmb-border, #e2e8f0);
    border-top-color: var(--wpmb-accent-color, #22c55e);
    border-radius: 50%;
    animation: wpmb-spin 0.8s linear infinite;
}

/* v3.8.2: Estilos para dias bloqueados */
.wpmb-date-user-blocked {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    color: #991b1b !important;
    cursor: not-allowed !important;
    position: relative;
}

.wpmb-date-user-blocked::after {
    content: '🚫';
    position: absolute;
    font-size: 8px;
    top: 2px;
    right: 2px;
}

.wpmb-date-no-vacancy {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%) !important;
    color: #854d0e !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
    opacity: 0.7;
}

/* v3.8.2: Mensagens do calendário */
.wpmb-calendar-message {
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    animation: wpmb-shake 0.4s ease-in-out;
}

@keyframes wpmb-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    15%,
    45%,
    75% {
        transform: translateX(-4px);
    }

    30%,
    60%,
    90% {
        transform: translateX(4px);
    }
}

.wpmb-calendar-message.wpmb-msg-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.wpmb-calendar-message.wpmb-msg-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* v5.0.1: Suporte para HTML em mensagens */
.wpmb-calendar-message strong {
    font-weight: 600;
}

.wpmb-calendar-message br {
    line-height: 1.5;
}

.wpmb-calendar-message.wpmb-msg-error {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.wpmb-calendar-message.wpmb-msg-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

/* ============================================
   REGRAS FINAIS DE PRIORIDADE MÁXIMA (v3.9.0)
   Garantir que estilos do calendário não sejam sobrescritos
   ============================================ */

/* Sobrescrever qualquer estilo do jQuery UI que possa interferir */
body .wpmb-calendar-wrapper .ui-datepicker,
.elementor-element .wpmb-calendar-wrapper .ui-datepicker,
.elementor-widget .wpmb-calendar-wrapper .ui-datepicker,
#wpbody .wpmb-calendar-wrapper .ui-datepicker {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Forçar cores específicas para estados do calendário */
body .wpmb-calendar-wrapper .ui-state-default,
.elementor-element .wpmb-calendar-wrapper .ui-state-default {
    background: transparent !important;
    border: none !important;
    color: #374151 !important;
}

body .wpmb-calendar-wrapper .ui-state-active,
body .wpmb-calendar-wrapper .ui-state-highlight,
.elementor-element .wpmb-calendar-wrapper .ui-state-active,
.elementor-element .wpmb-calendar-wrapper .ui-state-highlight {
    background: #14b8a6 !important;
    color: #ffffff !important;
}

body .wpmb-calendar-wrapper .ui-state-hover,
.elementor-element .wpmb-calendar-wrapper .ui-state-hover,
body .wpmb-calendar-wrapper .ui-state-default:hover,
.elementor-element .wpmb-calendar-wrapper .ui-state-default:hover {
    background: #e0f2fe !important;
    color: #374151 !important;
}

/* Forçar estilo do header */
body .wpmb-calendar-wrapper .ui-datepicker-header,
.elementor-element .wpmb-calendar-wrapper .ui-datepicker-header {
    background: transparent !important;
    border: none !important;
}

body .wpmb-calendar-wrapper .ui-datepicker-title,
.elementor-element .wpmb-calendar-wrapper .ui-datepicker-title {
    color: #14b8a6 !important;
}
/* v3.11.0: Badges de desconto e gratuito */
.wpmb-free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.wpmb-discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85em;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* BUG FIX: Benefício de Acompanhantes Grátis */
.wpmb-free-guests-benefit {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.95em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.wpmb-free-guests-benefit .benefit-icon {
    font-size: 1.3em;
    line-height: 1;
}

.wpmb-free-guests-benefit strong {
    font-weight: 700;
}

@media (max-width: 480px) {
    .wpmb-free-guests-benefit {
        font-size: 0.85em;
        padding: 10px 12px;
    }
}

/* ============================================
   v5.1.0: Botão WhatsApp para Cancelamento
   ============================================ */
.button-whatsapp {
    background: #25d366 !important;
    color: #fff !important;
    border: none !important;
    transition: background 0.2s ease;
}

.button-whatsapp:hover {
    background: #128c7e !important;
    color: #fff !important;
}

/* ============================================
   v5.x: Desconto Público - Preço Riscado e Badge
   ============================================ */

/* Container para preço com desconto */
.wpmb-price-with-discount {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Preço original riscado */
.wpmb-price-original {
    text-decoration: line-through;
    color: var(--wpmb-text-light, #64748b);
    font-size: 0.9em;
    opacity: 0.7;
}

/* Preço com desconto (final) */
.wpmb-price-discounted {
    font-weight: 700;
    color: var(--wpmb-success, #10b981);
    font-size: 1.1em;
}

/* Badge de desconto */
.wpmb-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 0.75em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: wpmb-badge-pulse 2s ease-in-out infinite;
}

@keyframes wpmb-badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Badge na variação (card de seleção) */
.wpmb-variation-card .wpmb-discount-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7em;
    padding: 3px 8px;
    z-index: 2;
}

/* Economia total */
.wpmb-savings-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--wpmb-success, #10b981);
    font-size: 0.85em;
    margin-top: 4px;
}

.wpmb-savings-info svg,
.wpmb-savings-info .dashicons {
    width: 16px;
    height: 16px;
}

/* Linha de desconto no resumo */
.wpmb-summary-discount-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    margin: 8px 0;
    border-left: 3px solid var(--wpmb-success, #10b981);
}

.wpmb-summary-discount-line .wpmb-discount-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--wpmb-success, #10b981);
    font-weight: 500;
}

.wpmb-summary-discount-line .wpmb-discount-value {
    color: var(--wpmb-success, #10b981);
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 480px) {
    .wpmb-price-with-discount {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .wpmb-discount-badge {
        font-size: 0.7em;
        padding: 3px 8px;
    }

    .wpmb-variation-card .wpmb-discount-badge {
        position: static;
        margin-top: 6px;
    }
}
