/* Witimy AI tips: cards, compact rows of the dashboard block, detail panel and dialogs. Colours follow the mockup. */

.reco-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reco-certainty {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.reco-certainty--certain { color: #16a34a; background: #f0fdf4; }
.reco-certainty--estimated { color: #ea580c; background: #fff7ed; }
.reco-certainty--referencebased { color: #4f46e5; background: #f1f0ff; }

.reco-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    border-radius: 999px;
    background: #f1f0ff;
    color: #4f46e5;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
}

.reco-ai-badge .rzi { font-size: 14px; }
.reco-ai-badge--small { padding: 2px 8px; font-size: 11px; }
.reco-ai-badge--small .rzi { font-size: 12px; }

.reco-transparency {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    padding: 10px 14px;
}

.reco-transparency > .rzi { color: #7c3aed; font-size: 18px; margin-top: 1px; }
.reco-transparency p { margin: 0; }
.reco-transparency-title { font-size: 13.5px; font-weight: 600; color: #4c1d95; }
.reco-transparency-text { font-size: 12px; line-height: 17px; color: #6d28d9; }
.reco-transparency a { color: inherit; font-weight: 500; text-decoration: underline; }

.reco-transparency--compact {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    gap: 6px;
    font-size: 12px;
    line-height: 16px;
    color: #6b7280;
}

.reco-transparency--compact > .rzi { font-size: 14px; }
.reco-transparency--compact a { color: #4f46e5; font-weight: 400; }

.reco-members {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    color: #4b5563;
    font-weight: 500;
}

.reco-members-family { font-size: 16px; color: #6b7280; }
.reco-avatars { display: inline-flex; }

.reco-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4f46e5;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 600;
    box-shadow: 0 0 0 2px #ffffff;
}

.reco-avatar + .reco-avatar { margin-left: -6px; }
.reco-members-names { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.reco-new {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    color: #4f46e5;
    background: #eef0ff;
    padding: 1px 7px;
}

.reco-new-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4f46e5;
    flex-shrink: 0;
}

/* Card of the tips page */
.reco-card {
    container-type: inline-size;
    background: #ffffff;
    border: 1px solid #ececf2;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.reco-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -6px rgba(79, 70, 229, 0.18);
}

.reco-card--inactive { opacity: 0.78; }

.reco-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 16px 18px;
}

.reco-card-main { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0; }
.reco-card-content { flex: 1; min-width: 0; }
.reco-card-label-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 2px; }
.reco-card-label { margin: 0; font-size: 12.5px; font-weight: 600; }

.reco-card-title {
    margin: 0;
    font-size: 16.5px;
    line-height: 22px;
    font-weight: 600;
    color: #1e1b4b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reco-card-text {
    margin: 3px 0 0;
    font-size: 13.5px;
    line-height: 19px;
    color: #5b6170;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reco-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.reco-card-date { font-size: 12px; color: #9ca3af; }

.reco-status-line {
    font-size: 11.5px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 1px 8px;
}

.reco-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding-left: 66px; }
.reco-card-actions .reco-action { flex: 1; }

.reco-action.rz-button {
    height: 38px;
    border-radius: 999px;
    color: #4f46e5;
    border-color: #c7c9f9;
    font-size: 13.5px;
    text-transform: none;
    gap: 6px;
}

.reco-action .rzi { font-size: 16px; }

@container (min-width: 32rem) {
    .reco-card-body { flex-direction: row; align-items: center; gap: 20px; }
    .reco-card-actions { padding-left: 0; flex-shrink: 0; }
    .reco-card-actions .reco-action { flex: none; }
}

.reco-menu .card-actions-trigger {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #374151;
}

/* Compact row of the dashboard block */
.reco-rows { container-type: inline-size; display: flex; flex-direction: column; gap: 10px; }

.reco-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "tile content extra menu";
    align-items: center;
    gap: 12px;
    padding: 12px 8px 12px 14px;
    background: #ffffff;
    border: 1px solid #ececf2;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    animation: reco-row-in 0.25s ease-out;
}

.reco-row:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -6px rgba(79, 70, 229, 0.18); }
.reco-row-tile { grid-area: tile; display: inline-flex; }
.reco-row-content { grid-area: content; min-width: 0; }
.reco-row-extra { grid-area: extra; display: flex; align-items: center; gap: 12px; }
.reco-row-menu { grid-area: menu; display: inline-flex; }
.reco-row-label-row { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }

.reco-row-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.reco-row-title {
    margin: 0;
    font-size: 14.5px;
    line-height: 19px;
    font-weight: 600;
    color: #1e1b4b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reco-row-saving { white-space: nowrap; font-size: 13.5px; font-weight: 700; color: #16a34a; }

.reco-row-action {
    border: 0;
    background: none;
    padding: 0;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 600;
    color: #4f46e5;
    cursor: pointer;
}

.reco-row-action:hover { text-decoration: underline; }

/* Below this width an amount, the action and the menu would squeeze the title: they go under it. */
@container (max-width: 36rem) {
    .reco-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "tile content menu" ". extra extra";
        row-gap: 6px;
    }

    .reco-row-extra { justify-content: space-between; }
}

@keyframes reco-row-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Detail panel */
/* Header on top, scrolling body, actions anchored at the bottom of the side panel. */
.reco-panel-dialog .rz-dialog-side-content { padding: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.reco-panel { flex: 1; min-height: 0; height: 100%; display: flex; flex-direction: column; outline: none; }
.reco-panel-loading { padding: 24px 20px; color: #6b7280; }
.reco-panel-header { padding: 20px 20px 16px; border-bottom: 1px solid #f0f0f5; }
.reco-panel-heading { display: flex; align-items: flex-start; gap: 12px; }
.reco-panel-titles { flex: 1; min-width: 0; }
.reco-panel-title { margin: 0; font-size: 19px; line-height: 25px; font-weight: 600; color: #1e1b4b; }

.reco-panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
}

.reco-panel-close:hover { background: rgba(0, 0, 0, 0.05); }
.reco-panel-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.reco-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 8px; }
.reco-panel-text { margin: 0; font-size: 14.5px; line-height: 22px; color: #374151; }

.reco-panel-saving {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.reco-panel-saving p { margin: 0; }
.reco-panel-saving-label { font-size: 12px; color: #15803d; font-weight: 500; }
.reco-panel-saving-amount { font-size: 20px; font-weight: 700; color: #166534; }

.reco-panel-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 17px;
    color: #6b7280;
}

.reco-panel-disclaimer .rzi { font-size: 14px; margin-top: 1px; }
.reco-panel-data { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #f9fafb; }

.reco-panel-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e1b4b;
}

.reco-panel-section .rzi { font-size: 15px; color: #6366f1; }
.reco-panel-data ul { margin: 0; padding-left: 18px; font-size: 13px; color: #4b5563; }

.reco-source,
.reco-source-gone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
}

.reco-source { border: 0; background: none; padding: 0; color: #4f46e5; cursor: pointer; text-align: left; }
.reco-source:hover { text-decoration: underline; }
.reco-source-gone { color: #9ca3af; }
.reco-source .rzi,
.reco-source-gone .rzi { font-size: 14px; }
.reco-panel-status { margin: 10px 0 0; font-size: 12px; color: #6b7280; }
.reco-panel-transparency { margin-top: 16px; }

/* Rich detail: compared amounts, hypotheses, checklist and related documents (mockup RecommendationOverlays). */
.reco-panel-block { margin-top: 18px; }
.reco-history { border: 1px solid #ececf2; border-radius: 12px; overflow: hidden; }
.reco-history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.reco-history-table th { padding: 8px 12px; background: #f9fafb; color: #6b7280; font-weight: 500; text-align: right; }
.reco-history-table td { padding: 8px 12px; border-top: 1px solid #f0f0f5; color: #1f2937; text-align: right; white-space: nowrap; }
.reco-history-table .reco-history-year { text-align: left; }
.reco-history-current td { font-weight: 600; }
.reco-history-tag { color: #9ca3af; font-weight: 400; }
.reco-history-note { margin: 6px 0 0; font-size: 12px; color: #6b7280; }

@media (max-width: 639.98px) {
    .reco-history-table .reco-history-price { display: none; }
}

.reco-hypotheses { margin: 0; padding: 0; list-style: none; }

.reco-hypotheses li {
    position: relative;
    margin-top: 6px;
    padding-left: 14px;
    font-size: 13.5px;
    line-height: 19px;
    color: #374151;
}

.reco-hypotheses li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a5b4fc;
}

.reco-checklist { display: flex; flex-direction: column; gap: 8px; }
.reco-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; }
.reco-check-icon.rzi { flex-shrink: 0; font-size: 17px; margin-top: 1px; }
.reco-check-body { flex: 1; min-width: 0; }
.reco-check-text { margin: 0; font-size: 13.5px; line-height: 19px; color: #1f2937; }

.reco-check-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 12.5px;
    font-weight: 500;
    color: #4f46e5;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.reco-check-link:hover { text-decoration: underline; }
.reco-check-link .rzi { font-size: 13px; }
.reco-check-official { color: #6b7280; font-weight: 400; }

.reco-related { display: flex; flex-direction: column; gap: 8px; }

.reco-related-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid #ececf2;
    border-radius: 10px;
    background: #fcfcfe;
}

.reco-related-icon.rzi { flex-shrink: 0; font-size: 18px; color: #e11d48; }

.reco-related-document {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    overflow: hidden;
    font-size: 13px;
    color: #1e1b4b;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.reco-related-document:hover { text-decoration: underline; }

.reco-related-external {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4f46e5;
    text-decoration: none;
}

.reco-related-external:hover { text-decoration: underline; }
.reco-related-external .rzi { font-size: 14px; }

.reco-related-download {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 0;
    border-radius: 999px;
    background: none;
    font-size: 12px;
    font-weight: 500;
    color: #4f46e5;
    cursor: pointer;
}

.reco-related-download:hover:not(:disabled) { background: #eef2ff; }
.reco-related-download:disabled { opacity: 0.6; cursor: progress; }
.reco-related-download .rzi { font-size: 14px; }

.reco-related-gone .reco-related-icon.rzi { color: #9ca3af; }
.reco-related-gone .reco-related-document { color: #6b7280; cursor: default; }

.reco-comparator {
    padding: 14px;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    background: #f8f9ff;
}

.reco-comparator-text { margin: 0; font-size: 13px; line-height: 19px; color: #4b5563; }

.reco-comparator-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #4f46e5;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
}

.reco-comparator-open:hover { background: #4338ca; }
.reco-comparator-open .rzi { font-size: 14px; }

.reco-panel-footer {
    flex-shrink: 0;
    padding: 12px 20px 16px;
    border-top: 1px solid #f0f0f5;
    background: #ffffff;
}

.reco-panel-main.rz-button { width: 100%; height: 42px; margin-bottom: 10px; border-radius: 999px; text-transform: none; gap: 6px; }
.reco-panel-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* custom.css forces a 1rem side padding on every .rz-button-md with !important: only !important beats it. */
.reco-panel-buttons .rz-button {
    height: 38px;
    padding-inline: 6px !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
}
.reco-panel-buttons .rz-button .rz-button-box { gap: 4px; max-width: 100%; }
.reco-panel-buttons .rz-button .rzi { font-size: 16px; }
.reco-panel-buttons .rz-button .rz-button-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* At phone width the two outlined buttons only keep their label on one line with a narrower footer. */
@media (max-width: 480px) {
    .reco-panel-footer { padding-inline: 12px; }
    .reco-panel-buttons { gap: 6px; }
    .reco-panel-buttons .rz-button { padding-inline: 4px !important; font-size: 13px; }
    .reco-panel-buttons .rz-button .rz-button-box { gap: 3px; }
    .reco-panel-buttons .rz-button .rzi { font-size: 15px; }
}

/* "Not useful" dialog */
.reco-dialog-body { display: flex; flex-direction: column; gap: 12px; }
.reco-dialog-title { margin: 0; font-size: 18px; font-weight: 600; color: #1e1b4b; }
.reco-dialog-text { margin: 0; font-size: 14px; color: #4b5563; }
.reco-dialog-label { margin: 0; font-size: 13px; font-weight: 600; color: #374151; }
.reco-reasons { display: flex; flex-wrap: wrap; gap: 8px; }

.reco-reason {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: #374151;
    padding: 7px 14px;
    font-size: 13.5px;
    cursor: pointer;
}

.reco-reason .rzi { font-size: 16px; }
.reco-reason--active { border-color: #4f46e5; background: #eef0ff; color: #4f46e5; font-weight: 600; }
.reco-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.reco-menu-list { min-width: 16rem; }
.reco-menu-separator { display: block; height: 1px; margin: 4px 0; background: #ececf2; }
.reco-menu-danger,
.reco-menu-danger .card-actions-icon { color: #b91c1c !important; }

/* Dashboard block */
.reco-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    padding: 1.1rem 1.2rem;
}

.reco-widget-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 16px; }
.reco-widget-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }

.reco-sparkle-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.55);
    color: #ffffff;
}

.reco-sparkle-tile .rzi { font-size: 17px; }
.reco-widget-title { margin: 0; white-space: nowrap; font-size: 18px; line-height: 24px; font-weight: 600; color: #1e1b4b; }

.reco-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #eef0ff;
    color: #4f46e5;
    font-size: 12.5px;
    font-weight: 600;
}

.reco-widget-all { display: inline-flex; align-items: center; gap: 2px; color: #4f46e5; font-size: 14px; font-weight: 600; text-decoration: none; }
.reco-widget-all:hover { text-decoration: underline; }
.reco-widget-all .rzi { font-size: 18px; }
.reco-widget-content { flex: 1; }

.reco-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    padding: 28px 16px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 14px;
    background: #fafafc;
    border: 1px dashed #e2e2ea;
}

.reco-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #ececf2;
}

.reco-empty-title { margin: 0; font-size: 15px; font-weight: 600; color: #1e1b4b; }
.reco-empty-text { margin: 0; max-width: 380px; font-size: 13px; color: #6b7280; }

.reco-widget-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f1f1f5;
}

.reco-widget-note { flex: 1; min-width: 0; }

@media (min-width: 640px) {
    .reco-widget-footer { flex-direction: row; align-items: center; }
}

/* Tips page */
.reco-page { display: flex; flex-direction: column; gap: 20px; max-width: 1100px; margin: 0 auto; padding-bottom: 2rem; }
.reco-page-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.reco-page-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.reco-page-heading h2 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; color: #1e1b4b; }
.reco-page-heading p { margin: 0; font-size: 13.5px; color: #6b7280; }
.reco-sparkle-tile--large { width: 44px; height: 44px; border-radius: 14px; box-shadow: none; }
.reco-sparkle-tile--large .rzi { font-size: 22px; }

.reco-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(120deg, #eef0ff 0%, #f5f3ff 60%, #fdf4ff 100%);
    border: 1px solid #ddd6fe;
}

.reco-banner-main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; padding-right: 28px; }
.reco-banner-main p { margin: 0; }
.reco-banner-title { font-size: 16px; font-weight: 600; color: #312e81; }
.reco-banner-text { font-size: 13.5px; line-height: 19px; color: #4c1d95; }
.reco-banner-button.rz-button { align-self: flex-start; border-radius: 999px; text-transform: none; }

.reco-banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.reco-banner-close:hover { background: rgba(255, 255, 255, 0.7); }

.reco-ring {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(#4f46e5 calc(var(--reco-ring-value) * 1%), #e0e7ff 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reco-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #f1f0ff; }
.reco-ring span { position: relative; font-size: 14px; font-weight: 700; color: #312e81; }

@media (min-width: 640px) {
    .reco-banner { flex-direction: row; align-items: center; padding-right: 64px; }
    .reco-banner-button.rz-button { align-self: center; }
    .reco-banner-close { top: 50%; right: 16px; transform: translateY(-50%); }
}

.reco-tabs { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }

.reco-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #c7c9f9;
    background: #ffffff;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.reco-tab .rzi { font-size: 16px; }
.reco-tab--active { background: var(--rz-primary); border-color: var(--rz-primary); color: #ffffff; }

.reco-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #eef0ff;
    color: #4f46e5;
    font-size: 11.5px;
    font-weight: 700;
}

.reco-tab--active .reco-tab-count { background: rgba(255, 255, 255, 0.22); color: #ffffff; }

.reco-tabs-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
    border: 0;
    background: none;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.reco-tabs-profile .rzi { font-size: 15px; }

.reco-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #ececf2;
    background: #ffffff;
}

.reco-filters .reco-filter.rz-dropdown { width: 100%; height: 40px; border-radius: 999px !important; padding-inline-start: 16px; }
.reco-filters .reco-filter .rz-dropdown-label { font-size: 14px; }
/* A thin chevron, as in the reference design, instead of the theme's filled triangle. */
.reco-filters .reco-filter .rz-dropdown-trigger .rzi-chevron-down::before { content: "expand_more"; }
.reco-filters .reco-filter .rz-dropdown-trigger .rzi { width: 18px; height: 18px; font-size: 18px; color: #9ca3af; margin-inline-end: 12px; }
.reco-sort { position: relative; display: flex; align-items: center; }
.reco-sort > .rzi { position: absolute; left: 16px; z-index: 1; font-size: 16px; color: #6b7280; pointer-events: none; }
.reco-filters .reco-sort .reco-filter.rz-dropdown { padding-inline-start: 40px; }
.reco-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #374151; }
.reco-switch label { cursor: pointer; }

.reco-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
    border: 0;
    background: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
}

.reco-reset .rzi { font-size: 14px; }

@media (min-width: 640px) {
    .reco-filters { display: flex; flex-wrap: wrap; align-items: center; }
    .reco-filters .reco-filter.rz-dropdown { width: auto; min-width: 190px; }
    .reco-sort { display: inline-flex; }
    .reco-reset { margin-left: auto; }
}

.reco-disabled {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #ececf2;
    background: #f9fafb;
    font-size: 13px;
    color: #6b7280;
}

.reco-disabled-chip { border: 1px solid #e5e7eb; border-radius: 999px; background: #ffffff; padding: 2px 10px; font-weight: 500; cursor: pointer; }
.reco-list { display: flex; flex-direction: column; gap: 12px; }

.reco-page-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    text-align: center;
    border-radius: 16px;
    border: 1px dashed #e2e2ea;
    background: #ffffff;
}

.reco-more-row { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: #9ca3af; }
.reco-more.rz-button { color: #4f46e5; border-color: #c7c9f9; border-radius: 999px; text-transform: none; }
.reco-info-group { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.reco-info-heading { display: flex; align-items: center; gap: 8px; }
.reco-info-heading h3 { margin: 0; font-size: 16px; font-weight: 600; color: #1e1b4b; }
.reco-info-text { margin: -6px 0 0; font-size: 13px; color: #6b7280; }
.reco-info-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

@media (min-width: 768px) {
    .reco-info-grid { grid-template-columns: 1fr 1fr; }
}

.reco-page-footnote { margin: 0; text-align: center; font-size: 12px; color: #9ca3af; }

.reco-page-off {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 24px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid #ececf2;
    background: #ffffff;
}

.reco-page-off h2 { margin: 0; font-size: 20px; font-weight: 600; color: #1e1b4b; }
.reco-page-off p { margin: 0; max-width: 520px; font-size: 14px; color: #6b7280; }

.reco-page-off-icon--not-yet { background: #f5f3ff !important; color: #7c3aed !important; }

.reco-page-off-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
}

/* "Witimy tips" entries of the sidebar and of the header */
.reco-menu-card-wrap { padding: 0 12px 8px; }

.reco-menu-card {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: var(--rz-border-radius, 12px);
    background: transparent;
    color: var(--rz-primary);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.reco-menu-card:hover,
.reco-menu-card.active { background: #f5f3ff; }

.reco-menu-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.reco-menu-card-icon .rzi { font-size: 20px; color: var(--rz-success); }
.reco-menu-card-texts { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.reco-menu-card-title { font-size: 14px; font-weight: 700; line-height: 17px; }
.reco-menu-card-subtitle { font-size: 11.5px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.reco-menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #fbbf24;
    color: #1e1b4b;
    font-size: 11.5px;
    font-weight: 700;
}

.reco-menu-badge--corner {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
    border: 2px solid #ffffff;
}

.reco-menu-badge--header { border-color: var(--rz-primary); }
.reco-menu-card-compact-wrap { display: flex; justify-content: center; padding: 0 8px 8px; }

.reco-menu-card-compact {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.55);
    color: #ffffff;
    cursor: pointer;
}

.reco-menu-card-compact.active { box-shadow: 0 0 0 3px #c7d2fe; }
.reco-menu-card-compact .rzi { font-size: 20px; }

.reco-header-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    min-width: 40px;
    padding: 0 14px 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.reco-header-button:hover,
.reco-header-button.active { background: rgba(255, 255, 255, 0.25); }
.reco-header-button .rzi { font-size: 18px; color: #ffffff; }

@media (max-width: 640px) {
    .reco-header-button { padding: 0; width: 40px; }
    .reco-header-button-text { display: none; }
}

/* Phones: the recommendations shortcut lives in the sidebar card only. */
@media (max-width: 768px) {
    .reco-header-button { display: none; }
}

.reco-panel-target-gone {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f9fafb;
    font-size: 13px;
    color: #6b7280;
}

.reco-panel-target-gone .rzi { font-size: 16px; }
