.ro-active-list,
.ro-available-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ro-item-accordion {
    border: 1px solid rgba(15, 118, 106, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.ro-item-accordion.has-open-invoices {
    border-color: rgba(220, 38, 38, 0.45);
    background: rgba(254, 226, 226, 0.85);
}

.ro-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0;
    cursor: pointer;
    width: 100%;
}

.ro-row .ro-main {
    flex: 1;
}

.ro-row .ro-summary-inline {
    flex: 1;
}

.ro-summary-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ro-row-toggle {
    align-self: flex-start;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(15, 118, 106, 0.2);
    background: rgba(255, 255, 255, 0.85);
    transition: transform 0.2s ease;
}

.ro-row-toggle svg {
    width: 16px;
    height: 16px;
    fill: #0f766a;
}

.ro-item-accordion.is-open .ro-row-toggle {
    transform: rotate(180deg);
}

.ro-details {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.ro-item-accordion.is-open .ro-details {
    display: flex;
}

.sync-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2;
    cursor: pointer;
}

.sync-overlay-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem;
    width: min(320px, 100%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    box-shadow: 0 18px 40px rgba(15, 118, 106, 0.2);
}

.sync-progress {
    width: 100%;
    height: 8px;
    background: rgba(15, 118, 106, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.sync-progress-bar {
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 118, 106, 0.6), rgba(18, 162, 146, 0.9));
    animation: syncPulse 1.4s ease-in-out infinite;
}

@keyframes syncPulse {
    0% {
        transform: translateX(-60%);
        opacity: 0.4;
    }
    50% {
        transform: translateX(40%);
        opacity: 1;
    }
    100% {
        transform: translateX(140%);
        opacity: 0.4;
    }
}

.ro-active-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

.ro-available-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 118, 106, 0.16);
    background: rgba(255, 255, 255, 0.9);
}

.ro-available-head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ro-available-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ro-available-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ro-available-tile {
    border: 1px solid rgba(15, 118, 106, 0.16);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    flex: 1 1 200px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    text-align: left;
}

.ro-available-tile:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 106, 0.35);
    box-shadow: 0 12px 26px rgba(15, 118, 106, 0.14);
}

.tile-title {
    font-weight: 700;
    color: #0f172a;
}

.tile-price {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.7);
}

.ro-available-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ro-available-actions select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 118, 106, 0.18);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.feature-table-wrapper {
    margin-top: 0.75rem;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 106, 0.18);
    background: rgba(255, 255, 255, 0.7);
}

.ro-summary-total {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ro-total-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ro-total-card {
    border: 1px solid rgba(15, 118, 106, 0.16);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ro-total-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(15, 23, 42, 0.6);
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.feature-table th,
.feature-table td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(15, 118, 106, 0.12);
    vertical-align: top;
}

.feature-table-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    border: 1px solid rgba(15, 118, 106, 0.2);
    background: rgba(255, 255, 255, 0.85);
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.icon-btn svg {
    width: 16px;
    height: 16px;
    fill: #0f766a;
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 106, 0.4);
    box-shadow: 0 8px 18px rgba(15, 118, 106, 0.18);
}

.feature-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(15, 23, 42, 0.6);
    background: rgba(15, 118, 106, 0.08);
}

.feature-row.is-selected {
    background: rgba(15, 118, 106, 0.08);
}

.feature-click {
    cursor: pointer;
}

.feature-click:hover {
    background: rgba(15, 118, 106, 0.06);
}

.feature-select {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-weight: 600;
}

.feature-title {
    font-weight: 700;
    color: #0f172a;
}

.feature-cell {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.price-cell {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.price-selected {
    background: rgba(15, 118, 106, 0.12);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 106, 0.25);
}

.price-selected .price-value {
    color: #0b5e53;
}

.ro-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 40;
}

.ro-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
}

