/* ============================================================
   RSTM Juvenil - Reserva Frontend
   ============================================================ */

:root {
    --rstmj-bg: #e9f7e8;
    --rstmj-panel: #ffffff;
    --rstmj-border: #48a23f;
    --rstmj-primary: #da291c;
    --rstmj-primary-strong: #af170d;
    --rstmj-chip: #d6f2c8;
    --rstmj-text: #1f3d23;
    --rstmj-muted: #2f6f42;
    --rstmj-danger-soft: #ffd2cd;
    --rstmj-warning-soft: #ffe48a;
    --rstmj-brand-red: #da291c;
    --rstmj-brand-yellow: #cfb023;
    --rstmj-brand-green: #48a23f;
    --rstmj-grad-start: #e9f7e8;
    --rstmj-grad-mid: #bde7b5;
    --rstmj-grad-end: #f2e69d;
    --comedor-pink: #da291c;
    --comedor-sage: #48a23f;
    --comedor-sky: #1c78c0;
    --comedor-yellow: #cfb023;
    --comedor-lavender: #ff8a00;
    --comedor-primary: #da291c;
    --comedor-border-radius: 16px;
    --comedor-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

#rstmj-reserva-form {
    background:
        radial-gradient(circle 260px at 4% 10%, rgba(218, 41, 28, 0.16) 0 45%, transparent 46%),
        radial-gradient(circle 240px at 96% 12%, rgba(72, 162, 63, 0.28) 0 45%, transparent 46%),
        radial-gradient(circle 220px at 18% 58%, rgba(207, 176, 35, 0.26) 0 44%, transparent 45%),
        radial-gradient(circle 280px at 82% 50%, rgba(218, 41, 28, 0.12) 0 43%, transparent 44%),
        radial-gradient(circle 210px at 50% 86%, rgba(72, 162, 63, 0.24) 0 43%, transparent 44%),
        radial-gradient(circle 260px at 6% 96%, rgba(207, 176, 35, 0.24) 0 44%, transparent 45%),
        linear-gradient(140deg, var(--rstmj-grad-start) 0%, var(--rstmj-grad-mid) 45%, var(--rstmj-grad-end) 100%);
    border: 0;
    border-radius: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--rstmj-text);
    box-shadow: none;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    min-height: 100vh;
}

.rstmj-content-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 22px;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.uk-section.rstmj-no-vertical-gap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#rstmj-reserva-form,
#rstmj-reserva-form * {
    box-sizing: border-box;
}

#rstmj-reserva-form,
#rstmj-reserva-form input,
#rstmj-reserva-form button,
#rstmj-reserva-form select,
#rstmj-reserva-form textarea {
    font-family: inherit;
}

.rstmj-front-head {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.rstmj-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--rstmj-brand-green);
    border-radius: 12px;
    background: #fff;
    color: var(--rstmj-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 7px 14px;
    text-transform: uppercase;
    box-shadow: 0 6px 0 rgba(90, 18, 14, 0.12);
}

.rstmj-front-logo {
    position: absolute;
    left: -210px;
    top: 165px;
    width: min(760px, 68vw);
    margin: 0;
    opacity: 1;
    z-index: -1;
    pointer-events: none;
    transform-origin: left bottom;
    transform: scale(0.9);
}

.rstmj-front-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(26, 74, 38, 0.22));
}

#rstmj-reserva-form h2 {
    color: #fff;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.08;
    margin: 10px 0 8px;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-shadow: none;
}

.rstmj-front-head p {
    color: var(--rstmj-muted);
    margin: 0 auto 14px;
    max-width: 680px;
    font-size: 16px;
    font-weight: 700;
}

.rstmj-responsable-box {
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid var(--rstmj-brand-green);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.rstmj-responsable-title {
    font-weight: 800;
    color: #5a120e;
    margin-bottom: 6px;
}

.rstmj-responsable-data {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--rstmj-muted);
    font-weight: 700;
}

.rstmj-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.rstmj-steps-indicator span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rstmj-muted);
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid var(--rstmj-border);
    border-radius: 12px;
    padding: 7px 13px;
    font-weight: 700;
    box-shadow: 0 5px 0 rgba(90, 18, 14, 0.1);
}

