/* ── Responde.lá Public CSS v2 ─────────────────────────────────────────────── */
:root {
    --rla-transition: .18s cubic-bezier(.4,0,.2,1);
}

/* ── Wrapper / grid ─────────────────────────────────────────────────────────── */
.rla-wrapper { display: grid; gap: 24px; width: 100%; box-sizing: border-box; }
.rla-cols-1   { grid-template-columns: 1fr; }
.rla-cols-2   { grid-template-columns: 1fr 1fr; }
.rla-cols-3   { grid-template-columns: 1fr 1fr 1fr; }

/* ── Card ────────────────────────────────────────────────────────────────────── */
.rla-table-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: opacity var(--rla-transition), filter var(--rla-transition);
}

/* ── Locked state (user selected a different table) ─────────────────────────── */
.rla-table-card.rla-locked {
    opacity: .45;
    filter: grayscale(.4);
    pointer-events: none;
}
.rla-table-card.rla-locked .rla-add-btn { cursor: not-allowed; }

/* ── Plan header ─────────────────────────────────────────────────────────────── */
.rla-plan-header {
    padding: 20px 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rla-table-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    letter-spacing: -.1px;
    opacity: .9;
}
.rla-plan-price {
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.5px;
    margin-top: 4px;
}
.rla-plan-mo {
    font-size: .5em;
    font-weight: 500;
    opacity: .75;
    letter-spacing: 0;
}
.rla-plan-desc {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* ── Table scroll ────────────────────────────────────────────────────────────── */
.rla-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; flex: 1; }

/* ── Table ───────────────────────────────────────────────────────────────────── */
.rla-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.rla-table thead th {
    padding: 9px 14px;
    font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    border-bottom: 1px solid rgba(0,0,0,.07); white-space: nowrap;
}
.rla-table thead th:last-child { width: 44px; }
.rla-table tbody .rla-row { transition: background var(--rla-transition); }
.rla-table tbody .rla-row:hover    { background: rgba(0,0,0,.025); }
.rla-table tbody .rla-row.rla-selected { background: rgba(99,102,241,.07); }
.rla-table td { padding: 9px 14px; border-bottom: 1px solid rgba(0,0,0,.05); font-size: 13px; vertical-align: middle; }
.rla-table tbody tr:last-child td { border-bottom: none; }
.rla-svc-name  { line-height: 1.4; }
.rla-svc-price { white-space: nowrap; font-weight: 600; }
.rla-svc-action { text-align: center; padding: 5px 8px; }

/* ── Add button ──────────────────────────────────────────────────────────────── */
.rla-add-btn {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 2px solid #e2e8f0; background: #fff; color: #94a3b8;
    cursor: pointer; transition: all var(--rla-transition); padding: 0;
}
.rla-add-btn:hover { border-color: #6366f1; color: #6366f1; background: rgba(99,102,241,.08); transform: scale(1.1); }

/* ── Quantity stepper ────────────────────────────────────────────────────────── */
.rla-stepper {
    display: flex;
    align-items: center;
    gap: 3px;
}
.rla-stepper-dec,
.rla-stepper-inc {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #6366f1;
    cursor: pointer;
    transition: all var(--rla-transition);
    padding: 0;
    flex-shrink: 0;
}
.rla-stepper-dec:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.rla-stepper-inc:hover { border-color: #6366f1; color: #6366f1; background: rgba(99,102,241,.08); }
.rla-stepper-dec:disabled,
.rla-stepper-inc:disabled { opacity: .35; cursor: not-allowed; }

.rla-stepper-input {
    width: 38px;
    height: 26px;
    text-align: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    padding: 0;
    -moz-appearance: textfield;
}
.rla-stepper-input::-webkit-outer-spin-button,
.rla-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rla-stepper-input:focus { outline: none; border-color: #6366f1; }

.rla-stepper-max {
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
    margin-left: 2px;
}

/* ── Fixed cart footer ───────────────────────────────────────────────────────── */
.rla-cart-footer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
    background: #fff; border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 32px rgba(0,0,0,.12);
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.rla-cart-footer.rla-footer-visible { transform: translateY(0); }

.rla-cart-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px; max-width: 1200px; margin: 0 auto; gap: 16px;
}
.rla-cart-summary { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rla-cart-plan-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #94a3b8; }
.rla-cart-breakdown { font-size: 12px; color: #64748b; line-height: 1.4; }
.rla-cart-total-row { display: flex; align-items: baseline; gap: 6px; }
.rla-cart-total-label { font-size: 12px; color: #64748b; }
.rla-cart-total-value { font-size: 20px; font-weight: 800; color: #0f172a; letter-spacing: -.3px; }

.rla-cart-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rla-cart-clear {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #94a3b8;
    cursor: pointer; transition: all var(--rla-transition); padding: 0;
}
.rla-cart-clear:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

.rla-whatsapp-btn {
    display: inline-flex; align-items: center; gap: 9px; border: none;
    border-radius: 10px; cursor: pointer; font-weight: 700; font-family: inherit;
    transition: opacity .15s, transform .1s; white-space: nowrap;
}
.rla-whatsapp-btn:hover  { opacity: .9; }
.rla-whatsapp-btn:active { transform: scale(.97); }

/* ── Lock notice ─────────────────────────────────────────────────────────────── */
.rla-lock-notice {
    display: none;
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(15,23,42,.82);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.rla-table-card { position: relative; }
.rla-table-card.rla-locked .rla-lock-notice { display: block; }

/* ── Keyframes ───────────────────────────────────────────────────────────────── */


/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .rla-cols-3 { grid-template-columns: 1fr; }
    .rla-cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .rla-cart-inner { padding: 10px 14px; flex-wrap: wrap; }
    .rla-cart-breakdown { display: none; }
    .rla-cart-total-value { font-size: 17px; }
}
