/* =========================================================
   TIP TOP - OPERATEURS
   ========================================================= */

#form-send-tip-top-details {
    --tip-top-primary: #6f42c1;
    --tip-top-primary-soft: rgba(111, 66, 193, 0.07);
    --tip-top-primary-border: rgba(111, 66, 193, 0.25);

    --tip-top-text: #414345;
    --tip-top-muted: #8e9a9d;
    --tip-top-border: #e5e9ec;
    --tip-top-surface: #ffffff;
}


/* ---------------------------------------------------------
   Bloc opérateurs
   --------------------------------------------------------- */

#form-send-tip-top-details .list-op {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}


/* On neutralise l'apparence Card Bootstrap existante */

#form-send-tip-top-details .list-op > .card {
    border: 0;
    box-shadow: none;
    background: transparent;
}

#form-send-tip-top-details .list-op .card-header {
    padding: 0;
    margin: 0 0 0.85rem;

    background: transparent;
    border: 0;

    color: var(--tip-top-text);

    font-size: 1.05rem;
    font-weight: 600;
}

#form-send-tip-top-details .list-op .card-body {
    padding: 0;
}


/* ---------------------------------------------------------
   Grille responsive
   --------------------------------------------------------- */

#tip-top-operators {
    display: grid;

    grid-template-columns:
    repeat(5, minmax(0, 1fr));

    gap: 12px;

    margin: 0;
}


/* Annule le comportement Bootstrap .row */

#tip-top-operators::before,
#tip-top-operators::after {
    display: none;
}


/* ---------------------------------------------------------
   Élément opérateur
   --------------------------------------------------------- */

#tip-top-operators .tip-top-operator-item {
    min-width: 0;
    padding: 0;
    margin: 0;
}


/* ---------------------------------------------------------
   Carte
   --------------------------------------------------------- */

#tip-top-operators .tip-top-operator-card {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 75px;

    padding: 0;
    margin: 0;

    background: var(--tip-top-surface);

    border: 1px solid var(--tip-top-border);
    border-radius: 6px;

    overflow: hidden;

    transition:
        border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease,
        transform 0.15s ease;
}


/* ---------------------------------------------------------
   Radio

   Elle reste dans le DOM et conserve son fonctionnement,
   mais la sélection est représentée par la carte.
   --------------------------------------------------------- */

#tip-top-operators .tip-top-operator-card > .form-check-input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


/* ---------------------------------------------------------
   Label cliquable
   --------------------------------------------------------- */

#tip-top-operators .tip-top-operator-label {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;

    cursor: pointer;
}


/* ---------------------------------------------------------
   Contenu
   --------------------------------------------------------- */

#tip-top-operators .tip-top-operator-body {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 75px;

    padding: 8px;
}


/* ---------------------------------------------------------
   Zone logo
   --------------------------------------------------------- */

#tip-top-operators .tip-top-operator-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 42px;

    margin-bottom: 6px;
}

#tip-top-operators .tip-top-operator-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 72px;
    max-height: 42px;

    object-fit: contain;
}


/* ---------------------------------------------------------
   Nom
   --------------------------------------------------------- */

#tip-top-operators .tip-top-operator-name {
    display: block;

    width: 100%;

    overflow: hidden;

    color: var(--tip-top-text);

    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;

    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   Check
   --------------------------------------------------------- */

#tip-top-operators .tip-top-operator-selected {
    position: absolute;

    top: 7px;
    right: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    color: #ffffff;
    background: var(--tip-top-primary);

    border-radius: 50%;

    font-size: 0.62rem;

    opacity: 0;

    transform: scale(0.75);

    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}


/* ---------------------------------------------------------
   Sélection
   --------------------------------------------------------- */

#tip-top-operators
    .tip-top-operator-card:has(.form-check-input:checked) {
    border-color: var(--tip-top-primary);

    background:
        linear-gradient(
            135deg,
        rgba(111, 66, 193, 0.055),
        rgba(111, 66, 193, 0.015)
);

    box-shadow:
    0 5px 16px rgba(111, 66, 193, 0.10);
}

#tip-top-operators
    .tip-top-operator-card:has(.form-check-input:checked)
.tip-top-operator-selected {
    opacity: 1;
    transform: scale(1);
}


/* ---------------------------------------------------------
   Hover
   --------------------------------------------------------- */