.rstmj-steps-indicator em {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d6f2c8;
    color: var(--rstmj-text);
    font-weight: 800;
}

.rstmj-steps-indicator span.is-active {
    color: var(--rstmj-text);
    border-color: var(--rstmj-brand-red);
    background: #eaf8e8;
}

.rstmj-steps-indicator span.is-active em {
    background: var(--rstmj-brand-red);
    color: #fff;
}

.rstmj-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.rstmj-main,
.rstmj-side {
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid var(--rstmj-brand-green);
    box-shadow: 0 10px 0 rgba(90, 18, 14, 0.12), 0 24px 42px rgba(90, 18, 14, 0.12);
    border-radius: 16px;
    padding: 22px;
}

.rstmj-main {
    position: relative;
    overflow: hidden;
}

.rstmj-main .rstmj-front-logo {
    position: absolute;
    left: -170px;
    bottom: -120px;
    top: auto;
    width: min(520px, 44vw);
    margin: 0;
    opacity: 0.95;
    z-index: 1;
    transform-origin: left bottom;
    transform: scale(0.72);
    pointer-events: none;
}

.rstmj-main .rstmj-step,
.rstmj-main #rstmj-messages {
    position: relative;
    z-index: 2;
}

.rstmj-main h3,
.rstmj-side h3 {
    margin-top: 0;
    color: var(--rstmj-text);
    font-size: clamp(22px, 3vw, 31px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.rstmj-step-lead {
    max-width: 720px;
    margin: -4px 0 18px;
    color: var(--rstmj-muted);
    font-weight: 600;
    font-size: 15px;
}

.rstmj-step-note {
    margin: 12px 0 0;
    color: var(--rstmj-muted);
    font-size: 12px;
    line-height: 1.45;
}

.rstmj-grid-2,
.rstmj-grid-3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.rstmj-grid-3 {
    grid-template-columns: 1.2fr 1.5fr 0.8fr;
}

.rstmj-grid-2 > div,
.rstmj-grid-3 > div {
    min-width: 0;
}

.rstmj-grid-2 label,
.rstmj-field-block > label {
    display: block;
    margin-bottom: 6px;
    color: #5a120e;
    font-size: 13px;
    font-weight: 700;
}

.rstmj-pick-calendar .rstmj-field-block > label {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

#rstmj-reserva-form input[type="text"],
#rstmj-reserva-form input[type="number"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 2px solid var(--rstmj-brand-green);
    border-radius: 10px;
    background: #fefefe;
    color: var(--rstmj-text);
    font-weight: 700;
    margin: 0;
    box-shadow: inset 0 -3px 0 rgba(72, 162, 63, 0.16);
}

#rstmj-reserva-form input[type="text"]:focus,
#rstmj-reserva-form input[type="number"]:focus {
    outline: none;
    border: 2px solid var(--rstmj-brand-red);
}

.rstmj-field-block {
    margin-top: 12px;
}

.rstmj-chip-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.rstmj-chip-wrap {
    flex-wrap: wrap;
}

.rstmj-zona-btn,
.rstmj-fecha-btn,
.rstmj-turno-btn {
    border-radius: 12px;
    border: 2px solid var(--rstmj-brand-green);
    background: #fff;
    color: var(--rstmj-text);
    font-weight: 700;
    min-height: 48px;
    padding: 10px 17px;
    cursor: pointer;
    box-shadow: 0 5px 0 rgba(90, 18, 14, 0.12);
    transform: translateY(0);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rstmj-zona-btn.active,
.rstmj-fecha-btn.active,
.rstmj-turno-btn.active {
    background: var(--rstmj-brand-red);
    border-color: #a81a12;
    color: #fff;
    box-shadow: 0 6px 0 rgba(90, 18, 14, 0.26);
}

.rstmj-zona-btn:hover,
.rstmj-fecha-btn:hover,
.rstmj-turno-btn:hover {
    background: #e7f8e3;
    color: var(--rstmj-text);
    border-color: var(--rstmj-brand-green);
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 0 7px 0 rgba(90, 18, 14, 0.16);
}

.rstmj-turno-btn .turno-label {
    display: block;
    font-weight: 600;
}

.rstmj-turno-btn .turno-plazas {
    display: block;
    font-size: 11px;
    opacity: 0.85;
}

.rstmj-turno-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rstmj-fecha-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rstmj-tipo-btn {
    width: 100%;
    text-align: left;
    border: 2px solid var(--rstmj-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #edf9eb 100%);
    padding: 16px;
    cursor: pointer;
    min-height: 124px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 7px 0 rgba(90, 18, 14, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rstmj-tipo-btn:hover {
    transform: translateY(-3px) rotate(-0.75deg);
    box-shadow: 0 10px 0 rgba(90, 18, 14, 0.16);
}

.rstmj-tipo-icon {
    display: inline-flex !important;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px !important;
    border-radius: 10px;
    background: #fff;
    border: 2px solid var(--rstmj-brand-green);
    font-size: 28px !important;
    box-shadow: 0 4px 0 rgba(26, 74, 38, 0.1);
}

.rstmj-tipo-btn strong {
    display: block;
    margin-bottom: 6px;
    color: var(--rstmj-text);
    font-size: 17px;
    font-weight: 800;
}

.rstmj-tipo-btn span {
    display: block;
    color: var(--rstmj-muted);
    font-size: 13px;
    font-weight: 600;
}

.rstmj-tipo-btn.selected {
    border-color: var(--rstmj-brand-red);
    background: #eef9ed;
    box-shadow: inset 0 0 0 1px var(--rstmj-brand-green);
    transform: translateY(-2px);
}

.rstmj-tipo-btn.is-unavailable {
    opacity: 0.45;
    filter: grayscale(0.2);
    cursor: not-allowed;
    box-shadow: none;
}

.rstmj-tipo-btn.is-unavailable:hover {
    transform: none;
    box-shadow: none;
}

.rstmj-pick-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.rstmj-pick-calendar,
.rstmj-menu-preview {
    border: 2px solid var(--rstmj-brand-green);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 253, 247, 0.98);
    box-shadow: 0 8px 0 rgba(90, 18, 14, 0.1);
}

.rstmj-menu-preview {
    border-left: 6px solid var(--rstmj-brand-red);
    position: relative;
    overflow: hidden;
}

.rstmj-menu-preview::before,
.rstmj-menu-preview::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.35;
}

.rstmj-menu-preview::before {
    width: 90px;
    height: 90px;
    right: -25px;
    top: -18px;
    background: #d5efcd;
}

.rstmj-menu-preview::after {
    width: 120px;
    height: 120px;
    left: -40px;
    bottom: -50px;
    background: #f0e4a0;
}

.rstmj-menu-preview h4 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: #5a120e;
}

.rstmj-menu-date {
    color: var(--rstmj-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.rstmj-menu-block {
    position: relative;
    z-index: 1;
    border: 2px solid var(--rstmj-brand-green);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    background: #fff;
    box-shadow: 0 4px 0 rgba(90, 18, 14, 0.08);
}

.rstmj-menu-block-title {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    background: #d6f2c8;
    color: var(--rstmj-text);
    margin-bottom: 6px;
}

.rstmj-menu-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rstmj-menu-block ul.is-muted {
    opacity: 0.45;
    pointer-events: none;
}

.rstmj-menu-block li {
    margin-bottom: 6px;
}

.rstmj-menu-choice {
    width: 100%;
    text-align: left;
    border: 2px solid var(--rstmj-brand-green);
    border-radius: 12px;
    background: #fff;
    color: var(--rstmj-text);
    font-weight: 700;
    padding: 9px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rstmj-menu-choice:hover {
    background: #e7f8e3;
    border-color: var(--rstmj-brand-green);
    transform: translateX(3px);
}

.rstmj-menu-choice.is-selected {
    background: var(--rstmj-brand-red);
    border-color: #a81a12;
    color: #fff;
    transform: translateX(3px);
}

.rstmj-menu-choice.is-locked {
    cursor: default;
}

.rstmj-menu-choice.is-locked:hover {
    transform: none;
}

.rstmj-menu-preview-empty {
    color: var(--rstmj-muted);
    margin: 0;
    font-weight: 600;
}

.rstmj-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.rstmj-actions-split {
    justify-content: space-between;
}

.rstmj-btn {
    min-height: 50px;
    border: 2px solid var(--rstmj-brand-green);
    background: #fff;
    border-radius: 12px;
    padding: 11px 20px;
    color: var(--rstmj-text);
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 6px 0 rgba(90, 18, 14, 0.14);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rstmj-btn-primary {
    background: var(--rstmj-brand-red);
    border-color: #a81a12;
    color: #fff;
}

button.rstmj-btn.rstmj-btn-primary,
.rstmj-btn.rstmj-btn-primary {
    color: #fff !important;
    background-color: var(--rstmj-brand-red) !important;
    border-color: #a81a12 !important;
}

.rstmj-btn-primary:hover {
    background: #e7f8e3;
    border-color: var(--rstmj-brand-green);
    color: var(--rstmj-text);
}

button.rstmj-btn.rstmj-btn-primary:hover,
button.rstmj-btn.rstmj-btn-primary:focus {
    color: var(--rstmj-text) !important;
    background-color: #e7f8e3 !important;
    border-color: var(--rstmj-brand-green) !important;
}

.rstmj-btn:hover {
    background: #e7f8e3;
    border-color: var(--rstmj-brand-green);
    color: var(--rstmj-text);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 rgba(90, 18, 14, 0.16);
}

.rstmj-btn-block {
    width: 100%;
}

.rstmj-cancel-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    text-decoration: none;
}

.rstmj-cancel-embed-panel {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px dashed var(--rstmj-border);
}

.rstmj-btn[disabled],
#rstmj-completar-pedido[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.rstmj-carta-block {
    margin-bottom: 18px;
    border: 2px dashed var(--rstmj-brand-green);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.rstmj-carta-total {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 2px solid var(--rstmj-brand-green);
    border-radius: 12px;
    background: #fff;
    color: var(--rstmj-text);
    font-size: 14px;
    font-weight: 800;
}

.rstmj-carta-actions-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rstmj-cancel-main {
    max-width: 840px;
    margin: 0 auto;
}

.rstmj-cancel-list {
    margin-top: 12px;
}

.rstmj-cancel-item .rstmj-btn {
    margin-top: 12px;
}

.rstmj-cancel-warning {
    margin-top: 10px;
}

.rstmj-cancel-platos {
    margin-top: 8px;
    color: var(--rstmj-text);
    font-size: 13px;
    font-weight: 700;
}

.rstmj-carta-block h4 {
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
    padding: 7px 13px;
    border-radius: 12px;
    background: var(--rstmj-brand-red);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 5px 0 rgba(90, 18, 14, 0.2);
}

.rstmj-carta-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
}

.rstmj-carta-item {
    border: 2px solid var(--rstmj-brand-green);
    border-radius: 14px;
    padding: 14px 10px;
    background: linear-gradient(180deg, #fffefb 0%, #eef9ed 100%);
    color: var(--rstmj-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 150px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 7px 0 rgba(90, 18, 14, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rstmj-carta-item:hover {
    transform: translateY(-4px) rotate(-1deg);
    border-color: var(--rstmj-brand-red);
    box-shadow: 0 10px 0 rgba(90, 18, 14, 0.16);
}

.rstmj-carta-item.selected {
    background: linear-gradient(180deg, #b81f14 0%, #8f130a 100%);
    color: #fff;
    border-color: #8f130a;
    transform: translateY(-3px) rotate(1deg);
}

#rstmj-reserva-form .rstmj-carta-item.selected .rstmj-carta-item-name,
#rstmj-reserva-form .rstmj-carta-item.selected .rstmj-carta-item-emoji,
#rstmj-reserva-form .rstmj-carta-item.selected .rstmj-carta-item-price {
    color: #fff !important;
}

#rstmj-reserva-form .rstmj-carta-item.selected .rstmj-carta-item-emoji {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.55);
}

.rstmj-carta-item-emoji {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid var(--rstmj-brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 10px;
    box-shadow: inset 0 -5px 0 rgba(72, 162, 63, 0.18);
}

.rstmj-carta-item-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.rstmj-carta-item-price {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #5a120e;
}

.rstmj-context-summary {
    font-size: 14px;
    color: var(--rstmj-text);
    border-bottom: 2px dashed var(--rstmj-border);
    padding-bottom: 12px;
    margin-bottom: 12px;
    font-weight: 700;
}

.rstmj-context-summary div {
    background: #fff;
    border: 1px solid var(--rstmj-border);
    border-radius: 8px;
    margin-bottom: 7px;
    padding: 8px 10px;
}

.rstmj-comensales-list {
    min-height: 140px;
    max-height: 48vh;
    overflow: auto;
    margin-bottom: 12px;
}

.rstmj-comensal-item {
    border: 2px solid var(--rstmj-border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    background: linear-gradient(180deg, #fff 0%, #fff6dc 100%);
    box-shadow: 0 5px 0 rgba(90, 18, 14, 0.09);
    position: relative;
}

.rstmj-remove-comensal {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: 1px solid var(--rstmj-brand-red);
    border-radius: 8px;
    background: #fff;
    color: var(--rstmj-brand-red);
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rstmj-remove-comensal:hover,
.rstmj-remove-comensal:focus {
    background: var(--rstmj-brand-red);
    color: #fff;
}

.rstmj-comensal-head {
    font-weight: 800;
    color: #5a120e;
}

.rstmj-comensal-head small {
    color: var(--rstmj-muted);
    font-weight: 700;
}

.rstmj-comensal-meta {
    color: var(--rstmj-muted);
    margin-bottom: 6px;
}

.rstmj-zona-with-icon {
    position: relative;
    overflow: hidden;
}

.rstmj-zona-with-icon .rstmj-zona-bg {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    opacity: 0.2;
    pointer-events: none;
}

.rstmj-zona-with-icon.is-general .rstmj-zona-bg {
    opacity: 0.16;
}

.rstmj-empty {
    color: var(--rstmj-muted);
    margin-top: 20px;
    font-weight: 700;
    text-align: center;
}

#rstmj-completar-pedido {
    background: var(--rstmj-brand-red);
    border-color: #a81a12;
}

#rstmj-completar-pedido:hover {
    background: #e7f8e3;
    border-color: var(--rstmj-brand-green);
    color: var(--rstmj-text);
}

.rstmj-messages {
    margin-top: 12px;
}

.rstmj-msg {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 5px 0 rgba(90, 18, 14, 0.1);
}

.rstmj-msg-success {
    background: #d6f5df;
    color: var(--rstmj-text);
    border: 1px solid var(--rstmj-brand-green);
}

.rstmj-msg-warning {
    background: var(--rstmj-warning-soft);
    color: #5a4200;
    border: 1px solid var(--rstmj-brand-yellow);
}

.rstmj-msg-danger {
    background: var(--rstmj-danger-soft);
    color: #7d140c;
    border: 1px solid var(--rstmj-brand-red);
}

.rstmj-side {
    align-self: start;
}

/* Frontend cocina/servicio without UIkit */
body.rstmj-template-cocina,
body.rstmj-template-servicio {
    background: #f6f8f6;
    color: #172317;
}

body.rstmj-template-cocina {
    padding: 20px;
}

body.rstmj-template-servicio {
    padding: 20px;
}

.rstmj-row {
    display: flex;
}

.rstmj-row-between {
    justify-content: space-between;
}

.rstmj-row-middle {
    align-items: center;
}

.rstmj-space-bottom {
    margin-bottom: 16px;
}

.rstmj-space-right {
    margin-right: 10px;
}

.rstmj-space-right-small {
    margin-right: 6px;
}

.rstmj-space-left-small {
    margin-left: 6px;
}

.rstmj-meta {
    color: #5f6f5f;
    font-size: 13px;
}

.rstmj-panel,
.rstmj-cocina-header,
header.rstmj-space-bottom {
    background: #fff;
    border: 2px solid var(--rstmj-brand-yellow);
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 6px 16px rgba(22, 33, 22, 0.08);
}

.rstmj-tab-group,
.rstmj-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rstmj-tab-btn,
.rstmj-chip-btn,
.rstmj-btn-outline {
    border: 2px solid var(--rstmj-brand-yellow);
    border-radius: 12px;
    padding: 8px 14px;
    background: #fff;
    color: #5a120e;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.rstmj-tab-btn.is-active,
.rstmj-chip-btn.is-active {
    background: var(--rstmj-brand-red);
    border-color: #a81a12;
    color: #fff;
}

.rstmj-loading {
    text-align: center;
    padding: 24px;
    color: #5f6f5f;
}

.rstmj-data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 2px solid var(--rstmj-brand-yellow);
    border-radius: 8px;
    overflow: hidden;
}

.rstmj-data-table th,
.rstmj-data-table td {
    border-bottom: 1px solid #ffe2a5;
    padding: 10px;
}

.rstmj-data-table th {
    text-align: left;
    background: #ffd84a;
}

.rstmj-center {
    text-align: center;
}

.rstmj-bold {
    font-weight: 700;
}

.rstmj-badge,
.rstmj-badge-warn,
.rstmj-badge-ok {
    display: inline-block;
    border-radius: 12px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
}

.rstmj-badge {
    background: #ffe48a;
    color: #5a120e;
}

.rstmj-badge-warn {
    background: #ffd84a;
    color: #5a4200;
}

.rstmj-badge-ok {
    background: #ffd2cd;
    color: #7d140c;
}

.rstmj-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.rstmj-service-card {
    background: #fff;
    border: 2px solid var(--rstmj-brand-yellow);
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(23, 35, 23, 0.07);
}

.rstmj-service-head,
.rstmj-service-body,
.rstmj-service-foot {
    padding: 10px 12px;
}

.rstmj-service-head {
    border-bottom: 1px solid #eef3ed;
}

.rstmj-service-foot {
    border-top: 1px solid #eef3ed;
}

.rstmj-service-title {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.rstmj-service-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rstmj-service-list li {
    margin-bottom: 6px;
}

.rstmj-check {
    width: 16px;
    height: 16px;
}

/* Reinforce vibrant club palette over dark text */
#rstmj-reserva-form .rstmj-kicker,
#rstmj-reserva-form .rstmj-main h3,
#rstmj-reserva-form .rstmj-side h3,
#rstmj-reserva-form .rstmj-menu-block-title,
#rstmj-reserva-form .rstmj-context-summary,
#rstmj-reserva-form .rstmj-comensal-head,
#rstmj-reserva-form .rstmj-grid-2 label,
#rstmj-reserva-form .rstmj-field-block > label,
#rstmj-reserva-form .rstmj-btn:not(.rstmj-btn-primary),
#rstmj-reserva-form .rstmj-zona-btn:not(.active),
#rstmj-reserva-form .rstmj-fecha-btn:not(.active),
#rstmj-reserva-form .rstmj-turno-btn:not(.active),
#rstmj-reserva-form .rstmj-menu-choice:not(.is-selected),
#rstmj-reserva-form .rstmj-tipo-btn strong,
#rstmj-reserva-form .rstmj-carta-item-name {
    color: var(--rstmj-text);
}

#rstmj-reserva-form .rstmj-zona-btn.active,
#rstmj-reserva-form .rstmj-fecha-btn.active,
#rstmj-reserva-form .rstmj-turno-btn.active,
#rstmj-reserva-form .rstmj-menu-choice.is-selected,
#rstmj-reserva-form .rstmj-btn.rstmj-btn-primary {
    color: #fff !important;
}

#rstmj-reserva-form .rstmj-front-head p,
#rstmj-reserva-form .rstmj-step-lead,
#rstmj-reserva-form .rstmj-responsable-data,
#rstmj-reserva-form .rstmj-menu-date,
#rstmj-reserva-form .rstmj-menu-preview-empty,
#rstmj-reserva-form .rstmj-comensal-meta,
#rstmj-reserva-form .rstmj-empty {
    color: var(--rstmj-muted);
}

/* Explicit contrast on interactive states */
#rstmj-reserva-form .rstmj-zona-btn.active,
#rstmj-reserva-form .rstmj-fecha-btn.active,
#rstmj-reserva-form .rstmj-turno-btn.active,
#rstmj-reserva-form .rstmj-menu-choice.is-selected,
#rstmj-reserva-form .rstmj-menu-choice.is-selected:hover,
#rstmj-reserva-form .rstmj-menu-choice.is-selected:focus,
#rstmj-reserva-form .rstmj-btn.rstmj-btn-primary,
#rstmj-reserva-form .rstmj-btn.rstmj-btn-primary:hover,
#rstmj-reserva-form .rstmj-btn.rstmj-btn-primary:focus,
#rstmj-reserva-form .rstmj-btn.rstmj-btn-primary:active {
    background: var(--rstmj-brand-red) !important;
    border-color: #8f130a !important;
    color: #fff !important;
}

#rstmj-reserva-form .rstmj-zona-btn:hover:not(.active),
#rstmj-reserva-form .rstmj-fecha-btn:hover:not(.active),
#rstmj-reserva-form .rstmj-turno-btn:hover:not(.active),
#rstmj-reserva-form .rstmj-menu-choice:hover:not(.is-selected),
#rstmj-reserva-form .rstmj-btn:hover:not(.rstmj-btn-primary) {
    background: #e7f8e3;
    border-color: var(--rstmj-brand-green);
    color: var(--rstmj-text);
}

#rstmj-reserva-form button:focus-visible,
#rstmj-reserva-form .rstmj-tipo-btn:focus-visible,
#rstmj-reserva-form .rstmj-carta-item:focus-visible {
    outline: 3px solid #0a100d;
    outline-offset: 2px;
}

.rstmj-tab-btn.is-active,
.rstmj-chip-btn.is-active,
.rstmj-tab-btn.is-active:hover,
.rstmj-chip-btn.is-active:hover,
.rstmj-tab-btn.is-active:focus,
.rstmj-chip-btn.is-active:focus {
    background: var(--rstmj-brand-red);
    border-color: #8f130a;
    color: #fff;
}

/* Responsive */
@media (max-width: 640px) {
    #rstmj-reserva-form {
        padding: 0;
        border-radius: 0;
    }

    .rstmj-content-shell {
        padding: 12px;
    }

    #rstmj-reserva-form h2 {
        font-size: clamp(30px, 12vw, 44px);
    }

    .rstmj-front-logo {
        position: static;
        left: auto;
        top: auto;
        width: min(220px, 62vw);
        margin: 0 auto 10px;
        opacity: 1;
        transform: none;
        z-index: 1;
    }

    .rstmj-main .rstmj-front-logo {
        left: -120px;
        bottom: -90px;
        width: min(260px, 62vw);
        transform: scale(0.66);
        opacity: 0.72;
    }

    .rstmj-front-head p {
        font-size: 14px;
    }

    .rstmj-steps-indicator {
        gap: 8px;
    }

    .rstmj-steps-indicator span {
        font-size: 12px;
        padding: 6px 10px;
    }

    .rstmj-layout {
        grid-template-columns: 1fr;
    }

    .rstmj-grid-2 {
        grid-template-columns: 1fr;
    }

    .rstmj-grid-3 {
        grid-template-columns: 1fr;
    }

    .rstmj-pick-layout {
        grid-template-columns: 1fr;
    }

    .rstmj-main,
    .rstmj-side {
        padding: 14px;
        border-radius: 12px;
    }

    .rstmj-actions,
    .rstmj-actions-split {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .rstmj-btn {
        width: 100%;
    }

    .rstmj-carta-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rstmj-carta-actions-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .rstmj-carta-total {
        width: 100%;
        justify-content: center;
    }

    .rstmj-comensales-list {
        max-height: none;
    }
}
