
.chez-v3-wrap,
.chez-v3-wrap * {
    box-sizing: border-box;
}

.chez-v3-wrap {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    font-family: inherit;
    z-index: 50;
}

.chez-v3-bar {
    display: grid;
    grid-template-columns: minmax(320px, 1.45fr) minmax(210px, .8fr) minmax(250px, .9fr);
    min-height: 92px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 38, 60, .66), rgba(6, 23, 39, .58));
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 20px;
    box-shadow:
        0 20px 55px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.11);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.chez-v3-block {
    min-width: 0;
    min-height: 92px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent !important;
    color: #fff !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.11) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit;
    text-align: left;
}

button.chez-v3-block {
    cursor: pointer;
}

.chez-v3-block:hover,
.chez-v3-block:focus-within {
    background: rgba(255,255,255,.04) !important;
    outline: none !important;
}

.chez-v3-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.chez-v3-icon-calendar {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
}

.chez-v3-icon-user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E");
}

.chez-v3-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.chez-v3-label {
    color: rgba(255,255,255,.6);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
}

.chez-v3-text strong,
.chez-v3-guests select {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.2;
}

.chez-v3-select-wrap {
    position: relative;
    display: block;
}

.chez-v3-guests select {
    width: 100%;
    min-height: 30px;
    padding: 0 28px 0 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-family: inherit;
    cursor: pointer;
}

.chez-v3-guests option {
    background: #0b2136;
    color: #fff;
}

.chez-v3-chevron {
    position: absolute;
    top: 44%;
    right: 2px;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255,255,255,.9);
    border-bottom: 2px solid rgba(255,255,255,.9);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

.chez-v3-submit {
    min-height: 92px;
    padding: 18px 26px;
    background: linear-gradient(135deg, #b99346, #d3b56e) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .7px;
    cursor: pointer;
}

.chez-v3-submit:hover {
    filter: brightness(1.07);
}

.chez-v3-error {
    min-height: 20px;
    margin: 6px 0 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.chez-v3-overlay[hidden] {
    display: none !important;
}

.chez-v3-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 9, 18, .48);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.chez-v3-modal {
    width: min(760px, 100%);
    max-height: calc(100dvh - 72px);
    overflow: hidden;
    padding: 16px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(18, 45, 69, .90), rgba(5, 21, 36, .94));
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    box-shadow:
        0 35px 100px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.09);
    backdrop-filter: blur(28px) saturate(145%);
    -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.chez-v3-modal,
.chez-v3-modal * {
    text-transform: none !important;
}