@media (hover: hover) {

    #tip-top-operators .tip-top-operator-card:hover {
        border-color: var(--tip-top-primary-border);

        box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.055);

        transform: translateY(-1px);
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */


/* 4 colonnes */

@media (max-width: 1199.98px) {

    #tip-top-operators {
        grid-template-columns:
        repeat(4, minmax(0, 1fr));
    }

}


/* 3 colonnes */

@media (max-width: 991.98px) {

    #tip-top-operators {
        grid-template-columns:
        repeat(3, minmax(0, 1fr));
    }

}


/* Mobile : 2 colonnes */

@media (max-width: 575.98px) {

    #form-send-tip-top-details .list-op {
        margin-top: 1.25rem;
        margin-bottom: 1.75rem;
    }

    #tip-top-operators {
        grid-template-columns:
        repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    #tip-top-operators .tip-top-operator-card,
    #tip-top-operators .tip-top-operator-body {
        min-height: 96px;
    }

    #tip-top-operators .tip-top-operator-body {
        padding: 9px 7px 8px;
    }

    #tip-top-operators .tip-top-operator-logo {
        height: 46px;
        margin-bottom: 6px;
    }

    #tip-top-operators .tip-top-operator-logo img {
        max-width: 76px;
        max-height: 42px;
    }

    #tip-top-operators .tip-top-operator-name {
        font-size: 0.78rem;
    }

}


/* Très petits écrans */

@media (max-width: 360px) {

    #tip-top-operators {
        gap: 10px;
    }

    #tip-top-operators .tip-top-operator-logo img {
        max-width: 66px;
    }

}

/* =========================================================
   TIP TOP - OFFRES
   ========================================================= */


/* ---------------------------------------------------------
   Titre
   --------------------------------------------------------- */

#form-send-tip-top-details #accordionExample > h2 {
    margin-bottom: 1rem !important;

    color: var(--tip-top-text);

    font-size: 1.25rem !important;
    font-weight: 600 !important;
}


/* ---------------------------------------------------------
   Types d'offres / Accordéon
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-offer-type {
    margin-bottom: 10px;

    background: transparent;

    border: 0;
}


/*
 * Neutralisation du gros accordion violet du thème.
 */

#form-send-tip-top-details
.tip-top-offer-type
.tip-top-offer-type-button {

    min-height: 44px;

    padding-top: 0.7rem;
    padding-bottom: 0.7rem;

    color: var(--tip-top-text);

    background: #ffffff;

    border: 1px solid var(--tip-top-border);
    border-radius: 12px;

    box-shadow: none;

    font-size: 0.95rem;
    font-weight: 600;

    transition:
            border-color 0.15s ease,
            background-color 0.15s ease;
}


/* Ouvert */

#form-send-tip-top-details
.tip-top-offer-type
.tip-top-offer-type-button:not(.collapsed) {

    color: var(--tip-top-primary);

    background: var(--tip-top-primary-soft);

    border-color: var(--tip-top-primary-border);

    box-shadow: none;
}


/* Chevron */

#form-send-tip-top-details
.tip-top-offer-type
.tip-top-offer-type-button::after {

    left: 18px;

    width: 8px;
    height: 8px;

    color: currentColor;
}


/* ---------------------------------------------------------
   Corps de l'accordéon
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-offer-type-body {
    padding: 10px 0 4px !important;
}


/* ---------------------------------------------------------
   Liste
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-offers-list {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


/* ---------------------------------------------------------
   Offre
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-offer-option {
    width: 100% !important;
    min-height: 52px;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--tip-top-text);

    background: #ffffff;

    border: 1px solid var(--tip-top-border) !important;
    border-radius: 12px !important;

    overflow: hidden;

    transition:
            border-color 0.15s ease,
            background-color 0.15s ease,
            box-shadow 0.15s ease,
            transform 0.15s ease;
}


/*
 * Supprime les effets hérités de .mtu-product
 * et .send-bundle-option
 */

#form-send-tip-top-details .tip-top-offer-option.mtu-product {
    gap: 0;

    padding-bottom: 0;

    margin: 0;
}


