/* ── Selector de entradas — nmh-tk-selector.css ──────────────────────────── */

/* ── Centrar el entry-content del tema en páginas con el selector ── */
body.nmh-tk-selector-page .entry-content {
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

.nmh-tk-selector,
.nmh-tk-selector input,
.nmh-tk-selector button,
.nmh-tk-selector select {
    font-family: inherit;
}

/* ── Steps ── */
.nmh-tk-selector__step {
    padding: 24px 0;
}

.nmh-tk-selector__step--date {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.nmh-tk-selector__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

/* ── Date input (hidden — flatpickr inline renders the calendar directly) ── */
.nmh-tk-selector__date-input {
    display: none;
}

/* ── Calendar container ── */
.nmh-tk-selector__datepicker-wrap {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.nmh-tk-selector__datepicker-wrap .flatpickr-months,
.nmh-tk-selector__datepicker-wrap .flatpickr-innerContainer,
.nmh-tk-selector__datepicker-wrap .flatpickr-rContainer,
.nmh-tk-selector__datepicker-wrap .flatpickr-days,
.nmh-tk-selector__datepicker-wrap .dayContainer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* ── Date confirmation line ── */
.nmh-tk-selector__date-chosen {
    display: inline-block;
    font-size: .9rem;
    font-weight: 600;
    color: #1e4b6e;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 5px 14px;
    margin: 0 0 20px;
}

/* ── Table ── */
.nmh-tk-selector__table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}

.nmh-tk-selector__header,
.nmh-tk-selector__row {
    display: grid;
    grid-template-columns: 1fr 110px 130px 100px;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}

.nmh-tk-selector__header {
    background: #f3f4f6;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
}

.nmh-tk-selector__row {
    border-top: 1px solid #e5e7eb;
    transition: background .15s;
}

.nmh-tk-selector__row:hover {
    background: #f9fafb;
}

/* ── Name + description ── */
.nmh-tk-selector__name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nmh-tk-selector__desc {
    font-size: .82rem;
    color: #6b7280;
    line-height: 1.4;
}

/* ── Price ── */
.nmh-tk-selector__price {
    font-weight: 500;
}

.nmh-tk-selector__free {
    color: #059669;
    font-weight: 500;
}

/* ── Qty controls ── */
.nmh-tk-selector__qty {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nmh-tk-qty__btn {
    width: 30px;
    height: 30px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}

.nmh-tk-qty__btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.nmh-tk-qty__input {
    width: 46px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px 2px;
    font-size: .95rem;
    -moz-appearance: textfield;
}

.nmh-tk-qty__input::-webkit-inner-spin-button,
.nmh-tk-qty__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* ── Subtotal ── */
.nmh-tk-selector__subtotal {
    font-weight: 500;
    color: #111827;
    text-align: right;
}

/* ── Footer ── */
.nmh-tk-selector__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.nmh-tk-selector__total-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nmh-tk-selector__total-label {
    font-size: .8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.nmh-tk-selector__total-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0073aa;
}

/* ── CTA button ── */
.nmh-tk-selector__cta {
    padding: 13px 28px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    white-space: nowrap;
}

.nmh-tk-selector__cta:hover:not(:disabled) {
    background: #005f8a;
}

.nmh-tk-selector__cta:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ── Error ── */
.nmh-tk-selector__error {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #991b1b;
    font-size: .9rem;
}

/* ── Accreditation declaration checkbox ── */
.nmh-tk-selector__accreditation {
    margin-top: 16px;
    padding: 14px 16px;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 8px;
}

.nmh-tk-selector__accreditation-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .9rem;
    color: #1e3a5f;
    line-height: 1.4;
}

.nmh-tk-selector__accreditation-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ── Notice (one-type-only warning for passes) ── */
.nmh-tk-selector__notice {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    color: #92400e;
    font-size: .9rem;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .nmh-tk-selector__header {
        display: none;
    }

    .nmh-tk-selector__row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 14px;
    }

    .nmh-tk-selector__name  { grid-column: 1 / -1; }
    .nmh-tk-selector__price { font-size: .9rem; color: #374151; }
    .nmh-tk-selector__qty   { justify-content: flex-end; }

    .nmh-tk-selector__subtotal {
        grid-column: 1 / -1;
        text-align: right;
        font-size: .9rem;
        color: #6b7280;
    }

    .nmh-tk-selector__footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        border-radius: 0 0 10px 10px;
    }

    .nmh-tk-selector__cta {
        width: 100%;
        padding: 15px;
        font-size: 1.05rem;
    }
}
