
/* TLA Comptes & Tarifs — grille des agences */

.tla-ct-child-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 2em;
    padding: 0;
    list-style: none;
}

.tla-ct-child-list > .tla-ct-agency-card {
    min-width: 0;
    margin: 0;
    padding: 18px;
    list-style: none;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 5px rgb(0 0 0 / 4%);
    overflow-wrap: anywhere;
}

.tla-ct-agency-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin-bottom: 12px;
}

.tla-ct-agency-name {
    font-size: 1.05em;
    line-height: 1.35;
}

.tla-ct-agency-code {
    color: #687385;
    font-size: 0.88em;
}

.tla-ct-agency-email {
    margin-bottom: 8px;
    color: #465365;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

.tla-ct-agency-address {
    margin-bottom: 14px;
    font-size: 0.95em;
    line-height: 1.5;
}

.tla-ct-agency-settings {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #edf0f3;
    font-size: 0.82em;
    line-height: 1.4;
}

.tla-ct-agency-settings > div > span {
    display: block;
    margin-bottom: 2px;
    color: #687385;
    font-size: 0.9em;
}

/* Adaptation à la largeur disponible */

@media (max-width: 1100px) {
    .tla-ct-child-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .tla-ct-child-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .tla-ct-child-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Coordonnées de la structure principale */

.tla-ct-main-structure {
    line-height: 1.6;
}

/* Paramètres de facturation et de livraison */

.tla-ct-agency-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf0f3;
}

.tla-ct-agency-settings > div > span,
.tla-ct-agency-setting > span {
    display: block !important;
    margin-bottom: 4px;
    color: #687385;
    font-size: 0.85em;
    font-weight: 400;
    line-height: 1.3;
}

.tla-ct-agency-settings > div > strong,
.tla-ct-agency-setting > strong {
    display: block !important;
    color: #334155;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.4;
}

.tla-ct-agency-setting {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Sur les tuiles très étroites, repasser sur une seule colonne */

@media (max-width: 420px) {
    .tla-ct-agency-settings {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}



/* ---------------------------------------------------------
   Tuile de la structure principale
   --------------------------------------------------------- */

.tla-ct-main-structure {
    box-sizing: border-box;
    /*width: 100%;*/
    max-width: 32.5%;
    margin: 0 0 24px;
    padding: 20px 22px;
    border: 2px solid #c9a94a;
    border-radius: 10px;
    background: #fff;
    line-height: 1.6;
}

/* Nom de la structure */

.tla-ct-main-name {
    margin-bottom: 10px;
    color: #000;
    font-size: 1.15em;
    font-weight: 650;
    line-height: 1.35;
}

/* E-mail */

.tla-ct-main-email {
    margin-bottom: 8px;
    color: #596574;
    font-size: 0.92em;
    overflow-wrap: anywhere;
}

/* Adresse */

.tla-ct-main-address {
    color: #596574;
    font-size: 0.95em;
    line-height: 1.55;
}

/* Pays */

.tla-ct-main-country {
    margin-top: 3px;
    color: #89919b;
    font-size: 0.84em;
}

/* Mobile */

@media (max-width: 520px) {
    .tla-ct-main-structure {
        padding: 18px;
        max-width: 100%;
    }
}


/* Libellé de la structure principale dans la tuile du compte enfant */

.tla-ct-main-label {
    margin-top: -8px;
    margin-bottom: 12px;
    color: #89919b;
    font-size: 0.84em;
    line-height: 1.4;
}


/* Titre */

.titreh3 {
  text-transform: uppercase;
  font-weight: 600;
}

/* Formulaire création d'agence

form.tla-ct-create-child label {
    padding: 7px 0;
} */

/* contact de l'agence dans la tuile */

.tla-ct-agency-contact {
    color: #687385;
    font-size: 0.85em;
    font-weight: 400;
    margin-bottom:10px;
}


/* =========================================================
   Formulaire de création d'agence rattachée
   ========================================================= */

form.tla-ct-create-child {
    --tla-ct-form-border: #dfe3e8;
    --tla-ct-form-label: #465365;
    --tla-ct-form-muted: #687385;
}

/* Grille des informations de l'agence */

form.tla-ct-create-child .tla-ct-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}

/* Titres des sections */

form.tla-ct-create-child .tla-ct-form-grid h4,
form.tla-ct-create-child .tla-ct-form-orders-title {
    margin-top: 0;
    margin-bottom: 18px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--tla-ct-form-border);
}

/* Espacement des champs */

form.tla-ct-create-child .tla-ct-form-grid p {
    margin: 0 0 14px;
}

form.tla-ct-create-child label {
    display: inline-block;
    padding: 0 0 6px;
    color: var(--tla-ct-form-label);
    font-size: 0.92em;
    font-weight: 500;
}

/* Champs de saisie */

form.tla-ct-create-child input.input-text,
form.tla-ct-create-child select.select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    border: 1px solid #cbd2da;
    border-radius: 5px;
    background: #fff;
}