.chez-v3-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.chez-v3-kicker {
    display: block;
    margin-bottom: 4px;
    color: #d7ba73;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.chez-v3-modal h3 {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(21px, 2.2vw, 28px) !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

.chez-v3-close {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer;
}

.chez-v3-selection {
    margin: 10px 0 7px;
    padding: 9px 13px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
}

.chez-v3-selection > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chez-v3-selection span {
    color: rgba(255,255,255,.52);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.chez-v3-selection strong {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.chez-v3-selection .chez-v3-arrow {
    color: #d7ba73;
    font-size: 20px;
}

.chez-v3-instruction {
    margin-bottom: 7px;
    color: #d7ba73;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.chez-v3-calendar-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.chez-v3-calendar {
    padding: 8px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 16px;
}

.chez-v3-calendar-head {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.chez-v3-month {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.chez-v3-nav,
.chez-v3-nav-space {
    width: 34px;
    height: 34px;
}

.chez-v3-nav {
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    background: rgba(255,255,255,.045) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    font-size: 22px !important;
    cursor: pointer;
}

.chez-v3-weekdays,
.chez-v3-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.chez-v3-weekdays {
    margin-bottom: 3px;
}

.chez-v3-weekdays span {
    color: rgba(255,255,255,.42);
    font-size: 8px;
    font-weight: 800;
    text-align: center;
}

.chez-v3-day {
    aspect-ratio: auto;
    height: 38px;
    min-height: 0;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    background: transparent !important;
    color: rgba(255,255,255,.94) !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer;
}

.chez-v3-day:hover:not(:disabled) {
    background: rgba(211,180,109,.17) !important;
}

.chez-v3-day.is-outside {
    color: rgba(255,255,255,.18) !important;
}

.chez-v3-day.is-today {
    border: 1px solid #d3b46d !important;
    color: #e4ca8d !important;
}

.chez-v3-day.is-start,
.chez-v3-day.is-end {
    background: linear-gradient(135deg, #b99346, #d3b56e) !important;
    color: #fff !important;
    font-weight: 800 !important;
}

.chez-v3-day.is-in-range {
    background: rgba(211,180,109,.15) !important;
    border-radius: 7px !important;
}

.chez-v3-day:disabled {
    color: rgba(255,255,255,.10) !important;
    cursor: not-allowed;
}

.chez-v3-footer {
    margin-top: 8px;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.chez-v3-clear {
    min-height: 34px;
    padding: 0 13px !important;
    background: transparent !important;
    color: rgba(255,255,255,.76) !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    cursor: pointer;
}

.chez-v3-hint {
    color: rgba(255,255,255,.48);
    font-size: 10px;
}

body.chez-v3-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .chez-v3-wrap {
        width: calc(100% - 20px);
    }

    .chez-v3-bar {
        grid-template-columns: 1fr 1fr;
    }

    .chez-v3-submit {
        grid-column: 1 / -1;
        min-height: 68px;
    }

    .chez-v3-modal {
        width: min(480px, 100%);
        max-height: calc(100dvh - 30px);
        overflow-y: auto;
    }

    .chez-v3-calendar-shell {
        grid-template-columns: 1fr;
    }

    .chez-v3-second {
        display: none;
    }
}

@media (max-width: 620px) {
    .chez-v3-wrap {
        width: calc(100% - 16px);
    }

    .chez-v3-bar {
        display: flex;
        flex-direction: column;
        border-radius: 17px;
    }

    .chez-v3-block {
        min-height: 76px;
        padding: 0 22px;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.10) !important;
    }

    .chez-v3-submit {
        min-height: 66px;
    }

    .chez-v3-overlay {
        align-items: end;
        padding: 0;
    }

    .chez-v3-modal {
        width: 100%;
        max-height: 88dvh;
        padding: 15px 12px 12px;
        overflow-y: auto;
        border-radius: 22px 22px 0 0;
    }

    .chez-v3-modal h3 {
        font-size: 22px !important;
    }

    .chez-v3-selection {
        grid-template-columns: 1fr 1fr;
    }

    .chez-v3-selection .chez-v3-arrow {
        display: none;
    }

    .chez-v3-calendar {
        padding: 10px;
    }

    .chez-v3-day {
        font-size: 11px !important;
        border-radius: 9px !important;
    }

    .chez-v3-footer {
        position: sticky;
        bottom: -16px;
        margin-left: -14px;
        margin-right: -14px;
        padding: 12px 14px 16px;
        background: linear-gradient(180deg, rgba(5,21,36,.84), rgba(5,21,36,.98));
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .chez-v3-hint {
        display: none;
    }

    .chez-v3-clear {
        width: 100%;
    }
}


/* Ajuste especial para notebooks e telas com pouca altura */
@media (min-width: 901px) and (max-height: 800px) {
    .chez-v3-modal {
        width: min(720px, 100%);
        max-height: calc(100dvh - 30px);
        padding: 13px;
    }

    .chez-v3-kicker {
        display: none;
    }

    .chez-v3-modal h3 {
        font-size: 22px !important;
    }

    .chez-v3-selection {
        margin: 7px 0 5px;
        padding: 7px 11px;
    }

    .chez-v3-instruction {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .chez-v3-calendar {
        padding: 6px;
    }

    .chez-v3-calendar-head {
        margin-bottom: 3px;
    }

    .chez-v3-day {
        height: 34px;
        font-size: 11px !important;
    }

    .chez-v3-footer {
        margin-top: 5px;
        padding-top: 5px;
    }
}


/* Correções funcionais V3.2 */
.chez-v3-nav:disabled {
    opacity: .28;
    cursor: not-allowed;
}

.chez-v3-day.is-outside {
    pointer-events: none !important;
}

.chez-v3-clear {
    position: relative;
    z-index: 3;
    pointer-events: auto !important;
    touch-action: manipulation;
}
