/* Shell manager : mise en forme statique (chrome), les couleurs de marque viennent des variables
   CSS --color-primary/--color-secondary/--color-accent/--color-background/--font-family injectées
   par ManagerLayout à partir du thème du restaurant. --color-on-primary / --color-on-secondary
   (blanc ou quasi-noir) sont calculées par ManagerLayout pour rester lisibles sur ces fonds. */

.manager-shell {
    background: var(--color-background, #f5f5f5);
    font-family: var(--font-family, inherit);
}

/* Barre mobile (< lg) : logo/marque + bouton burger ouvrant la sidebar en tiroir (offcanvas). */
.manager-topbar {
    background: var(--color-secondary, #3d0e14);
    color: var(--color-on-secondary, #fff);
}

.manager-topbar__brand {
    height: 36px;
}

.manager-burger {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.manager-sidebar {
    --on-primary: var(--color-on-primary, #fff);
    background: var(--color-primary, #3d0e14);
    color: var(--on-primary);
    padding: 1.5rem 1rem;
}

/* Sidebar persistante (>= lg) : largeur fixe. En offcanvas (< lg), Bootstrap gère position/anim,
   on ajuste seulement sa largeur via sa variable --bs-offcanvas-width. */
.manager-sidebar--static {
    width: 240px;
    flex-shrink: 0;
}

.offcanvas.manager-sidebar {
    --bs-offcanvas-width: 280px;
}

    .offcanvas.manager-sidebar .offcanvas-header {
        padding-bottom: 0;
    }

.manager-sidebar__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    min-height: 48px;
}

    .manager-sidebar__logo img {
        max-height: 48px;
        max-width: 100%;
    }

.manager-sidebar__brand {
    height: 96px;
}

.manager-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

    .manager-sidebar__nav a {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        color: color-mix(in srgb, var(--on-primary) 85%, transparent);
        text-decoration: none;
        padding: 0.6rem 0.75rem;
        border-radius: 6px;
    }

.manager-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

        .manager-sidebar__nav a:hover {
            background: color-mix(in srgb, var(--on-primary) 8%, transparent);
        }

        /* Surimpression de la couleur de texte plutôt que --color-primary : la sidebar a déjà ce fond,
           le lien actif doit rester visible quelle que soit la couleur choisie. */
        .manager-sidebar__nav a.active {
            background: color-mix(in srgb, var(--on-primary) 18%, transparent);
            color: var(--on-primary);
        }

.manager-sidebar__footer {
    margin-top: 1rem;
}

.manager-sidebar__user {
    display: block;
    color: color-mix(in srgb, var(--on-primary) 70%, transparent);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.manager-sidebar__logout {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    color: color-mix(in srgb, var(--on-primary) 70%, transparent);
    border: 1px solid color-mix(in srgb, var(--on-primary) 30%, transparent);
    border-radius: 6px;
    cursor: pointer;
}

    .manager-sidebar__logout:hover {
        color: var(--on-primary);
        border-color: var(--on-primary);
    }

.manager-main {
    min-width: 0;
}

.manager-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--color-secondary, #fff);
    color: var(--color-on-secondary, inherit);
}

.manager-footer {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: #888;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.manager-coming-soon {
    color: #666;
}

/* Page de connexion : pas de contexte de marque disponible avant login, palette neutre. */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f5f5f5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 320px;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

    .login-form label {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.9rem;
    }

    .login-form input {
        padding: 0.5rem;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .login-form button {
        margin-top: 0.5rem;
        padding: 0.6rem;
        background: #3d0e14;
        color: #fff;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }

.login-form__logo {
    align-self: center;
    height: 120px;
    color: #701323;
}

.login-form__error {
    color: #b32121;
    font-size: 0.9rem;
}

/* Page Apparence */
.appearance-page__layout {
    margin-top: 1rem;
}

.appearance-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 480px;
    flex-grow: 1;
}

.appearance-form__section h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.appearance-form__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .appearance-form__logo img {
        max-height: 64px;
        max-width: 160px;
        object-fit: contain;
    }

.appearance-form__logo-placeholder {
    color: #888;
}

.appearance-form__logo-replace {
    position: relative;
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

    .appearance-form__logo-replace input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

/* Grille d'alignement des champs : une colonne de libellés à largeur fixe, une colonne de
   contrôles, pour que toutes les lignes (Logo, couleurs, mode) démarrent à la même position
   quelle que soit la longueur du libellé. */
.appearance-form__row {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

    .appearance-form__row--top {
        align-items: start;
    }

.appearance-form__row-label {
    font-weight: 500;
}

.appearance-form__row-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .appearance-form__row-control input[type="text"] {
        width: 100px;
        padding: 0.3rem;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

.appearance-form__color-error {
    flex-basis: 100%;
    color: #b32121;
    font-size: 0.8rem;
}

.appearance-form button[type="submit"] {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    background: var(--color-primary, #3d0e14);
    color: var(--color-on-primary, #fff);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

    .appearance-form button[type="submit"]:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.appearance-page__error {
    color: #b32121;
}

.appearance-page__success {
    color: #1a7a3d;
}

.appearance-form__hint {
    flex-basis: 100%;
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 575.98px) {
    .appearance-form__row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

/* Boutons génériques réutilisés par les pages Cartes/Plats */
.btn-primary-brand {
    background: var(--color-primary, #3d0e14);
    color: var(--color-on-primary, #fff);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.btn-accent {
    background: var(--color-secondary, #c99a42);
    color: var(--color-on-secondary, #fff);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.btn-link {
    background: none;
    border: none;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

/* Page Cartes */
.cartes-page__header h1 {
    margin: 0;
}

.cartes-active-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cartes-active-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cartes-active-card__title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.cartes-active-card__meta {
    color: #888;
    font-size: 0.85rem;
}

.badge-published {
    display: inline-block;
    background: #e6f4ea;
    color: #1a7a3d;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-archived {
    display: inline-block;
    background: #f0f0f0;
    color: #777;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.badge-pending {
    display: inline-block;
    background: #fdf3e0;
    color: #9a6700;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-failed {
    display: inline-block;
    background: #fdecea;
    color: #b42318;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.billing-jobs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.billing-job--alert {
    border-left: 4px solid #b42318;
}

.billing-job__schedule {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.billing-job__alert {
    background: #fdecea;
    color: #b42318;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.billing-job__facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    margin: 0;
}

.billing-job__facts dt {
    font-weight: 500;
    color: #555;
}

.billing-job__facts dd {
    margin: 0;
}

.billing-job__summary {
    margin: 0.75rem 0 0;
    padding: 0.5rem 0.75rem;
    background: #f7f7f7;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    white-space: pre-wrap;
}

.invoice-sending {
    display: flex;
    flex-direction: column;
    /* En colonne, le centrage de .appearance-form__row-control centrerait le bloc horizontalement. */
    align-items: flex-start;
    gap: 0.5rem;
}

.invoice-sending__detail {
    margin-left: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.invoice-sending__error {
    margin: 0;
    color: #b42318;
    font-size: 0.9rem;
}

.invoice-sending__hint {
    margin: 0;
    color: #888;
    font-size: 0.8rem;
}

.cartes-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.cartes-category-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

    .cartes-category-card__image {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 6px;
        margin-bottom: 0.75rem;
    }

    .cartes-category-card h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .cartes-category-card p {
        color: #888;
        margin-bottom: 0.75rem;
    }

    .cartes-category-card a {
        color: var(--color-primary, #701323);
        text-decoration: none;
        font-weight: 500;
    }

.cartes-history {
    margin-top: 2rem;
}

    .cartes-history h2 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

.cartes-history__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
}

.cartes-history__name {
    font-weight: 500;
    min-width: 140px;
}

.cartes-history__dates {
    color: #888;
    flex-grow: 1;
}

/* Page Menu (édition d'une carte) */
.menu-edit-page__title-input {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 0 0.15rem;
    min-width: 220px;
    max-width: 100%;
    color: inherit;
}

    .menu-edit-page__title-input:hover,
    .menu-edit-page__title-input:focus {
        border-bottom-color: var(--color-primary, #3d0e14);
        outline: none;
    }

.menu-edit-add {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.menu-sections {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.menu-section {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

    .menu-section h2 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

.menu-section__empty {
    color: #888;
    margin: 0;
}

.menu-section__items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.menu-section__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

    .menu-section__item-thumb {
        width: 48px;
        height: 48px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }

.menu-section__item-name {
    font-weight: 500;
    flex-grow: 1;
}

.menu-section__item-price {
    color: #888;
}

.menu-section__item-role {
    padding: 0.3rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
}

.menu-section--wines {
    opacity: 0.7;
}

.dish-picker-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
}

.dish-picker-modal {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.dish-picker-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

    .dish-picker-modal__header h2 {
        font-size: 1.1rem;
        margin: 0;
    }

.dish-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    overflow-y: auto;
    padding: 0.15rem;
}

.dish-picker-card {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-align: center;
}

    .dish-picker-card:hover {
        border-color: var(--color-primary, #701323);
    }

.dish-picker-card--selected {
    border-color: var(--color-primary, #701323);
    background: rgba(112, 19, 35, 0.06);
}

.dish-picker-card__check {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary, #701323);
    color: var(--color-on-primary, #fff);
    font-size: 0.7rem;
    line-height: 20px;
}

.dish-picker-card__image {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.dish-picker-card__image--placeholder {
    background: #f0f0f0;
}

/* Utilitaire générique pour toute vignette de plat sans image (liste, éditeur...) */
.thumb-placeholder {
    background: #f0f0f0;
    display: block;
}

.dish-picker-card__name {
    font-weight: 500;
    font-size: 0.9rem;
}

.dish-picker-card__type {
    color: #888;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.dish-picker-card__price {
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.dish-picker-modal__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Page Plats */
.plats-page__back {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
}

.plats-page__header h1 {
    margin: 0;
}

.plats-layout {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: flex-start;
}

.plats-list {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.plats-list__search {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.plats-list__items {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.plats-list__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
}

    .plats-list__item:hover {
        background: #f5f5f5;
    }

    .plats-list__item.active {
        background: var(--color-primary, #701323);
        color: var(--color-on-primary, #fff);
    }

        .plats-list__item.active .plats-list__item-desc {
            color: color-mix(in srgb, var(--color-on-primary, #fff) 75%, transparent);
        }

.plats-list__item-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.plats-list__item-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-grow: 1;
    min-width: 0;
}

.plats-list__item-name {
    font-weight: 500;
    flex-basis: 65%;
}

.plats-list__item-price {
    font-weight: 500;
}

.plats-list__item-desc {
    flex-basis: 100%;
    font-size: 0.8rem;
    color: #888;
}

.plats-edit__hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .plats-edit__hero img {
        width: 72px;
        height: 72px;
        border-radius: 8px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .plats-edit__hero h2 {
        margin: 0;
    }

.plats-edit {
    flex-grow: 1;
    min-width: 0;
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.plats-edit__field {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #555;
}

    .plats-edit__field textarea,
    .plats-edit__field input[type="number"],
    .plats-edit__field select {
        display: block;
        width: 100%;
        margin-top: 0.35rem;
        padding: 0.5rem;
        border: 1px solid #ddd;
        border-radius: 6px;
    }

.plats-edit__price-input {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .plats-edit__price-input input {
        width: 100px;
    }

.plats-edit__row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .plats-edit__row .plats-edit__field {
        flex: 1;
        min-width: 160px;
    }

.plats-edit__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #555;
}

.plats-edit__profile {
    margin: 1.25rem 0;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
}

    .plats-edit__profile h3 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

.plats-edit__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

/* Profil d'accord : ligne libellé + 5 pastilles */
.rating-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.rating-row__label {
    font-size: 0.85rem;
    color: #555;
}

.rating-row__dots {
    display: flex;
    gap: 0.35rem;
}

.rating-row__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--color-primary, #701323);
    background: transparent;
    padding: 0;
    cursor: pointer;
}

    .rating-row__dot.filled {
        background: var(--color-primary, #701323);
    }

    .rating-row__dot:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

/* Page DishList (liste globale des plats) */
.dish-list-filters {
    margin: 1.25rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dish-list-filters__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #555;
}

    .dish-list-filters__field select,
    .dish-list-filters__field input {
        padding: 0.4rem 0.5rem;
        border: 1px solid #ddd;
        border-radius: 6px;
    }

.dish-list-filters__field--search input {
    min-width: 220px;
}

.dish-list-filters__checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #555;
    padding-bottom: 0.4rem;
}

.dish-list-table-wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

.dish-list-table {
    width: 100%;
    border-collapse: collapse;
}

    .dish-list-table th {
        text-align: left;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #888;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #eee;
    }

    .dish-list-table td {
        padding: 0.6rem 1rem;
        border-bottom: 1px solid #f2f2f2;
        vertical-align: middle;
    }

    .dish-list-table tbody tr {
        cursor: pointer;
    }

        .dish-list-table tbody tr:hover {
            background: #f9f9f9;
        }

        .dish-list-table tbody tr.is-selected {
            background: rgba(112, 19, 35, 0.08);
        }

            .dish-list-table tbody tr.is-selected:hover {
                background: rgba(112, 19, 35, 0.12);
            }

.dish-list-table__thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

.dish-list-table__empty {
    padding: 2rem;
    text-align: center;
    color: #888;
}

/* Toast de confirmation (page Menu) */
.toast-success {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border-left: 4px solid #1a7a3d;
    color: #1a1a1a;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    animation: toast-success-in 0.25s ease-out;
}

.toast-success__icon {
    color: #1a7a3d;
    font-weight: 700;
}

@keyframes toast-success-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .plats-layout {
        flex-direction: column;
    }

    .plats-list {
        width: 100%;
    }
}

.dashboard-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-page__header h1 {
    margin-bottom: 0.25rem;
}

.dashboard-page__header p {
    color: #888;
    margin-bottom: 0;
}

.dashboard-page__period {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dashboard-kpi-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dashboard-kpi-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.dashboard-kpi-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.dashboard-kpi-card__label {
    color: #888;
    font-size: 0.85rem;
}

.dashboard-kpi-card__icon {
    color: var(--color-primary, #701323);
    flex-shrink: 0;
}

.dashboard-kpi-card__delta {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-kpi-card__delta--positive {
    color: #1a7a3d;
}

.dashboard-kpi-card__delta--negative {
    color: #b3261e;
}

.dashboard-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
}

.dashboard-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.dashboard-panel {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dashboard-panel h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.dashboard-panel__chart {
    position: relative;
    height: 300px;
}

.dashboard-panel-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-empty {
    color: #888;
    margin-bottom: 0;
}

.dashboard-today-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .dashboard-today-list li {
        display: flex;
        align-items: baseline;
        gap: 0.6rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }

        .dashboard-today-list li:last-child {
            border-bottom: none;
        }

.dashboard-today-list__value {
    font-weight: 700;
    min-width: 2ch;
}

.dashboard-top-pairings {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .dashboard-top-pairings li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }

        .dashboard-top-pairings li:last-child {
            border-bottom: none;
        }

.dashboard-top-pairings__dish {
    font-weight: 500;
}

.dashboard-top-pairings__wine {
    color: #888;
    font-size: 0.85rem;
}

.dashboard-top-pairings__score {
    font-weight: 700;
    color: var(--color-primary, #701323);
    white-space: nowrap;
}

.dashboard-wine-of-month {
    background: var(--color-primary, #3d0e14);
    color: var(--color-on-primary, #fff);
    border-radius: 10px;
    padding: 1.25rem;
}

.dashboard-wine-of-month__eyebrow {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.dashboard-wine-of-month h3 {
    margin: 0.5rem 0 0.15rem;
    font-size: 1.2rem;
}

.dashboard-wine-of-month__producer {
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.dashboard-wine-of-month__tagline {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.dashboard-wine-of-month__stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid color-mix(in srgb, var(--color-on-primary, #fff) 20%, transparent);
    padding-top: 0.75rem;
}

    .dashboard-wine-of-month__stats > div {
        display: flex;
        justify-content: space-between;
    }

    .dashboard-wine-of-month__stats span {
        opacity: 0.8;
    }

@media (max-width: 991.98px) {
    .dashboard-content {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
    }
}

/* Page Client (Administrator) et ses popups : tous les champs de formulaire (y compris ceux sans
   type="text" explicite, donc non couverts par la règle générique appearance-form__row-control
   input[type="text"]) partagent la même largeur, réduite sur mobile.
   Les champs de la page elle-même (dans .appearance-form) visent la moitié de la largeur du
   navigateur ; ceux des popups (dans .dish-picker-modal) restent à la moitié de la largeur de la
   modale, qui est déjà volontairement étroite. */
.client-page .appearance-form {
    max-width: none;
}

.client-page .appearance-form .appearance-form__row-control input:not([type="checkbox"]),
.client-page .appearance-form .appearance-form__row-control select,
.client-page .appearance-form .appearance-form__row-control textarea {
    width: 50vw;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.client-page .dish-picker-modal .appearance-form__row-control input:not([type="checkbox"]),
.client-page .dish-picker-modal .appearance-form__row-control select,
.client-page .dish-picker-modal .appearance-form__row-control textarea {
    width: 50%;
    box-sizing: border-box;
    padding: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

@media (max-width: 575.98px) {
    .client-page .appearance-form .appearance-form__row-control input:not([type="checkbox"]),
    .client-page .appearance-form .appearance-form__row-control select,
    .client-page .appearance-form .appearance-form__row-control textarea,
    .client-page .dish-picker-modal .appearance-form__row-control input:not([type="checkbox"]),
    .client-page .dish-picker-modal .appearance-form__row-control select,
    .client-page .dish-picker-modal .appearance-form__row-control textarea {
        width: 100%;
    }
}

/* ---- Page « Accords IA » (Intelligence.razor) : tableau sur ordinateur, cartes et panneau plein écran
   sur téléphone. Les couleurs de marque viennent des variables du thème (--color-primary...). ---- */

.pairings-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pairings-page__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

    .pairings-page__header h1 {
        margin: 0 0 0.35rem;
    }

    .pairings-page__header p {
        margin: 0;
        max-width: 760px;
        color: #5f5458;
        line-height: 1.5;
    }

    .pairings-page__header .btn-primary-brand:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.pairings-page__empty {
    color: #6b6064;
}

.pairings-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 760px;
}

    .pairings-stats > div {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .pairings-stats strong {
        font-size: 1.35rem;
    }

    .pairings-stats span {
        font-size: 0.75rem;
        color: #6b6064;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

.pairings-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem;
}

.pairings-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #6b6064;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

    .pairings-field input,
    .pairings-field select {
        padding: 0.6rem 0.75rem;
        border: 1px solid #ddd3d6;
        border-radius: 6px;
        background: #fff;
        color: #2a2125;
        font: inherit;
        font-size: 0.95rem;
        text-transform: none;
        letter-spacing: 0;
    }

/* Liste des plats (ordinateur) */
.pairings-dishes {
    flex: 1 1 260px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.pairings-dishes__group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pairings-dishes__category {
    padding: 0.5rem 0.5rem 0.25rem;
    font-size: 0.75rem;
    color: #6b6064;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pairings-dish {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.5rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .pairings-dish:hover {
        background: #f7f2f3;
    }

    .pairings-dish.is-selected {
        background: rgba(112, 19, 35, 0.09);
        box-shadow: inset 3px 0 0 var(--color-primary, #701323);
    }

.pairings-dish__info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pairings-dish__name {
    font-weight: 600;
}

.pairings-dish__meta {
    font-size: 0.8rem;
    color: #6b6064;
}

/* Choix du plat en liste déroulante (téléphone seulement) */
.pairings-dish-select {
    display: none;
}

/* Accords du plat */
.pairings-panel {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.pairings-panel__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

    .pairings-panel__header h2 {
        margin: 0 0 0.15rem;
        font-size: 1.25rem;
    }

    .pairings-panel__header span {
        color: #6b6064;
    }

.pairings-panel__hint {
    font-size: 0.8rem;
}

.pairings-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pairings-chip {
    flex: none;
    min-height: 36px;
    padding: 0.45rem 0.9rem;
    border: 1px solid #ddd3d6;
    border-radius: 999px;
    background: #fff;
    color: #2a2125;
    font: inherit;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
}

    .pairings-chip.is-active {
        border-color: var(--color-primary, #701323);
        background: var(--color-primary, #701323);
        color: var(--color-on-primary, #fff);
    }

/* Ordinateur : une grille qui se lit comme un tableau */
.pairings-list__head,
.pairings-row {
    display: grid;
    grid-template-columns: minmax(0, 26fr) minmax(0, 17fr) minmax(0, 47fr) 96px;
    gap: 1rem;
    align-items: start;
    padding: 0.75rem;
    border-bottom: 1px solid #f2eeef;
}

.pairings-list__head {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom-color: #eee;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b6064;
    text-transform: uppercase;
}

.pairings-row.is-editing {
    background: #fbf6f7;
}

.pairings-row__wine {
    display: flex;
    gap: 0.6rem;
}

    .pairings-row__wine > span:last-child {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
        min-width: 0;
    }

.pairings-row__name {
    font-weight: 600;
}

.pairings-row__meta {
    font-size: 0.8rem;
    color: #6b6064;
}

.pairings-dot {
    flex: none;
    width: 12px;
    height: 12px;
    margin-top: 0.3rem;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
    background: #b8a9ad;
}

.pairings-dot--red { background: #7a1f2b; }
.pairings-dot--white { background: #d9c27a; }
.pairings-dot--rose { background: #e3a1a8; }
.pairings-dot--orange { background: #d98c3a; }

.pairings-row__score {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pairings-row__score-value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
}

    .pairings-row__score-value strong {
        font-size: 1.15rem;
    }

    .pairings-row__score-value span {
        font-size: 0.75rem;
        color: #6b6064;
    }

.pairings-bar {
    display: block;
    width: 120px;
    max-width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #efe7e9;
}

    .pairings-bar > span {
        display: block;
        height: 100%;
        border-radius: 3px;
        background: var(--color-primary, #701323);
    }

        .pairings-bar > span.is-corrected {
            background: var(--color-secondary, #c99a42);
        }

.pairings-row__pitch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.45;
}

.pairings-row__no-pitch {
    color: #6b6064;
    font-style: italic;
}

.pairings-badge {
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: #f3eff0;
    color: #6b6064;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.pairings-badge--ai {
    background: #eef0f3;
    color: #4b5563;
}

.pairings-badge--manager {
    background: #f6ecd8;
    color: #7a5c17;
}

.pairings-row__actions {
    text-align: right;
}

.pairings-edit-button {
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border: 1px solid #ddd3d6;
    border-radius: 6px;
    background: #fff;
    color: var(--color-primary, #701323);
    font: inherit;
    cursor: pointer;
}

    .pairings-edit-button:disabled {
        opacity: 0.5;
        cursor: default;
    }

.pairings-more {
    align-self: center;
    min-height: 44px;
    border: none;
    background: none;
    color: var(--color-primary, #701323);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* Modification d'un accord : dépliée sous le vin (ordinateur) */
.pairings-editor {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0.75rem 1rem;
    padding: 1rem;
    border: 1px solid #e7d9dd;
    border-radius: 8px;
    background: #fff;
}

.pairings-editor__top {
    display: none;
}

.pairings-editor__body {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.pairings-editor__score,
.pairings-editor__pitch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.pairings-editor__score {
    flex: 1 1 200px;
    max-width: 240px;
}

.pairings-editor__pitch {
    flex: 999 1 380px;
    min-width: 0;
}

    .pairings-editor__score label,
    .pairings-editor__pitch label {
        font-size: 0.75rem;
        color: #6b6064;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .pairings-editor__score input {
        width: 96px;
        padding: 0.5rem 0.6rem;
        border: 1px solid #c9b8bd;
        border-radius: 6px;
        font: inherit;
        font-size: 1.15rem;
        font-weight: 600;
    }

    .pairings-editor__pitch textarea {
        align-self: stretch;
        padding: 0.6rem 0.75rem;
        border: 1px solid #c9b8bd;
        border-radius: 6px;
        font: inherit;
        line-height: 1.5;
        resize: vertical;
    }

.pairings-editor__counter {
    align-self: flex-end;
    font-size: 0.8rem;
    color: #6b6064;
}

.pairings-editor__reference {
    font-size: 0.85rem;
    color: #5f5458;
    line-height: 1.45;
}

.pairings-editor__error {
    margin: 0;
}

.pairings-editor__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pairings-editor__cancel {
    min-height: 40px;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd3d6;
    border-radius: 6px;
    background: #fff;
    color: #2a2125;
    font: inherit;
    cursor: pointer;
}

/* Téléphone : liste déroulante des plats, cartes, et modification en plein écran */
@media (max-width: 767.98px) {
    .pairings-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pairings-dishes {
        display: none;
    }

    .pairings-dish-select {
        display: flex;
        flex: 1 1 100%;
    }

        .pairings-dish-select select {
            min-height: 48px;
            font-size: 1rem;
            font-weight: 600;
        }

    .pairings-panel {
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .pairings-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .pairings-list {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .pairings-list__head {
        display: none;
    }

    .pairings-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "wine score"
            "pitch pitch"
            "actions actions";
        gap: 0.6rem;
        padding: 0.9rem;
        border: none;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .pairings-row__wine { grid-area: wine; }
    .pairings-row__score { grid-area: score; align-items: flex-end; }
    .pairings-row__pitch { grid-area: pitch; }
    .pairings-row__actions { grid-area: actions; }

    .pairings-edit-button {
        min-height: 44px;
    }

    .pairings-editor {
        position: fixed;
        inset: 0;
        z-index: 1050;
        margin: 0;
        padding: 0;
        gap: 0;
        border: none;
        border-radius: 0;
        background: var(--color-background, #faf6f0);
    }

    .pairings-editor__top {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        min-height: 56px;
        padding: 0.5rem;
        border-bottom: 1px solid #eee5e7;
        background: #fff;
    }

        .pairings-editor__top > span {
            display: flex;
            flex-direction: column;
        }

            .pairings-editor__top > span > span {
                font-size: 0.8rem;
                color: #6b6064;
            }

    .pairings-editor__back {
        width: 44px;
        height: 44px;
        border: none;
        background: none;
        font-size: 1.75rem;
        line-height: 1;
        cursor: pointer;
    }

    .pairings-editor__body {
        flex: 1;
        overflow-y: auto;
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem 1rem;
    }

    /* Empilés : la base flexible de l'ordinateur deviendrait une hauteur. */
    .pairings-editor__score,
    .pairings-editor__pitch {
        flex: none;
        max-width: none;
    }

    .pairings-editor__pitch textarea {
        min-height: 9rem;
        font-size: 1rem;
    }

    .pairings-editor__error {
        padding: 0 1rem;
    }

    .pairings-editor__actions {
        flex-wrap: nowrap;
        padding: 0.75rem 1rem 1.25rem;
        border-top: 1px solid #eee5e7;
        background: #fff;
    }

        .pairings-editor__actions > * {
            flex: 1;
            min-height: 48px;
        }

        .pairings-editor__actions > .btn-primary-brand {
            flex: 2;
        }
}

.admin-dashboard__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-dashboard__kpis {
    margin-bottom: 1rem;
}

.admin-dashboard__detail {
    margin: 0.75rem 0 0;
    color: #888;
    font-size: 0.8rem;
}

    .admin-dashboard__detail + .dashboard-kpi-card__delta,
    .admin-dashboard__detail + .admin-dashboard__detail {
        margin-top: 0.25rem;
    }

/* Widget « Abonnements en cours » du dashboard admin : 4e carte de la rangée des KPI, camembert compact +
   légende-tableau (valeurs et parts). Sur grand écran la rangée tient en une ligne, le widget un peu plus large ;
   en dessous, la grille auto-fit le renvoie à la ligne. */
@media (min-width: 1200px) {
    .admin-dashboard__kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr);
    }
}

.admin-dashboard__subscriptions {
    --chart-surface: #fff;
}

.subscription-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.subscription-share__chart {
    position: relative;
    width: 120px;
    height: 120px;
    flex: 0 0 auto;
}

.subscription-share__legend {
    flex: 1 1 auto;
    min-width: 0;
    border-collapse: collapse;
    font-size: 0.8rem;
}

    .subscription-share__legend th {
        color: #888;
        font-weight: 500;
        font-size: 0.75rem;
        text-align: left;
        padding: 0 0.5rem 0.25rem 0;
    }

    .subscription-share__legend td {
        padding: 0.2rem 0.5rem 0.2rem 0;
        border-top: 1px solid #f0efed;
    }

    .subscription-share__legend td:first-child {
        overflow-wrap: anywhere;
    }

    .subscription-share__legend td:not(:first-child),
    .subscription-share__legend th:not(:first-child) {
        text-align: right;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

.subscription-share__swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 0.4rem;
}

/* Page de paiement publique (/payment/{jeton}) : sans connexion, palette neutre comme la connexion. */
.payment-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    background: #f5f5f5;
}

.payment-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

    .payment-card h1 {
        font-size: 1.4rem;
        margin: 0;
    }

.payment-card__logo {
    align-self: center;
    height: 96px;
    color: #701323;
}

.payment-card__muted {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}

.payment-card__facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    margin: 0.5rem 0;
}

    .payment-card__facts dt {
        font-weight: 500;
        color: #555;
    }

    .payment-card__facts dd {
        margin: 0;
        text-align: right;
    }

.payment-card__amount {
    font-size: 1.1rem;
    margin: 0;
}

.payment-card__status {
    background: #f3f0e8;
    padding: 0.75rem;
    border-radius: 6px;
    margin: 0;
}

.payment-card__status--paid {
    background: #e7f4ec;
    color: #1a7a3d;
    font-weight: 600;
}

.payment-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-card__pay {
    padding: 0.7rem;
    background: #3d0e14;
    color: #fff;
    border: 1px solid #3d0e14;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.payment-card__pay--secondary {
    background: #fff;
    color: #3d0e14;
}

    .payment-card__pay:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

.invoice-payment-link {
    word-break: break-all;
    font-size: 0.85rem;
}