form.tla-ct-create-child input.input-text:focus,
form.tla-ct-create-child select.select:focus {
    border-color: #b99a43;
    outline: 2px solid rgb(201 169 74 / 18%);
    outline-offset: 1px;
}

/* Code postal + ville */

form.tla-ct-create-child .tla-ct-form-postal-city {
    display: grid;
    grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
}

form.tla-ct-create-child .tla-ct-form-postal-city p {
    min-width: 0;
}

/* Paramètres de commande */

form.tla-ct-create-child .tla-ct-form-orders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

form.tla-ct-create-child .tla-ct-form-orders fieldset {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--tla-ct-form-border);
    border-radius: 8px;
    background: #fff;
}

form.tla-ct-create-child .tla-ct-form-orders legend {
    max-width: 100%;
    padding: 0 6px;
    color: var(--tla-ct-form-label);
    font-size: 0.94em;
    font-weight: 600;
}

form.tla-ct-create-child .tla-ct-form-orders fieldset p {
    margin: 8px 0;
}

form.tla-ct-create-child .tla-ct-form-orders fieldset label {
    display: inline;
    padding: 0;
    font-weight: 400;
    line-height: 1.5;
}

form.tla-ct-create-child .tla-ct-form-orders input[type="radio"] {
    margin-right: 5px;
    accent-color: #a88935;
}

/* Note informative */

form.tla-ct-create-child .tla-ct-form-note {
    margin: 16px 0;
    color: var(--tla-ct-form-muted);
    font-size: 0.88em;
    line-height: 1.5;
}

/* Bouton de soumission */

form.tla-ct-create-child .tla-ct-form-submit {
    margin: 20px 0 0;
}

/* Tablettes et fenêtres étroites */

@media (max-width: 800px) {
    form.tla-ct-create-child .tla-ct-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    form.tla-ct-create-child .tla-ct-form-orders {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
}

/* Mobiles */

@media (max-width: 520px) {
    form.tla-ct-create-child .tla-ct-form-postal-city {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    form.tla-ct-create-child .tla-ct-form-orders fieldset {
        padding: 14px;
    }
}


/* TLA Comptes & Tarifs — actions des cartes agences */

.tla-ct-agency-card {
    position: relative;
}

.tla-ct-agency-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 3px;
    min-height: 32px;
    margin: -18px -18px 12px 0;
}

/* Indicateur d'initialisation du mot de passe : uniquement visible si une action est nécessaire. */
.tla-ct-password-pending,
.tla-ct-last-activity {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 4px;
    margin-right: auto;
    line-height: 1;
    cursor: help;
}

.tla-ct-password-pending {
    color: #B4232C;
}

.tla-ct-password-pending svg,
.tla-ct-last-activity svg {
    display: block;
    flex: 0 0 20px;
}

.tla-ct-last-activity {
    color: #a9cfc6;
    white-space: nowrap;
}

.tla-ct-last-activity time {
    color: #465365;
    font-size: 10px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Compteur des commandes du mois : réservé aux agences actives. */
.tla-ct-month-order-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin-top: 2px;
    margin-right: 4px;
    box-sizing: border-box;
    padding: 0 9px;
    border-radius: 999px;
    background: #c9a94a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    cursor: default;
}

.tla-ct-agency-action-form {
    display: inline-flex;
    margin: 0;
}


/* Boutons d'action : styles du thème neutralisés */

.tla-ct-agency-actions .tla-ct-icon-button,
.tla-ct-agency-actions .tla-ct-icon-button[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;

    border: 1px solid #CBD2DA;
    border-radius: 0px;
    background: #FFFFFF;
    box-shadow: none;

    color: #465365;
    font-family: inherit;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    text-decoration: none;
    text-shadow: none;
    cursor: pointer;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;
}

/* Dernier bouton : rappel de l'angle de la tuile */
.tla-ct-agency-actions > :last-child .tla-ct-icon-button {
    border-top-right-radius: 8px;
}

/* Premier bouton : angle inversé par rapport à la tuile */
.tla-ct-agency-actions > :first-child .tla-ct-icon-button, .tla-ct-agency-actions > .tla-ct-edit-icon {
    border-bottom-left-radius: 6px;
}

/* Neutralisation des couleurs imposées par le thème */
.tla-ct-agency-actions .tla-ct-icon-button:hover,
.tla-ct-agency-actions .tla-ct-icon-button:active {
    background: #a9cfc6;
    border-color: #a9cfc6;
    color: #FFFFFF;
    box-shadow: none;
    text-decoration: none;
}

.tla-ct-agency-actions .tla-ct-icon-button:focus {
    outline: none;
}

.tla-ct-agency-actions .tla-ct-icon-button:focus-visible {
    outline: 2px solid #465365;
    outline-offset: 2px;
}

/* Lien Modifier : même gabarit que les autres actions, avec infobulle native. */
.tla-ct-agency-actions > .tla-ct-edit-icon {
    flex: 0 0 36px;
}

/* Suppression : rouge au repos */
.tla-ct-agency-actions .tla-ct-icon-button.is-danger {
    border-color: #D6A0A0;
    background: #FFFFFF;
    color: #B4232C;
}

/* Suppression : rouge franc au survol */
.tla-ct-agency-actions .tla-ct-icon-button.is-danger:hover,
.tla-ct-agency-actions .tla-ct-icon-button.is-danger:active {
    border-color: #B4232C;
    background: #B4232C;
    color: #FFFFFF;
    box-shadow: none;
}

/* Respect du mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .tla-ct-agency-actions .tla-ct-icon-button {
        transition: none;
    }
}

/* Tuile désactivée */
.tla-ct-agency-card.is-disabled {
    background: #f1f2f3;
    border-color: #d5d7da;
    color: #626970;
}

.tla-ct-agency-card.is-disabled .tla-ct-agency-name,
.tla-ct-agency-card.is-disabled strong {
    color: #555b61;
}

.tla-ct-agency-status {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 8px;
    border-radius: 3px;
    background: #e0e2e4;
    color: #41464b;
    font-size: .82em;
    font-weight: 600;
}

/* Suppression indisponible en cas d'échec du contrôle */
.tla-ct-action-unavailable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #858b91;
    font-size: 22px;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .tla-ct-icon-button {
        transition: none;
    }
}

