/**
 * Estilos para o Ícone de Calendário nas Imagens dos Produtos e Popup Modal
 *
 * @package Woo_FRM_Tours
 * @version 4.1.0
 */

/* Contetor do Thumbnail com Posição Relativa */
.wer-days-thumb-wrapper {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ícone de Calendário Flutuante no Canto Superior Direito da Imagem */
.wer-days-calendar-icon {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 40 !important;
    width: 35px !important;
    height: 35px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #006edf !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
    line-height: 1 !important;
}

.wer-days-calendar-icon:hover {
    background: #004b99 !important;
    transform: scale(1.12) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
}

.wer-days-calendar-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    fill: none !important;
    pointer-events: none !important;
    display: block !important;
}

/* Ajuste Responsivo para Telemóveis / Ecrãs Pequenos */
@media (max-width: 768px) {
    .wer-days-calendar-icon {
        top: 4px !important;
        right: 4px !important;
        width: 28px !important;
        height: 28px !important;
        border-width: 1.5px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    }

    .wer-days-calendar-icon svg {
        width: 15px !important;
        height: 15px !important;
    }
}

/* Fundo Escuro Blur do Modal Overlay */
.wer-days-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wer-days-modal-overlay.wer-modal-open {
    opacity: 1;
    visibility: visible;
}

/* Cartão do Popup Modal */
.wer-days-modal-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 450px;
    width: 100%;
    padding: 26px 24px 24px 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    transform: translateY(18px) scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    box-sizing: border-box;
}

.wer-days-modal-overlay.wer-modal-open .wer-days-modal-card {
    transform: translateY(0) scale(1);
}

/* Botão Fechar */
.wer-days-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.wer-days-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Linha 1: Título da Excursão */
.wer-days-modal-title {
    margin: 0 0 16px 0;
    padding-right: 28px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    text-align: center;
}

/* Linha 2: Imagem de Destaque (Apresentada na sua totalidade, apenas redimensionada, sem cortes) */
.wer-days-modal-image-wrap {
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 240px;
    padding: 2px;
}

.wer-days-modal-image-wrap img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 236px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    margin: 0 auto;
}

/* Linha 3: Texto de Entrada */
.wer-days-modal-intro {
    font-size: 0.98rem;
    font-weight: 600;
    color: #334155;
    margin: 0 0 14px 0;
    text-align: center;
}

/* Linha 4: Lista dos Dias (Pills / Badges) */
.wer-days-modal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.wer-day-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.wer-day-pill.active {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.wer-day-pill.active .wer-check-icon {
    stroke: #0284c7;
}

.wer-day-pill.inactive {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    text-decoration: line-through;
    opacity: 0.65;
}

.wer-day-pill.inactive .wer-cross-icon {
    color: #cbd5e1;
    font-weight: 700;
}