/* ---------------------------------------------------------
   Contenu principal
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-offer-content {
    display: grid;

    grid-template-columns:
        minmax(90px, 0.8fr)
        minmax(150px, 1.6fr)
        minmax(130px, 1fr);

    align-items: center;

    width: 100%;
    min-height: 50px;

    padding: 8px 14px;

    gap: 12px;
}


/* ---------------------------------------------------------
   Prix payé
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-offer-price {
    display: flex;
    align-items: baseline;

    gap: 5px;

    min-width: 0;

    color: var(--tip-top-primary);

    font-weight: 700;
}

#form-send-tip-top-details .tip-top-offer-price-value {
    font-size: 1rem;
}

#form-send-tip-top-details .tip-top-offer-currency {
    font-size: 0.82rem;
}


/* ---------------------------------------------------------
   Offre / volume / durée
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-offer-details {
    min-width: 0;

    text-align: center;
}

#form-send-tip-top-details .tip-top-offer-main-value {
    color: var(--tip-top-text);

    font-size: 0.9rem;
    font-weight: 600;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   Valeur destinataire
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-offer-recipient {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    min-width: 0;

    gap: 5px;

    color: var(--tip-top-text);

    font-weight: 600;
}

#form-send-tip-top-details .tip-top-offer-recipient-value {
    font-size: 0.9rem;
}

#form-send-tip-top-details .tip-top-offer-recipient-currency {
    color: var(--tip-top-muted);

    font-size: 0.75rem;
    font-weight: 600;
}


/* ---------------------------------------------------------
   Check sélection
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-offer-check {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 20px;
    height: 20px;

    margin-left: 4px;

    color: #ffffff;

    background: var(--tip-top-primary);

    border-radius: 50%;

    font-size: 0.6rem;

    opacity: 0;

    transform: scale(0.75);

    transition:
            opacity 0.15s ease,
            transform 0.15s ease;
}


/* ---------------------------------------------------------
   Sélection
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-offer-option.active {
    color: var(--tip-top-text);

    background:
            linear-gradient(
                    135deg,
                    rgba(111, 66, 193, 0.055),
                    rgba(111, 66, 193, 0.015)
            ) !important;

    border-color: var(--tip-top-primary) !important;

    box-shadow:
            0 5px 18px rgba(111, 66, 193, 0.09);
}

#form-send-tip-top-details
.tip-top-offer-option.active
.tip-top-offer-check {

    opacity: 1;
    transform: scale(1);
}


/* ---------------------------------------------------------
   Hover
   --------------------------------------------------------- */

@media (hover: hover) {

    #form-send-tip-top-details
    .tip-top-offer-option:hover {

        background: rgba(111, 66, 193, 0.025);

        border-color:
                var(--tip-top-primary-border) !important;

        transform: translateY(-1px);
    }
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 767.98px) {

    #form-send-tip-top-details .tip-top-offer-content {
        grid-template-columns:
            minmax(72px, 0.75fr)
            minmax(120px, 1.4fr)
            minmax(105px, 1fr);

        padding: 10px 12px;

        gap: 7px;
    }

    #form-send-tip-top-details
    .tip-top-offer-main-value,

    #form-send-tip-top-details
    .tip-top-offer-recipient-value {

        font-size: 0.82rem;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    #form-send-tip-top-details
    #accordionExample > h2 {

        margin-bottom: 0.85rem !important;

        font-size: 1.1rem !important;
    }


    #form-send-tip-top-details
    .tip-top-offer-type
    .tip-top-offer-type-button {

        min-height: 50px;

        padding:
                0.75rem
                0.85rem
                0.75rem
                2.5rem;

        font-size: 0.9rem;
    }


    /*
     * Mobile :
     *
     *      3 GB · 7 jours
     *      4,14 €       31 000 GNF
     */

    #form-send-tip-top-details .tip-top-offer-content {
        display: grid;

        grid-template-columns:
            1fr
            auto;

        grid-template-areas:
            "details details"
            "price recipient";

        min-height: 68px;

        padding: 9px 12px;

        column-gap: 10px;
        row-gap: 4px;
    }


    #form-send-tip-top-details
    .tip-top-offer-details {

        grid-area: details;

        text-align: left;
    }


    #form-send-tip-top-details
    .tip-top-offer-price {

        grid-area: price;
    }


    #form-send-tip-top-details
    .tip-top-offer-recipient {

        grid-area: recipient;
    }


    #form-send-tip-top-details
    .tip-top-offer-main-value {

        font-size: 0.85rem;
    }


    #form-send-tip-top-details
    .tip-top-offer-price-value {

        font-size: 0.92rem;
    }


    #form-send-tip-top-details
    .tip-top-offer-recipient-value {

        font-size: 0.82rem;
    }


    #form-send-tip-top-details
    .tip-top-offer-recipient-currency {

        font-size: 0.7rem;
    }

}