/* formulaire d'édition des fiches */

form.tla-ct-edit-child {
    margin-bottom: 20px;
}

form.tla-ct-edit-child label {
    margin-bottom: 6px;
}

.tla-ct-fiche-modif {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 8px;
    border-radius: 3px;
    background: #a9cfc6;
    color: white;
    font-size: .82em;
    font-weight: 600;
}


/* TLA — Carnet d'adresses réservée à la structure principale */


/* TLA — Hachurage discret des tuiles réservées à la structure */

.elementor-element-0b30f78.tla-enfant-restreint,
.elementor-element-e7c55d8.tla-enfant-restreint,
.elementor-element-8121b18.tla-enfant-restreint,
.elementor-element-ae28bde.tla-enfant-restreint {
    position: relative;
    isolation: isolate;
}

/* Motif en arrière-plan */
.elementor-element-0b30f78.tla-enfant-restreint::before,
.elementor-element-e7c55d8.tla-enfant-restreint::before,
.elementor-element-8121b18.tla-enfant-restreint::before,
.elementor-element-ae28bde.tla-enfant-restreint::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        transparent 0,
        transparent 5px,
        rgba(0, 0, 0, 0.06) 5px,
        rgba(0, 0, 0, 0.1) 6px
    );
    border-radius: inherit;
}

/* TLA — Carnets d'adresses réservés à la structure principale */

/* Atténuer l'icône et barrer le titre */
.elementor-element-0b30f78.tla-enfant-restreint .elementor-icon-box-icon,
.elementor-element-0b30f78.tla-enfant-restreint .elementor-icon-box-title,
.elementor-element-e7c55d8.tla-enfant-restreint .elementor-icon-box-icon,
.elementor-element-e7c55d8.tla-enfant-restreint .elementor-icon-box-title,
.elementor-element-8121b18.tla-enfant-restreint .elementor-icon-box-icon,
.elementor-element-8121b18.tla-enfant-restreint .elementor-icon-box-title,
.elementor-element-ae28bde.tla-enfant-restreint .elementor-icon-box-icon,
.elementor-element-ae28bde.tla-enfant-restreint .elementor-icon-box-title {
    opacity: 0.4;
}

