.rb-booking {
    max-width: 720px;
    width: 100%;
}

.rb-booking,
.rb-booking * {
    box-sizing: border-box;
}

.rb-form {
    display: grid;
    gap: 16px;
}

.rb-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.rb-language-switcher {
    max-width: 260px;
}

.rb-field-note {
    color: #7a1f1f;
    font-size: 0.9em;
    font-weight: 500;
}

.rb-fee-note {
    border-left: 3px solid #1f7a54;
    padding: 8px 10px;
    background: #e7f6ed;
    color: #155c38;
    font-size: 0.92em;
    font-weight: 600;
}

.rb-form input,
.rb-form textarea,
.rb-form select {
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c7c7c7;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
}

.rb-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rb-form button {
    justify-self: start;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 12px 18px;
    background: #1f7a54;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.rb-time-chips {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.rb-time-chip {
    min-height: 44px;
    border: 1px solid #b8c7bf;
    border-radius: 6px;
    padding: 9px 10px;
    background: #fff;
    color: #174b37;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: center;
}

.rb-time-chip:hover,
.rb-time-chip:focus {
    border-color: #1f7a54;
    box-shadow: 0 0 0 2px rgba(31, 122, 84, 0.15);
    outline: 0;
}

.rb-time-chip.is-selected {
    border-color: #1f7a54;
    background: #1f7a54;
    color: #fff;
}

.rb-time-chip:disabled {
    border-color: #d7d7d7;
    background: #f1f1f1;
    color: #8a8a8a;
    cursor: not-allowed;
    text-decoration: line-through;
}

.rb-submit-bar {
    display: flex;
    justify-content: flex-start;
}

.rb-alert {
    margin-bottom: 16px;
    border-radius: 6px;
    padding: 12px 14px;
}

.rb-alert-success {
    background: #e7f6ed;
    color: #155c38;
}

.rb-alert-error {
    background: #fdecec;
    color: #9b1c1c;
}

.rb-confirmation {
    margin-bottom: 18px;
    border: 1px solid #9bd3b0;
    border-radius: 8px;
    padding: 18px 20px;
    background: #e7f6ed;
    color: #155c38;
}

.rb-confirmation h3 {
    margin: 0 0 6px;
    color: inherit;
}

.rb-confirmation p {
    margin: 0;
}

.rb-confirmation-button {
    display: inline-block;
    margin-top: 12px;
    border-radius: 6px;
    padding: 10px 14px;
    background: #1f7a54;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.rb-confirmation-button:hover,
.rb-confirmation-button:focus {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .rb-booking {
        max-width: none;
        padding-bottom: 76px;
    }

    .rb-language-switcher {
        max-width: none;
    }

    .rb-grid {
        grid-template-columns: 1fr;
    }

    .rb-form {
        gap: 14px;
    }

    .rb-form button,
    .rb-confirmation-button {
        width: 100%;
        text-align: center;
    }

    .rb-form select[data-rb-time-select] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .rb-time-chips {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rb-submit-bar {
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin: 8px -2px 0;
        border-top: 1px solid #d9e5dd;
        padding: 10px 0 max(10px, env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(8px);
    }

    .rb-confirmation,
    .rb-alert {
        padding: 14px;
    }
}

@media (max-width: 380px) {
    .rb-form input,
    .rb-form textarea,
    .rb-form select {
        padding-right: 10px;
        padding-left: 10px;
    }

    .rb-time-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