/* =========================================================
   TIP TOP - HEADER & DESTINATAIRE
   ========================================================= */


/* ---------------------------------------------------------
   En-tête
   --------------------------------------------------------- */

#form-send-tip-top-details {
    --tip-top-primary: #6f42c1;
    --tip-top-primary-soft: rgba(111, 66, 193, 0.07);
    --tip-top-primary-border: rgba(111, 66, 193, 0.22);

    --tip-top-text: #414345;
    --tip-top-muted: #8e9a9d;
    --tip-top-border: #e5e9ec;
    --tip-top-surface: #ffffff;
}


.tip-top-page-heading {
    margin-bottom: 1.75rem;
}

.tip-top-page-heading #tip-top-header {
    margin: 0;

    color: var(--tip-top-text);

    font-size: 1.45rem !important;
    font-weight: 600 !important;

    line-height: 1.3;
}

.tip-top-page-subtitle {
    margin-top: 4px;

    color: var(--tip-top-muted);

    font-size: 0.9rem;
    font-weight: 400;
}


/* ---------------------------------------------------------
   Section destinataire
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-recipient-section {
    margin-bottom: 1.75rem;
}


#form-send-tip-top-details .tip-top-section-label {
    margin-bottom: 8px;

    color: var(--tip-top-text);

    font-size: 0.95rem;
    font-weight: 600;
}


/* ---------------------------------------------------------
   Carte destinataire
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-recipient-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 62px;

    padding: 10px 12px 10px 14px;

    background: #ffffff;

    border: 1px solid var(--tip-top-border);
    border-radius: 12px;

    box-shadow:
            0 5px 16px rgba(0, 17, 51, 0.035);
}


/* ---------------------------------------------------------
   Partie gauche
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-recipient-main {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 12px;
}


/* Drapeau */

#form-send-tip-top-details .tip-top-recipient-flag {
    flex: 0 0 auto;

    width: 36px;
    height: 36px;

    background-size: cover;
}


/* Numéro */

#form-send-tip-top-details .tip-top-recipient-number {
    display: flex;
    align-items: baseline;

    min-width: 0;

    color: var(--tip-top-text);

    font-size: 1rem;
    font-weight: 600;

    line-height: 1.2;
}


#form-send-tip-top-details
.tip-top-recipient-number
.calling-code-unified {

    margin: 0 7px 0 0;
    padding: 0;

    color: var(--tip-top-muted) !important;

    font-weight: 500;
}


/* ---------------------------------------------------------
   Bouton modifier
   --------------------------------------------------------- */

#form-send-tip-top-details .tip-top-recipient-edit {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    color: var(--tip-top-primary);

    background: var(--tip-top-primary-soft);

    border: 0;
    border-radius: 9px;

    transition:
            background-color 0.15s ease,
            transform 0.15s ease;
}


@media (hover: hover) {

    #form-send-tip-top-details
    .tip-top-recipient-edit:hover {

        background:
                rgba(111, 66, 193, 0.12);

        transform: translateY(-1px);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .tip-top-page-heading {
        margin-bottom: 1.4rem;
    }

    .tip-top-page-heading #tip-top-header {
        font-size: 1.25rem !important;
    }

    .tip-top-page-subtitle {
        font-size: 0.82rem;
    }


    #form-send-tip-top-details
    .tip-top-recipient-section {

        margin-bottom: 1.4rem;
    }


    #form-send-tip-top-details
    .tip-top-recipient-card {

        min-height: 58px;

        padding:
                9px
                10px
                9px
                12px;
    }


    #form-send-tip-top-details
    .tip-top-recipient-main {

        gap: 9px;
    }


    #form-send-tip-top-details
    .tip-top-recipient-flag {

        width: 32px;
        height: 32px;
    }


    #form-send-tip-top-details
    .tip-top-recipient-number {

        font-size: 0.92rem;
    }


    #form-send-tip-top-details
    .tip-top-recipient-edit {

        width: 32px;
        height: 32px;

        border-radius: 8px;
    }

}

/* =========================================================
   TIP TOP - CONFIRMATION
   ========================================================= */

#tip-top-confirm-pay,
.tip-top-confirm-offer {
    --tip-confirm-primary: #6f42c1;
    --tip-confirm-primary-soft: rgba(111, 66, 193, 0.07);
    --tip-confirm-primary-border: rgba(111, 66, 193, 0.22);

    --tip-confirm-text: #414345;
    --tip-confirm-muted: #8e9a9d;
    --tip-confirm-border: #e5e9ec;
}