.elementor-element-0b30f78.tla-enfant-restreint .elementor-icon-box-title a,
.elementor-element-e7c55d8.tla-enfant-restreint .elementor-icon-box-title a,
.elementor-element-8121b18.tla-enfant-restreint .elementor-icon-box-title a,
.elementor-element-ae28bde.tla-enfant-restreint .elementor-icon-box-title a {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

/* Mention lisible, adaptée aux deux tailles de titre */
.elementor-element-0b30f78.tla-enfant-restreint .elementor-icon-box-content::after,
.elementor-element-e7c55d8.tla-enfant-restreint .elementor-icon-box-content::after,
.elementor-element-8121b18.tla-ogf-payment-managed .elementor-icon-box-content::after,
.elementor-element-ae28bde.tla-ogf-payment-managed .elementor-icon-box-content::after {
    content: "Géré par la structure principale";
    display: inline-block;
    margin-top: 8px;
    padding: 2px 5px;
    background: #dedede;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    font-weight: 600;
    opacity: 1;
    text-decoration: none;
}

/* Verrouillage visuel des adresses au checkout des comptes enfants */
body.tla-child-managed-checkout .woocommerce-billing-fields input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.tla-child-managed-checkout .woocommerce-shipping-fields input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.tla-child-managed-checkout .woocommerce-billing-fields textarea,
body.tla-child-managed-checkout .woocommerce-shipping-fields textarea,
body.tla-child-managed-checkout .woocommerce-billing-fields select,
body.tla-child-managed-checkout .woocommerce-shipping-fields select {
    background-color: #f0f1f2 !important;
    color: #555 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

body.tla-child-managed-checkout #ship-to-different-address {
    display: none !important;
}

/* Notice d'information réservée au checkout des comptes enfants */
body.tla-child-managed-checkout .tla-child-checkout-notice {
    background: #fff !important;
    border: 1px solid #000 !important;
    border-radius: 8px !important;
    color: #333 !important;
    box-shadow: none !important;
    padding: 5px;
    text-align: center;
}

/* Supprime l'icône décorative de cette notice uniquement */
body.tla-child-managed-checkout .tla-child-checkout-notice::before {
    content: none !important;
    display: none !important;
}

/* modifie la couleur du lien dans la notice */
div.woocommerce-info.tla-child-checkout-notice a {
    color:#c9a94a;
}

/* Verrouillage de l'interface Select2 des pays au checkout enfant */
body.tla-child-managed-checkout #billing_country + .select2-container .select2-selection,
body.tla-child-managed-checkout #shipping_country + .select2-container .select2-selection {
    pointer-events: none !important;
    cursor: not-allowed !important;
    background-color: #f0f1f2 !important;
}

