:root {
    --wp-bp-primary: #667eea;
    --wp-bp-primary-dark: #4b5fd4;
    --wp-bp-surface: #f8f9fa;
    --wp-bp-border: #e5e7eb;
    --wp-bp-text: #111827;
    --wp-bp-muted: #4b5563;
}

/* Base container */
#wp-bp-booking-container,
#wp-bp-booking-container * {
    box-sizing: border-box;
}

#wp-bp-booking-container {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--wp-bp-text);
    line-height: 1.5;
}

/* Font Awesome inline SVG helpers */
.lmfa {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
}

.lmfa-fw {
    width: 1.25em;
    text-align: center;
}

/* Navigation */
.wp-bp-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 600;
}

.wp-bp-navigation button {
    background: var(--wp-bp-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wp-bp-navigation button:hover,
.wp-bp-navigation button:focus {
    background: var(--wp-bp-primary-dark);
}

/* Calendar & day list */
.month_cal {
    margin-bottom: 20px;
}

.widget_container {
    border: 1px solid var(--wp-bp-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.calendar_view {
    padding: 12px;
}

.room_days {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.room_days > div {
    background: #fff;
    border: 1px solid var(--wp-bp-border);
    border-radius: 8px;
    padding: 14px;
}

.room_days h4 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--wp-bp-text);
}

.active_specials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
}

.active_specials .special {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--wp-bp-surface);
    color: var(--wp-bp-text);
    text-decoration: none;
    border: 1px solid var(--wp-bp-border);
}

/* Slot cards */
.hour {
    border: 1px solid var(--wp-bp-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 12px;
}

.hour_header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--wp-bp-surface);
    cursor: pointer;
}

.hour_header small {
    margin-left: auto;
    color: var(--wp-bp-muted);
    font-size: 13px;
}

.hour_header span svg {
    width: 20px;
    height: 20px;
    color: var(--wp-bp-primary);
}

.hour_form {
    display: none;
    padding: 14px;
    border-top: 1px solid var(--wp-bp-border);
}

/* Shared blocks */
.bordered {
    border: 1px solid var(--wp-bp-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
}

.bordered p {
    margin: 0 0 8px;
    font-weight: 600;
    color: var(--wp-bp-text);
}

/* Language selector */
.game_lang_list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.game_lang {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--wp-bp-border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.game_lang:hover {
    border-color: var(--wp-bp-primary);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}

.game_lang input {
    margin: 0;
}

.flag_container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--wp-bp-muted);
}

.flag_icon {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    display: block;
    background: var(--wp-bp-muted);
}

.flag_icon.pl {
    background: linear-gradient(#dc2626 0 50%, #ffffff 50% 100%);
}

.flag_icon.ru {
    background: linear-gradient(#ffffff 0 33%, #1e3a8a 33% 66%, #dc2626 66% 100%);
}

.flag_icon.gb {
    background: #1e3a8a;
    position: relative;
}

.flag_icon.gb::before,
.flag_icon.gb::after {
    content: "";
    position: absolute;
    background: #fff;
}

.flag_icon.gb::before {
    inset: 5px 0 5px 0;
}

.flag_icon.gb::after {
    inset: 0 7px 0 7px;
}

/* People selector */
.radios.rows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.people_label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--wp-bp-border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.people_label:hover {
    border-color: var(--wp-bp-primary);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}

.people_label input[type="radio"] {
    margin: 0;
}

.people_label small {
    color: var(--wp-bp-muted);
    display: block;
    font-size: 13px;
}

.people_label input[type="radio"]:checked ~ span,
.people_label input[type="radio"]:checked ~ small {
    color: var(--wp-bp-primary);
    font-weight: 700;
}

.required::after {
    content: "*";
    color: #ef4444;
    margin-left: 4px;
    font-size: 12px;
}

/* Footer / actions */
.hour_form footer.bordered {
    display: flex;
    justify-content: flex-end;
    background: var(--wp-bp-surface);
}

.btn_continue_booking {
    width: 100%;
    margin-top: 6px;
}

/* Main booking form */
#wp-bp-booking-form {
    margin-top: 20px;
}

#wp-bp-slots {
    display: block;
}

#wp-bp-response {
    margin-top: 15px;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .wp-bp-navigation {
        flex-wrap: wrap;
    }

    .game_lang_list,
    .active_specials {
        flex-direction: column;
    }

    .hour_header {
        align-items: flex-start;
    }
}
