.teyes-guest-dialog {
    box-sizing: border-box;
    width: min(480px, calc(100vw - 32px));
    max-height: min(85vh, calc(100dvh - 32px));
    overflow: auto;
    padding: clamp(20px, 5vw, 28px);
    border: 1px solid #e8e8ed;
    border-radius: 28px;
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .12);
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
}

.teyes-guest-dialog::backdrop {
    background: rgba(0, 0, 0, .45);
}

.teyes-guest-dialog header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.teyes-guest-dialog h2 {
    margin: 4px 0 0;
    color: inherit;
    font-family: inherit;
    font-size: clamp(19px, 4vw, 24px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.3px;
}

.teyes-guest-dialog p {
    margin: 10px 0 18px;
    color: #6e6e73;
}

.teyes-guest-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.teyes-guest-dialog button,
.teyes-guest-dialog .teyes-guest-open {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 999px;
    background: #fff;
    color: #1d1d1f;
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.teyes-guest-dialog .teyes-guest-close {
    width: 44px;
    padding: 0;
    border: 0;
    background: #f5f5f7;
    font-size: 22px;
    font-weight: 400;
}

.teyes-guest-dialog button:disabled {
    cursor: wait;
    opacity: .6;
}

.teyes-guest-actions button[data-action],
.teyes-guest-dialog .teyes-guest-open,
.teyes-guest-dialog [data-action="bot"] {
    min-height: 48px;
    border-color: #1d1d1f;
    background: #1d1d1f;
    color: #fff;
}

.teyes-guest-actions button[data-action]:hover,
.teyes-guest-dialog .teyes-guest-open:hover,
.teyes-guest-dialog [data-action="bot"]:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

.teyes-guest-dialog .teyes-guest-open,
.teyes-guest-dialog [data-action="bot"] {
    margin-top: 14px;
}

.teyes-guest-dialog :focus-visible {
    outline: 2px solid #1d1d1f;
    outline-offset: 3px;
}

.teyes-guest-reserve {
    margin-top: 10px;
}

.teyes-guest-reserve summary {
    display: list-item;
    width: fit-content;
    padding: 8px 2px;
    color: #1d1d1f;
    cursor: pointer;
}

.teyes-guest-reserve-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.teyes-guest-email {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 16px;
}

.teyes-guest-dialog [hidden] {
    display: none;
}

@media (max-width: 440px) {
    .teyes-guest-dialog {
        border-radius: 22px;
    }

    .teyes-guest-actions button[data-action] {
        padding-inline: 8px;
    }
}

.teyes-pin-resend {
    margin: 16px 0 0;
}

.teyes-pin-resend button {
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 999px;
    background: #fff;
    color: #1d1d1f;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.teyes-pin-resend button:disabled {
    opacity: .55;
    cursor: default;
}

.teyes-pin-resend p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #6e6e73;
}

.teyes-pin-resend [hidden] {
    display: none;
}