.wizard-blocker {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.wizard-blocker-card {
    width: min(480px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 106, 0.2);
    box-shadow: 0 20px 50px rgba(15, 118, 106, 0.2);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-blocker-steps {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
}

.ro-modal-card {
    width: min(960px, 100%);
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(15, 118, 106, 0.2);
    box-shadow: 0 24px 70px rgba(15, 118, 106, 0.2);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cancel-card {
    width: min(520px, 100%);
}

.cancel-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ro-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.wizard-card {
    width: min(1000px, 100%);
}

.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wizard-section {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.wizard-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-btn {
    border: 1px solid rgba(15, 118, 106, 0.2);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.chip-btn.is-active {
    background: rgba(15, 118, 106, 0.12);
    border-color: rgba(15, 118, 106, 0.4);
    box-shadow: 0 8px 20px rgba(15, 118, 106, 0.15);
}

.wizard-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-card select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 118, 106, 0.18);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.wizard-select {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wizard-restaurant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wizard-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wizard-voucher {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.voucher-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.voucher-actions {
    display: flex;
    align-items: flex-end;
}

.voucher-active {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 118, 106, 0.2);
    background: rgba(15, 118, 106, 0.08);
}

.voucher-discount {
    font-weight: 700;
    color: #0f766a;
}

.wizard-progress {
    width: 100%;
    height: 10px;
    background: rgba(15, 118, 106, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 118, 106, 0.6), rgba(18, 162, 146, 0.8));
    transition: width 0.3s ease;
}

.wizard-summary-group {
    border: 1px solid rgba(15, 118, 106, 0.12);
    border-radius: 14px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wizard-summary-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wizard-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wizard-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.wizard-order-items {
    overflow-x: auto;
}

.wizard-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.wizard-summary-table th,
.wizard-summary-table td {
    padding: 0.45rem 0.4rem;
    border-bottom: 1px solid rgba(15, 118, 106, 0.08);
}

.wizard-summary-table th {
    text-align: left;
    color: #19403a;
    font-weight: 600;
}

.wizard-summary-table .right {
    text-align: right;
    white-space: nowrap;
}

.wizard-summary-table tfoot td {
    border-bottom: none;
    padding-top: 0.6rem;
}

.wizard-legal {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(15, 118, 106, 0.1);
    padding-top: 0.75rem;
}

.wizard-legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.wizard-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.check-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(15, 118, 106, 0.2);
    background: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
}

.check-btn.is-checked {
    background: rgba(15, 118, 106, 0.15);
    border-color: rgba(15, 118, 106, 0.4);
    color: #0b5e53;
}

.link-btn {
    border: none;
    background: transparent;
    color: #0f766a;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.wizard-actions {
    margin-top: 0.5rem;
}

.wizard-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.legal-card {
    width: min(860px, 100%);
}

.legal-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-item {
    border: 1px solid rgba(15, 118, 106, 0.12);
    border-radius: 14px;
    padding: 0.75rem;
}

.legal-item p {
    white-space: pre-line;
}

.legal-note a {
    color: #0f766a;
    text-decoration: none;
    font-weight: 600;
}

.legal-note a:hover {
    text-decoration: underline;
}

.legal-head {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

@media (min-width: 720px) {
    .wizard-grid {
        flex-direction: row;
    }

    .wizard-grid .field {
        flex: 1;
    }

    .voucher-row {
        flex-direction: row;
        align-items: flex-end;
    }

    .voucher-active {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .legal-head {
        flex-direction: row;
        justify-content: space-between;
    }

}

@media (min-width: 900px) {
    .ro-total-row {
        flex-direction: row;
    }

    .ro-total-card {
        flex: 1;
    }

}

.price-value {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.75);
}

.pill.danger {
    background: rgba(244, 63, 94, 0.16);
    color: #b91c1c;
}

@media (min-width: 900px) {
    .ro-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ro-summary-inline {
        justify-content: flex-end;
    }

    .ro-row-toggle {
        align-self: center;
    }

    .ro-active-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .ro-available-head {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .ro-available-actions {
        flex-direction: row;
        align-items: flex-end;
    }

    .feature-table th,
    .feature-table td {
        padding: 0.85rem 1rem;
    }
}