/* =========================================================
   TITRE
   ========================================================= */

.tip-top-confirm-heading {
    margin-bottom: 1.75rem;
}

.tip-top-confirm-title {
    margin: 0;

    color: #414345;

    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.3;
}

.tip-top-confirm-subtitle {
    margin-top: 4px;

    color: #8e9a9d;

    font-size: 0.9rem;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.tip-top-confirm-section {
    margin-bottom: 1.4rem;
}

.tip-top-confirm-section-label {
    margin-bottom: 8px;

    color: #414345;

    font-size: 0.95rem;
    font-weight: 600;
}


/* =========================================================
   DESTINATAIRE
   ========================================================= */

.tip-top-confirm-recipient-card {
    display: flex;
    align-items: center;

    min-height: 62px;

    padding: 10px 14px;

    background: #ffffff;

    border: 1px solid #e5e9ec;
    border-radius: 12px;

    box-shadow:
            0 5px 16px rgba(0, 17, 51, 0.035);
}


.tip-top-confirm-recipient-main {
    display: flex;
    align-items: center;

    gap: 12px;
}


.tip-top-confirm-flag {
    flex: 0 0 auto;

    width: 36px;
    height: 36px;

    background-size: cover;
}


.tip-top-confirm-phone {
    display: flex;
    align-items: baseline;

    color: #414345;

    font-size: 1rem;
    font-weight: 600;
}


.tip-top-confirm-phone .calling-code-unified {
    margin: 0 7px 0 0;
    padding: 0;

    color: #8e9a9d !important;

    font-weight: 500;
}


/* =========================================================
   OPERATEUR
   ========================================================= */

.tip-top-confirm-operator-card {
    display: inline-flex;

    min-width: 110px;
    min-height: 82px;

    padding: 10px 14px;

    background: #ffffff;

    border: 1px solid #e5e9ec;
    border-radius: 12px;
}


.tip-top-confirm-operator-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 80px;
    min-height: 60px;
}


.tip-top-confirm-operator-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 80px;
    max-height: 55px;

    object-fit: contain;
}


.tip-top-confirm-operator-name {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #414345;

    font-size: 0.9rem;
    font-weight: 600;
}


/* =========================================================
   OFFRE
   ========================================================= */

.tip-top-confirm-offer {
    width: 100%;

    overflow: hidden;

    background:
            linear-gradient(
                    135deg,
                    rgba(111, 66, 193, 0.055),
                    rgba(111, 66, 193, 0.015)
            );

    border: 1px solid #6f42c1;
    border-radius: 12px;

    box-shadow:
            0 5px 18px rgba(111, 66, 193, 0.08);
}


.tip-top-confirm-offer-content {
    display: grid;

    grid-template-columns:
        minmax(90px, 0.8fr)
        minmax(150px, 1.6fr)
        minmax(130px, 1fr);

    align-items: center;

    min-height: 64px;

    padding: 10px 16px;

    gap: 12px;
}


/* Prix */

.tip-top-confirm-offer-price {
    display: flex;
    align-items: baseline;

    gap: 5px;

    color: #6f42c1;

    font-weight: 700;
}

.tip-top-confirm-offer-price-value {
    font-size: 1rem;
}

.tip-top-confirm-offer-price-currency {
    font-size: 0.82rem;
}


/* Détails */

.tip-top-confirm-offer-details {
    color: #414345;

    font-size: 0.9rem;
    font-weight: 600;

    text-align: center;
}


/* Montant reçu */

.tip-top-confirm-offer-recipient {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 5px;

    color: #414345;

    font-weight: 600;
}


.tip-top-confirm-offer-recipient-value {
    font-size: 0.9rem;
}


.tip-top-confirm-offer-recipient-currency {
    color: #8e9a9d;

    font-size: 0.75rem;
}


.tip-top-confirm-offer-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    margin-left: 4px;

    color: #ffffff;
    background: #6f42c1;

    border-radius: 50%;

    font-size: 0.6rem;
}


/* =========================================================
   BOUTON
   ========================================================= */

.tip-top-confirm-submit-wrapper {
    margin-top: 1.8rem;
}


#tip-top-confirm-pay.tip-top-confirm-pay {
    min-height: 52px;

    background: #6f42c1;
    border-color: #6f42c1;

    border-radius: 12px;

    font-weight: 600;

    box-shadow:
            0 10px 24px rgba(111, 66, 193, 0.18);
}