body.tla-child-managed-checkout #billing_country + .select2-container .select2-selection__arrow,
body.tla-child-managed-checkout #shipping_country + .select2-container .select2-selection__arrow {
    display: none !important;
}
/* Adresses de la structure principale : facturation et livraison */
.tla-ct-parent-addresses {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 18px 0 30px;
}
.tla-ct-parent-address {
    min-width: 0;
    padding: 20px;
    border: 2px solid #c9a94a;
    border-radius: 8px;
    background: #fff;
}
.tla-ct-parent-address.tla-ct-notification-email {
    border: 1px solid #dfe3e8;
}
.tla-ct-parent-address.tla-ct-notification-email.tla-ct-notification-email-active {
    border: 2px solid #c9a94a;
}
.tla-ct-parent-address h5 { margin-top: 0; }
.tla-ct-parent-address-content p { 
    margin: 0 0 8px;
    font-size: .9em;
}
.tla-ct-address-state {
    display: inline-block;
    margin: 5px 0 12px;
    font-size: .82em;
    font-weight: 600;
    float:right;
    margin-top:-28px;
}
.tla-ct-address-state.is-complete { color: #a9cfc6; }
.tla-ct-address-state.is-incomplete { color: #a33b32; }
.tla-ct-parent-address-edit summary {
    cursor: pointer;
    color: #555;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.tla-ct-parent-address-edit form { margin-top: 14px; }
.tla-ct-parent-address-edit form p { margin: 0 0 12px; }
.tla-ct-parent-address-edit input,
.tla-ct-parent-address-edit select { width: 100%; max-width: 100%; }
.tla-ct-copy-address-wrap { display: flex; justify-content: center; }
.tla-ct-copy-address {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #d5d5d5 !important;
    border-radius: 50%;
    background: #fff !important;
    color: #555 !important;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.tla-ct-copy-address:hover { 
    background: #f8f7f3 !important;
    color:black !important;
    border: 1px solid #c9a94a !important;
}
.tla-ct-parent-address-warning {
    margin: 16px 0;
    padding: 14px 16px;
    border-left: 4px solid #c9a94a;
    background: #fffae6;
}
.tla-ct-parent-address-warning:focus-visible {
    border-right:none;
}
.tla-ct-parent-address-help { margin: 16px 0; }
.tla-ct-create-child.is-locked {
    opacity: .48;
    filter: grayscale(.35);
}
.tla-ct-create-child.is-locked button[disabled] { cursor: not-allowed; }
@media (max-width: 767px) {
    .tla-ct-parent-addresses { grid-template-columns: 1fr; }
    .tla-ct-copy-address-wrap { order: 2; }
    .tla-ct-parent-address-shipping { order: 3; }
}


/* Ajustements suite aux premiers tests des tuiles parent */
.tla-ct-parent-addresses {
    align-items: stretch;
}

.tla-ct-parent-address {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.tla-ct-parent-address-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: -20px -20px 14px;
    padding: 0 0 0 20px;
    min-height: 36px;
}

.tla-ct-parent-address-heading h5 {
    margin: 8px 0 0;
    min-width: 0;
}

.tla-ct-parent-address .tla-ct-parent-edit-button {
    flex: 0 0 36px;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid #CBD2DA;
    border-radius: 0 6px 0 6px;
    background: #FFFFFF;
    box-shadow: none;
    color: #465365;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.tla-ct-parent-address .tla-ct-parent-edit-button:hover,
.tla-ct-parent-address .tla-ct-parent-edit-button:active {
    background: #a9cfc6;
    border-color: #a9cfc6;
    color: #FFFFFF;
    box-shadow: none;
}

.tla-ct-parent-address .tla-ct-parent-edit-button:focus-visible {
    outline: 2px solid #465365;
    outline-offset: 2px;
}

.tla-ct-parent-address-content {
    flex: 1 0 auto;
}

.tla-ct-parent-address-content p {
    overflow-wrap: anywhere;
}

.tla-ct-parent-address-content .tla-ct-parent-company {
    margin-bottom: 8px;
}

.tla-ct-parent-address-content .tla-ct-parent-address-lines {
    margin-bottom: 10px;
}

.tla-ct-parent-contact {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf0f3;
    color: #687385;
    font-size: .88em;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tla-ct-parent-contact > strong {
    display: block;
    margin-bottom: 3px;
    color: #334155;
    font-weight: 600;
}

.tla-ct-parent-address-form[hidden] {
    display: none !important;
}

.tla-ct-parent-address-form {
    width: 100%;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf0f3;
}

.tla-ct-parent-address-form p {
    margin: 0 0 12px;
}

.tla-ct-parent-address-form label {
    display: inline-block;
    margin-bottom: 4px;
    color: #465365;
    font-size: .9em;
}

.tla-ct-parent-address-form input,
.tla-ct-parent-address-form select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.tla-ct-parent-address-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.tla-ct-parent-address-cancel {
    background: #323232 !important;
    text-transform: capitalize !important;
}

.tla-ct-parent-address-cancel:hover {
    background: #777 !important;
}

.tla-ct-copy-address-wrap {
    align-self: center;
}

.tla-ct-copy-address svg {
    display: block;
}

.tla-ct-parent-address-warning,
.tla-ct-parent-address-help {
    margin-top: 14px;
    margin-bottom: 24px !important;
}

@media (max-width: 767px) {
    .tla-ct-parent-addresses {
        align-items: stretch;
    }

    .tla-ct-parent-address {
        height: auto;
    }

    .tla-ct-parent-address-heading {
        margin: -20px -20px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tla-ct-parent-address .tla-ct-parent-edit-button {
        transition: none;
    }
}

.tla-ct-child-summary-list > .tla-ct-parent-structure-card {
    border: 2px solid #c9a94a;
}
/* Phase 4 : origine et adresses dans le détail d'une commande. */
.tla-ct-order-context { margin: 1.5em 0; }
.tla-ct-order-origin { padding: .85em 1em; border-left: 3px solid #c9a94a; background: #f8f7f2; }
.tla-ct-order-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5em; margin: 1.25em 0; }
.tla-ct-order-address { min-width: 0; }
.tla-ct-order-address h3 { margin: 0 0 .5em; font-size: 1.05em; }
@media (max-width: 600px) { .tla-ct-order-addresses { grid-template-columns: 1fr; gap: 1em; } }
