/* 1) Le label devient un conteneur flex qui prend toute la largeur */
.wc-block-components-radio-control__label .et-pm-label {
    display: flex;
    align-items: center;
    width: 100%;
    gap: .5rem;
    /* espace texte <-> icônes */
}

/* 2) La liste d’icônes est poussée à droite */
.wc-block-components-radio-control__label .et-pm-label .wc-block-components-payment-method__icon-list {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-inline-start: auto;
    /* RTL safe ; sinon margin-left:auto */
}

/* 3) Taille des icônes (adapte à ton goût) */
.wc-block-components-payment-method__icon {
    height: 18px;
    max-height: 18px;
    width: auto;
    object-fit: contain;
}

/* Optionnel : harmoniser la ligne du radio */
.wc-block-components-radio-control__label-group {
    display: flex;
    align-items: center;
}


/* Visuel du radio */
.et-radio-visual {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #cbd5e1;
    /* slate-300 */
    border-radius: 9999px;
    position: relative;
    margin-top: 2px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* Check animé (via pseudo-élément) */
.et-radio-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 5px;
    border: 2px solid transparent;
    border-top: 0;
    border-left: 0;
    transform: translate(-50%, -60%) rotate(45deg) scale(0.6);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
}

/* ---- EasyTransac One-Click (scope local) ---- */
.et-oc-block {
    --etc-bg: #fff;
    --etc-text: #111827;
    --etc-muted: #6b7280;
    --etc-border: rgba(0, 0, 0, .08);
    --etc-accent: #4f46e5;
    /* violet doux; change si besoin */
    --etc-ring: rgba(79, 70, 229, .35);

    background: var(--etc-bg);
    color: var(--etc-text);
    border: 1px solid var(--etc-border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.et-oc-head {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .2px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.et-oc-head::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f46e5;
    box-shadow: 0 0 0 4px color-mix(in oklab, #4f46e5 22%, transparent);
}

/* Liste de cartes en grille responsive */
.et-oc-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width:480px) {
    .et-oc-cards {
        display: inline-block;
        width: 100%;
    }
}

@media (min-width:820px) {
    .et-oc-cards {
        display: inline-block;
        width: 100%;
    }
}

/* Carte “tuile” */
.et-oc-cards li label {
    display: flex;
    gap: .6rem;
    align-items: center;
    padding: 12px 12px;
    border: 1px solid var(--etc-border);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .06s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    min-height: 44px;
    line-height: 1.2;
}

/* Radio minimal + couleur d’accent (support natif moderne) */
.et-oc-cards input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    flex: 0 0 auto;
}

/* Masquage monospacé pour un alignement propre des chiffres */
.et-oc-cards li label {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

.et-oc-cards li label span,
.et-oc-cards li label {
    color: var(--etc-text);
}

/* Hover/active */
.et-oc-cards li label:hover {
    border-color: color-mix(in oklab, #4f46e5 25%, var(--etc-border));
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.et-oc-cards li label:active {
    transform: translateY(1px);
}

/* Focus clavier (accessibilité) */
.et-oc-cards li label:focus-within {
    outline: none;
    box-shadow: 0 0 0 3px var(--etc-ring);
    border-color: #4f46e5;
}

/* État sélectionné : quand le radio est coché */
.et-oc-cards li label:has(input[type="radio"]:checked) {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px var(--etc-ring), 0 6px 18px rgba(0, 0, 0, .07);
    background: linear-gradient(0deg, #fff, #fff) padding-box,
        linear-gradient(135deg, color-mix(in oklab, #4f46e5 50%, transparent), transparent) border-box;
}

/* Lignes longues → petit ton “muted” */
.et-oc-cards li label::after {
    content: "";
    flex: 1;
}

/* Bouton “Use a new card” */
.et-oc-block input[type="radio"] {
    position: relative !important;
}

.et-oc-actions {
    display: flex;
    justify-content: flex-start;
    gap: .6rem;
    margin-top: 12px !important;
}

.et-oc-actions button {
    -webkit-appearance: none;
    appearance: none;
    background: #4f46e5;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 8px 18px color-mix(in oklab, #4f46e5 25%, transparent);
    transition: transform .06s ease, box-shadow .15s ease, filter .15s ease;
}

.et-oc-actions button:hover {
    filter: brightness(1.03);
    box-shadow: 0 10px 22px color-mix(in oklab, #4f46e5 32%, transparent);
}

.et-oc-actions button:active {
    transform: translateY(1px);
}

.et-oc-actions button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--etc-ring);
}

/* Mode sombre (si le thème l’utilise) */
@media (prefers-color-scheme: dark) {
    .et-oc-block {
        --etc-bg: #0b0c10;
        --etc-text: #e5e7eb;
        --etc-muted: #9ca3af;
        --etc-border: rgba(255, 255, 255, .08);
        --etc-ring: color-mix(in oklab, #4f46e5 45%, transparent);
        background: var(--etc-bg);
        border-color: var(--etc-border);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
    }

    .et-oc-cards li label {
        background: #0e1116;
        border-color: var(--etc-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    }

    .et-oc-cards li label:hover {
        border-color: color-mix(in oklab, #4f46e5 35%, var(--etc-border));
    }
}