#tip-top-confirm-pay.tip-top-confirm-pay:hover {
    background: #6236b4;
    border-color: #6236b4;
}


#tip-top-confirm-pay.tip-top-confirm-pay:disabled {
    background: #d8cdec;
    border-color: #d8cdec;

    box-shadow: none;

    opacity: 1;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .tip-top-confirm-heading {
        margin-bottom: 1.4rem;
    }


    .tip-top-confirm-title {
        font-size: 1.25rem;
    }


    .tip-top-confirm-subtitle {
        font-size: 0.82rem;
    }


    .tip-top-confirm-section {
        margin-bottom: 1.2rem;
    }


    .tip-top-confirm-recipient-card {
        min-height: 58px;

        padding: 9px 12px;
    }


    .tip-top-confirm-flag {
        width: 32px;
        height: 32px;
    }


    .tip-top-confirm-phone {
        font-size: 0.92rem;
    }


    /*
     * Offre sur 2 lignes
     */

    .tip-top-confirm-offer-content {
        grid-template-columns:
            1fr
            auto;

        grid-template-areas:
            "details details"
            "price recipient";

        min-height: 68px;

        padding: 9px 12px;

        column-gap: 10px;
        row-gap: 4px;
    }


    .tip-top-confirm-offer-details {
        grid-area: details;

        text-align: left;

        font-size: 0.85rem;
    }


    .tip-top-confirm-offer-price {
        grid-area: price;
    }


    .tip-top-confirm-offer-recipient {
        grid-area: recipient;
    }


    .tip-top-confirm-submit-wrapper {
        margin-top: 1.4rem;
    }

}

/* =========================================================
   TIP TOP - STEPPER
   ========================================================= */

.widget-steps {
    --step-primary: #6f42c1;
    --step-primary-soft: rgba(111, 66, 193, 0.10);
    --step-border: #d9dde3;
    --step-text: #414345;
    --step-muted: #9aa2a8;

    margin-bottom: 0;
}


/* ---------------------------------------------------------
   Etape
   --------------------------------------------------------- */

.widget-steps .step {
    position: relative;

    padding-left: 0;
    padding-right: 0;
}


/* ---------------------------------------------------------
   Label
   --------------------------------------------------------- */

.widget-steps .step-name {
    margin-bottom: 10px;

    color: var(--step-muted);

    font-size: 0.9rem;
    font-weight: 500;
}


/* Terminée */

.widget-steps .step.complete .step-name {
    color: var(--step-text);
}


/* Active */

.widget-steps .step.active .step-name {
    color: var(--step-primary);

    font-weight: 600;
}


/* ---------------------------------------------------------
   Ligne
   --------------------------------------------------------- */

.widget-steps .progress {
    position: absolute;

    top: 42px;
    left: 0;

    width: 100%;
    height: 2px;

    margin: 0;

    overflow: visible;

    background: var(--step-border);

    border-radius: 0;
}


/*
 * Dernière étape :
 * pas de ligne après le dernier cercle.
 */

.widget-steps .step:last-child .progress {
    display: none;
}


/* Ligne déjà parcourue */

.widget-steps .step.complete .progress {
    background: var(--step-primary);
}


/*
 * Bootstrap peut avoir un .progress-bar à l'intérieur.
 * On ne lui laisse pas imposer son ancien vert.
 */

.widget-steps .progress .progress-bar {
    width: 100%;

    background: var(--step-primary);
}


/* ---------------------------------------------------------
   Cercle
   --------------------------------------------------------- */

.widget-steps .step-dot {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    margin: 0;

    background: #ffffff;

    border: 1.5px solid var(--step-border);
    border-radius: 50%;

    box-shadow: none;

    text-decoration: none;
}


/* ---------------------------------------------------------
   Etape terminée
   --------------------------------------------------------- */

.widget-steps .step.complete .step-dot {
    color: #ffffff;

    background: var(--step-primary);

    border-color: var(--step-primary);
}


/*
 * Check sans dépendre du vieux style vert.
 */

.widget-steps .step.complete .step-dot::before {
    content: "\f00c";

    font-family: "Font Awesome 5 Free";
    font-size: 0.78rem;
    font-weight: 900;

    color: #ffffff;
}


/* ---------------------------------------------------------
   Etape active
   --------------------------------------------------------- */

.widget-steps .step.active .step-dot {
    background: #ffffff;

    border-color: var(--step-primary);

    box-shadow:
            0 0 0 5px var(--step-primary-soft);
}


.widget-steps .step.active .step-dot::before {
    content: "";

    width: 10px;
    height: 10px;

    background: var(--step-primary);

    border-radius: 50%;
}


/* ---------------------------------------------------------
   Etape future
   --------------------------------------------------------- */

.widget-steps .step.disabled .step-dot {
    background: #ffffff;

    border-color: var(--step-border);
}


.widget-steps .step.disabled .step-name {
    color: var(--step-muted);
}


/* ---------------------------------------------------------
   Alignement
   --------------------------------------------------------- */

/*
 * Premier point à gauche
 */

.widget-steps .step:first-child .step-dot {
    margin-left: 0;
}


/*
 * Centre
 */

.widget-steps .step:not(:first-child):not(:last-child) {
    text-align: center;
}

.widget-steps
.step:not(:first-child):not(:last-child)
.step-dot {
    margin-left: auto;
    margin-right: auto;
}


/*
 * Dernier point à droite
 */

.widget-steps .step:last-child {
    text-align: right;
}

.widget-steps .step:last-child .step-dot {
    margin-left: auto;
}


/* =========================================================
   Réduction espace vertical de la page confirmation
   ========================================================= */

#content .row.mt-4.mb-5 {
    margin-bottom: 2rem !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    #content .row.mt-4.mb-5 {
        margin-top: 0.75rem !important;
        margin-bottom: 1.5rem !important;
    }


    .widget-steps .step-name {
        margin-bottom: 8px;

        font-size: 0.74rem;
    }


    .widget-steps .progress {
        top: 36px;
    }


    .widget-steps .step-dot {
        width: 28px;
        height: 28px;
    }


    .widget-steps .step.active .step-dot {
        box-shadow:
                0 0 0 4px var(--step-primary-soft);
    }


    .widget-steps
    .step.complete
    .step-dot::before {

        font-size: 0.68rem;
    }


    .widget-steps
    .step.active
    .step-dot::before {

        width: 8px;
        height: 8px;
    }

}

/* =========================================================
   TIP TOP - STEPPER CORRECTIF
   Ligne réellement alignée avec les cercles
   ========================================================= */

.widget-steps {
    --step-primary: #6f42c1;
    --step-primary-soft: rgba(111, 66, 193, 0.10);
    --step-border: #d9dde3;
    --step-text: #414345;
    --step-muted: #9aa2a8;

    position: relative;

    display: flex;
    align-items: flex-start;

    margin: 0;
}


/* ---------------------------------------------------------
   On abandonne les progress Bootstrap pour le visuel
   --------------------------------------------------------- */

.widget-steps .progress {
    display: none !important;
}


/* ---------------------------------------------------------
   Ligne générale
   --------------------------------------------------------- */

.widget-steps::before {
    content: "";

    position: absolute;

    /*
     * Centre du premier cercle
     * jusqu'au centre du dernier.
     */
    left: 16.6667%;
    right: 16.6667%;

    top: 51px;

    height: 2px;

    background: var(--step-border);

    z-index: 0;
}

/* =========================================================
   STEPPER - PROGRESSION DYNAMIQUE
   ========================================================= */

.widget-steps::after {
    content: "";

    position: absolute;

    left: 16.6667%;
    top: 47px;

    height: 2px;

    background: var(--step-primary);

    z-index: 0;

    transition: width 0.25s ease;

    width: 0;
}


/* Etape 2 : Confirmation */

.widget-steps:has(
    .step:nth-child(2).active
)::after {
    width: 33.3333%;
}


/* Etape 3 : Paiement */

.widget-steps:has(
    .step:nth-child(3).active
)::after {
    width: 66.6667%;
}

/* ---------------------------------------------------------
   Chaque étape
   --------------------------------------------------------- */

.widget-steps .step {
    position: relative;
    z-index: 1;

    flex: 1 1 0;

    padding: 0 !important;

    text-align: center;
}


/* ---------------------------------------------------------
   Labels
   --------------------------------------------------------- */

.widget-steps .step-name {
    min-height: 22px;

    margin: 0 0 10px;

    color: var(--step-muted);

    font-size: 0.9rem;
    font-weight: 500;

    line-height: 1.35;
}


.widget-steps .step.complete .step-name {
    color: var(--step-text);
}


.widget-steps .step.active .step-name {
    color: var(--step-primary);

    font-weight: 600;
}


/* ---------------------------------------------------------
   Cercles
   --------------------------------------------------------- */

.widget-steps .step-dot,
.widget-steps .step:first-child .step-dot,
.widget-steps .step:last-child .step-dot,
.widget-steps
.step:not(:first-child):not(:last-child)
.step-dot {

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    margin: 0 auto !important;

    background: #ffffff;

    border: 1.5px solid var(--step-border);
    border-radius: 50%;

    box-shadow: none;

    text-decoration: none;
}


/* ---------------------------------------------------------
   On neutralise les anciens symboles du thème
   --------------------------------------------------------- */

.widget-steps .step-dot::after {
    display: none !important;
    content: none !important;
}


/* ---------------------------------------------------------
   Etape terminée
   --------------------------------------------------------- */

.widget-steps .step.complete .step-dot {
    color: #ffffff;

    background: var(--step-primary);

    border-color: var(--step-primary);
}


.widget-steps .step.complete .step-dot::before {
    content: "\f00c";

    display: block;

    font-family: "Font Awesome 5 Free";
    font-size: 0.75rem;
    font-weight: 900;

    color: #ffffff;
}


/* ---------------------------------------------------------
   Etape active
   --------------------------------------------------------- */

.widget-steps .step.active .step-dot {
    background: #ffffff;

    border-color: var(--step-primary);

    box-shadow:
            0 0 0 5px var(--step-primary-soft);
}


.widget-steps .step.active .step-dot::before {
    content: "";

    display: block;

    width: 10px;
    height: 10px;

    background: var(--step-primary);

    border-radius: 50%;
}


/* ---------------------------------------------------------
   Etape à venir
   --------------------------------------------------------- */

.widget-steps .step.disabled .step-dot {
    background: #ffffff;

    border-color: var(--step-border);
}


.widget-steps .step.disabled .step-dot::before {
    display: none;
    content: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .widget-steps::before,
    .widget-steps::after {
        top: 43px;
    }


    .widget-steps .step-name {
        min-height: 19px;

        margin-bottom: 8px;

        font-size: 0.72rem;
    }


    .widget-steps .step-dot,
    .widget-steps .step:first-child .step-dot,
    .widget-steps .step:last-child .step-dot,
    .widget-steps
    .step:not(:first-child):not(:last-child)
    .step-dot {

        width: 28px;
        height: 28px;
    }


    .widget-steps .step.active .step-dot {
        box-shadow:
                0 0 0 4px var(--step-primary-soft);
    }


    .widget-steps .step.active .step-dot::before {
        width: 8px;
        height: 8px;
    }


    .widget-steps .step.complete .step-dot::before {
        font-size: 0.65rem;
    }

}

/* =========================================================
   STEPPER - RESET POSITIONNEMENT ANCIEN TEMPLATE
   ========================================================= */

.widget-steps .step-dot,
.widget-steps .step:first-child .step-dot,
.widget-steps .step:last-child .step-dot,
.widget-steps .step:not(:first-child):not(:last-child) .step-dot {

    position: relative !important;

    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;

    transform: none !important;

    margin: 0 auto !important;
}


/* La ligne passe exactement au centre des cercles */

.widget-steps::before,
.widget-steps::after {
    top: 45px;
}


/* Les anciennes barres Bootstrap restent neutralisées */

.widget-steps .progress {
    display: none !important;
}

/* =========================================================
   STEPPER - ETAPES TERMINEES
   ========================================================= */

.widget-steps .step.complete .step-dot {
    background: #6f42c1 !important;
    border-color: #6f42c1 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}


/* Supprime tout ancien contenu éventuel */

.widget-steps .step.complete .step-dot::before,
.widget-steps .step.complete .step-dot::after {
    display: none !important;
    content: none !important;
}


/* Check propre */

.widget-steps .step.complete .step-dot {
    position: relative !important;
}

/* =========================================================
   STEPPER - CHECK CENTRÉ
   ========================================================= */

.widget-steps .step.complete .step-dot::after {
    content: "\f00c" !important;

    position: absolute !important;

    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    font-family: "Font Awesome 5 Free";
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1 !important;

    color: #ffffff !important;

    transform: translate(-50%, -50%) !important;

    border: 0 !important;
    background: none !important;
}

.money-transfer-amount {
    min-width: 0;
    text-overflow: ellipsis;
}