/*
Theme Name: GeneratePress Child
Template: generatepress
Author: ANtic Esport
Description: Thème enfant basé sur GeneratePress - Antic Esport
Version: 1.0
*/

/* =========================================================
   BASE
========================================================= */

.woocommerce .site-main {
  margin-right: 0 !important;
}

:root {
  --am-accent: #f6c9b1;
}

/* Contrainte de largeur globale pour nos pages Woo */
.am-woocommerce {
  width: 70%;
  margin: auto;
  color: #f9f9f9;
  min-height: 50vh;
}

/* =========================================================
   HEADER (bloc “team head”)
========================================================= */

.am-woocommerce .am-team-head {
  color: #f9f9f9;
  height: auto;
  text-align: center;
  padding: 8px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin: 0;
  display: block;
}
.am-woocommerce .am-team-head__logo-title {
  margin-bottom: 8px;
}
.am-woocommerce .am-team-head__logo {
  width: 70px;
  height: auto;
}
.am-woocommerce .am-team-head__line {
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 38px;
}
.am-woocommerce .am-team-head__rp-text {
  font-family: "Inter", Sans-serif;
  font-size: 25px;
  font-weight: 300;
  color: #f9f9f9;
  margin: 0;
}
.am-woocommerce .am-team-head__rp-text .line {
  display: block;
}

/* =========================================================
   CONNEXION / INSCRIPTION
========================================================= */

.am-woocommerce .woocommerce-form {
  background: #292929;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: #f9f9f9;
}
.am-woocommerce .woocommerce-form a {
  text-decoration: none;
}
.am-woocommerce .woocommerce-form .lost_password {
  text-align: right;
}
.am-woocommerce .woocommerce-form .lost_password a {
  color: #f9f9f9;
  font-size: 14px;
}

.am-woocommerce .woocommerce-form h2 {
  text-align: center;
  color: #f9f9f9;
  font-weight: 700;
  font-size: 25px;
  text-transform: uppercase;
}

.woocommerce .am-woocommerce form.login,
.woocommerce .am-woocommerce form.register {
  border: 1px solid #7373734d;
  border-radius: 0;
  height: 420px;
}

.woocommerce .am-woocommerce form .form-row label {
  color: #f9f9f9;
  line-height: 1.25;
}
.woocommerce .am-woocommerce form .form-row .required {
  color: #f9f9f9;
}
.woocommerce .am-woocommerce form .form-row input {
  background-color: #f5f5f51a;
  border: 1px solid #737373;
  border-radius: 0;
  color: #f9f9f9;
}
.woocommerce .am-woocommerce form .form-row input:focus {
  border-color: #737373;
}

.woocommerce
  .am-woocommerce
  .woocommerce-form-login
  .woocommerce-form-login__submit,
.woocommerce
  .am-woocommerce
  .woocommerce-form-register
  .woocommerce-form-register__submit {
  float: none;
  display: block !important;
  margin: 20px auto !important;
  background-color: var(--am-accent);
  padding: 12px 24px;
  text-transform: uppercase;
  border-radius: 0;
  color: #292929;
}
.woocommerce
  .am-woocommerce
  .woocommerce-form-login
  .woocommerce-form-login__submit::after,
.woocommerce
  .am-woocommerce
  .woocommerce-form-register
  .woocommerce-form-register__submit::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background: #292929;
  right: -7px;
  bottom: -7px;
  transform: rotate(45deg);
  border-left: 1px solid #f5f5f5;
  border-bottom-right-radius: 4px;
}

/* Icône “voir mot de passe” */
.woocommerce .am-woocommerce form .form-row .show-password-input::before {
  background-image: url("data:image/svg+xml,<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M17.3 3.3C16.9 2.9 16.2 2.9 15.7 3.3L13.3 5.7C12.2437 5.3079 11.1267 5.1048 10 5.1C6.2 5.2 2.8 7.2 1 10.5C1.2 10.9 1.5 11.3 1.8 11.7C2.6 12.8 3.6 13.7 4.7 14.4L3 16.1C2.6 16.5 2.5 17.2 3 17.7C3.4 18.1 4.1 18.2 4.6 17.7L17.3 4.9C17.7 4.4 17.7 3.7 17.3 3.3ZM6.7 12.3L5.4 13.6C4.2 12.9 3.1 11.9 2.3 10.7C3.5 9 5.1 7.8 7 7.2C5.7 8.6 5.6 10.8 6.7 12.3ZM10.1 9C9.6 8.5 9.7 7.7 10.2 7.2C10.7 6.8 11.4 6.8 11.9 7.2L10.1 9ZM18.3 9.5C17.8 8.8 17.2 8.1 16.5 7.6L15.5 8.6C16.3 9.2 17 9.9 17.6 10.8C15.9 13.4 13 15 9.9 15H9.1L8.1 16C8.8 15.9 9.4 16 10 16C13.3 16 16.4 14.4 18.3 11.7C18.6 11.3 18.8 10.9 19.1 10.5C18.8 10.2 18.6 9.8 18.3 9.5ZM14 10L10 14C12.2 14 14 12.2 14 10Z' fill='%23F6C9B1'/></svg>");
  content: "";
}

/* =========================================================
   PAGE MON COMPTE (navigation, cartes, actions)
========================================================= */

.am-woocommerce .woocommerce-MyAccount-navigation,
.am-woocommerce .woocommerce-MyAccount-content .am-acc-hero,
.am-woocommerce .woocommerce-MyAccount-content .am-acc-card {
  background: #292929;
  border: 1px solid #737373;
  color: #f9f9f9;
}
.am-woocommerce .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
}
.am-woocommerce .woocommerce-MyAccount-navigation li {
  list-style: none;
  border-bottom: 1px solid #ffffff20;
  padding: 5px;
  margin: 0;
}
.am-woocommerce .woocommerce-MyAccount-navigation a {
  padding-left: 10px;
  text-decoration: none;
  text-transform: uppercase;
  color: #f9f9f9;
  font-weight: 500;
  font-size: 18px;
}
.am-woocommerce .woocommerce-MyAccount-navigation a:hover {
  color: var(--am-accent);
}

.am-woocommerce .woocommerce-MyAccount-content .am-acc-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
}
.am-woocommerce .woocommerce-MyAccount-content .am-acc-hello-title {
  font-size: 18px;
  font-weight: 500;
}

.am-woocommerce .woocommerce-MyAccount-content .am-acc-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Boutons de soumission dans Mon Compte */
.am-woocommerce .woocommerce-MyAccount-content button[type="submit"] {
  float: none;
  display: block !important;
  margin: 20px auto !important;
  background: var(--am-accent);
  padding: 12px 24px;
  text-transform: uppercase;
  border-radius: 0;
  color: #292929;
}
.am-woocommerce .woocommerce-MyAccount-content button[type="submit"]::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background: #292929;
  right: -7px;
  bottom: -7px;
  transform: rotate(45deg);
  border-left: 1px solid #f5f5f5;
  border-bottom-right-radius: 4px;
}
.am-woocommerce .woocommerce-MyAccount-content button[type="submit"]:hover {
  background: var(--am-accent);
  color: #292929;
}

/* Cartes & listes */
.am-woocommerce .woocommerce-MyAccount-content .am-acc-card .am-acc-head {
  padding: 16px 18px;
  border-bottom: 1px solid #737373;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.am-woocommerce .woocommerce-MyAccount-content .am-acc-card .am-acc-head h3 {
  color: var(--am-accent);
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}
.am-woocommerce .woocommerce-MyAccount-content .am-acc-card .am-acc-head a {
  font-size: 13px;
  color: var(--am-accent);
  text-decoration: none;
}
.am-woocommerce .woocommerce-MyAccount-content .am-acc-card .am-acc-orders {
  list-style: none;
  margin: 0;
  padding: 0;
}
.am-woocommerce .woocommerce-MyAccount-content .am-acc-card .am-acc-orders li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid #737373;
}

/* Actions sous la barre */
.am-woocommerce .woocommerce-MyAccount-content .am-acc-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}
.am-woocommerce .woocommerce-MyAccount-content .am-btn {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #ffffff26;
  color: #f9f9f9;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  text-transform: uppercase;
}
.am-woocommerce .woocommerce-MyAccount-content .am-btn:hover {
  transform: translateY(-1px);
}
.am-woocommerce .woocommerce-MyAccount-content .am-btn--primary {
  background: var(--am-accent);
  color: #1a1a1a;
  border-color: var(--am-accent);
}

/* =========================================================
   MES COMMANDES (liste)
========================================================= */

.am-woocommerce table.shop_table {
  border-radius: 0;
  background: #292929;
  border: 1px solid #737373;
  color: #f9f9f9;
  text-align: center;
}
.am-woocommerce table.shop_table thead th {
  text-transform: uppercase;
  border-color: #737373;
}
.am-woocommerce .woocommerce-orders-table__cell-order-actions a {
  text-decoration: none;
  text-transform: uppercase;
}
.am-woocommerce .woocommerce-orders-table__cell-order-actions a:hover {
  color: var(--am-accent);
}
.am-woocommerce table.shop_table th a:hover {
  color: var(--am-accent);
}
.am-woocommerce table.shop_table th,
.am-woocommerce table.shop_table td {
  border-bottom: 1px solid #737373;
  border-right: 1px solid #737373;
}

/* =========================================================
   ADRESSES & FORM EDIT ADDRESS
========================================================= */

.am-woocommerce .woocommerce-Address {
  background: #292929;
  border: 1px solid #737373;
  color: #f9f9f9;
  padding: 10px;
}
.am-woocommerce .woocommerce-Address h2 {
  color: #f9f9f9;
  font-size: 20px;
  text-transform: uppercase;
}
.am-woocommerce .woocommerce-Address a {
  text-decoration: none;
  font-size: 15px;
}
.am-woocommerce .woocommerce-Address a:hover {
  color: var(--am-accent);
}
.am-woocommerce .woocommerce-Address address {
  margin-top: 10px;
}

/* Form edit address */
.woocommerce-MyAccount-content form {
  background: #292929;
  border: 1px solid #737373;
  color: #f9f9f9;
  padding: 10px;
}
.woocommerce-MyAccount-content form h2 {
  color: #f9f9f9;
  font-size: 20px;
  text-transform: uppercase;
}

/* Select2 */
.select2-container .select2-dropdown {
  background: #292929;
  border: 1px solid #737373;
  border-radius: 0;
  color: #f9f9f9;
}
.select2-container .select2-selection {
  background: #f5f5f51a;
  border: 1px solid #737373;
  border-radius: 0;
  color: #f9f9f9;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  background: #f5f5f51a;
  border-color: #737373;
  color: #f9f9f9;
}
.select2-container--default
  .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
  background: #f5f5f51a;
}
.woocommerce-MyAccount-content
  form
  .select2-container
  .select2-selection--single
  .select2-selection__arrow
  b {
  border: none;
  display: block;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZjZjOWIxIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgY2xhc3M9ImZlYXRoZXIgZmVhdGhlci1jaGV2cm9uLWRvd24iPjxwb2x5bGluZSBwb2ludHM9IjYgOSAxMiAxNSAxOCA5Ij48L3BvbHlsaW5lPjwvc3ZnPg==")
    no-repeat;
  background-size: 16px;
  width: 16px;
  height: 16px;
  position: absolute;
  top: 50%;
  left: 0;
  margin: -8px 0 0;
}

/* =========================================================
   VIEW ORDER (woocommerce/myaccount/view-order.php)
========================================================= */

/* Phrase “La commande #… a été passée…” */
.am-woocommerce .woocommerce-MyAccount-content .woocommerce-order > p {
  background: #292929;
  border: 1px solid #737373;
  color: #f9f9f9;
  padding: 16px 18px;
  margin: 0 0 16px;
  line-height: 1.6;
}
.am-woocommerce .woocommerce-MyAccount-content .woocommerce-order > p mark {
  background: #1f1f1f;
  border: 1px solid #ffffff26;
  color: #f9f9f9;
  padding: 6px 10px;
  font-weight: 700;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order
  > p
  .order-number {
  border-color: var(--am-accent);
  color: var(--am-accent);
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order
  > p
  .order-date {
  border-color: #8a8a8a;
  color: #e8e8e8;
  font-variant-numeric: tabular-nums;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order
  > p
  .order-status {
  border-color: #ffffff26;
}
/* Statuts */
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order
  > p
  .order-status.processing {
  color: #ffd479;
  border-color: #ffd479;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order
  > p
  .order-status.on-hold {
  color: #ffdd99;
  border-color: #ffdd99;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order
  > p
  .order-status.completed {
  color: #9be79b;
  border-color: #9be79b;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order
  > p
  .order-status.cancelled {
  color: #ff9b9b;
  border-color: #ff9b9b;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order
  > p
  .order-status.refunded {
  color: #9bc9ff;
  border-color: #9bc9ff;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order
  > p
  .order-status.failed {
  color: #ff8a8a;
  border-color: #ff8a8a;
}

/* Bloc détails de commande */
.am-woocommerce .woocommerce-MyAccount-content .woocommerce-order-details {
  background: #292929;
  border: 1px solid #737373;
  padding: 16px;
  margin-bottom: 20px;
}
.am-woocommerce .woocommerce-MyAccount-content .woocommerce-order-details h2 {
  color: var(--am-accent);
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order-details
  .woocommerce-table--order-details {
  width: 100%;
  border: 0;
  margin: 0;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order-details
  .woocommerce-table--order-details
  thead
  th {
  background: #2e2e2e;
  border-bottom: 1px solid #737373;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 12px;
  color: #f9f9f9;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order-details
  .woocommerce-table--order-details
  tbody
  td,
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order-details
  .woocommerce-table--order-details
  tfoot
  th,
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order-details
  .woocommerce-table--order-details
  tfoot
  td {
  border-top: 1px solid #737373;
  padding: 12px;
  color: #f9f9f9;
  vertical-align: middle;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order-details
  .woocommerce-table--order-details
  tbody
  tr:hover {
  background: #2f2f2f;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order-details
  .woocommerce-table__product-name
  a {
  color: #f9f9f9;
  font-weight: 700;
  text-decoration: none;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order-details
  .woocommerce-table__product-name
  a:hover {
  color: var(--am-accent);
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order-details
  .wc-item-meta,
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order-details
  .wc-item-meta
  p {
  color: #d9d9d9;
  font-size: 13px;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order-details
  tfoot
  th {
  text-align: right;
  color: #d9d9d9;
  font-weight: 500;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-order-details
  tfoot
  td {
  font-weight: 700;
}

/* Détails client */
.am-woocommerce .woocommerce-MyAccount-content .woocommerce-customer-details {
  background: #292929;
  border: 1px solid #737373;
  padding: 16px;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-customer-details
  .woocommerce-column {
  margin-bottom: 20px;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-customer-details
  .woocommerce-column__title {
  color: var(--am-accent);
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 8px;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-customer-details
  address {
  color: #f9f9f9;
  margin: 0;
  line-height: 1.5;
}
.am-woocommerce .woocommerce-MyAccount-content .woocommerce-customer-details a {
  color: #f9f9f9;
  text-decoration: none;
}
.am-woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-customer-details
  a:hover {
  color: var(--am-accent);
}

/* Impression */
@media print {
  .am-woocommerce .woocommerce-MyAccount-content {
    border: none;
  }
  .am-woocommerce .woocommerce-MyAccount-content .woocommerce-order > p,
  .am-woocommerce
    .woocommerce-MyAccount-content
    .woocommerce-order
    .woocommerce-order-details,
  .am-woocommerce .woocommerce-MyAccount-content .woocommerce-customer-details,
  .am-woocommerce
    .woocommerce-MyAccount-content
    .woocommerce-OrderUpdates.commentlist.notes {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
  }
  .am-woocommerce .woocommerce-MyAccount-content .woocommerce-order > p mark {
    background: #fff;
    border: 1px solid #aaa;
    color: #000;
  }
}

/* =========================================================
   MINI-PANIER ELEMENTOR — CLEAN
========================================================= */

/* Panneau + structure colonne (footer poussé en bas) */
.elementor-menu-cart__main {
  background: #292929 !important;
  color: #f9f9f9 !important;
  padding: 18px !important;
  border: 1px solid rgba(115, 115, 115, 0.3) !important;
  box-sizing: border-box !important;
  width: 450px !important;
  display: flex;
  flex-direction: column;
}
/* Liste scrollable si long */
.elementor-menu-cart__products {
  flex: 1 1 auto;
  overflow: auto;
}
/* Fermer par défaut d’Elementor masqué (on a notre header) */
.elementor-menu-cart__close-button-custom {
  display: none !important;
}

/* Header personnalisé */
.am-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(115, 115, 115, 0.3);
  margin-top: 10px;
}
.am-cart-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.am-cart-title .am-cart-count {
  color: var(--am-accent);
}
/* Bouton close centré */
.am-cart-close {
  width: 40px;
  height: 40px;
  border: 1px solid #737373;
  background: transparent;
  color: #737373;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  font-size: 0;
  cursor: pointer;
}
.am-cart-close::before {
  content: "\00D7";
  font-size: 22px;
  line-height: 1;
}
.am-cart-close:hover {
  background: var(--am-accent);
  color: #0f1318;
  border-color: var(--am-accent);
}

/* Barre objectif OFF (stand-by) */
.am-cart-goal {
  display: none !important;
}

/* Cartes produit (grille 3 colonnes) */
.elementor-menu-cart__products .elementor-menu-cart__product {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid rgba(115, 115, 115, 0.3);
  background: #3a3a3a;
}
/* Image */
.elementor-menu-cart__product-image a {
  width: 96px;
  height: 96px;
  display: block;
}
.elementor-menu-cart__product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(115, 115, 115, 0.3);
  background: rgba(245, 245, 245, 0.06);
}
/* Titre & meta */
.elementor-menu-cart__product-name a {
  color: #f9f9f9;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  font-size: 18px;
}
.elementor-menu-cart__product-name a:hover {
  color: var(--am-accent);
}
.elementor-menu-cart__product .quantity {
  color: #c7d0da;
  font-size: 13px;
  margin-top: 6px;
  display: block;
}
/* Prix (col 3) */
.elementor-menu-cart__product-price {
  text-align: right;
  font-weight: 800;
  padding-top: 2px;
  white-space: nowrap;
}
/* Pastille X Elementor masquée : on utilise “Supprimer” texte */
.elementor-menu-cart__product-remove {
  display: none !important;
}

/* Stepper quantité + lien Supprimer */
.am-qty {
  grid-column: 2 / -1;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Boutons − / + (centrage pixel perfect) */
.am-qty-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #3a4652;
  background: transparent;
  color: #f9f9f9;
  display: block !important;
  position: relative;
  line-height: 1 !important;
  font-size: 0 !important;
  cursor: pointer;
}
.am-qty-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: inherit;
}
/* Utilise les classes si présentes, sinon fallback premier/dernier */
.am-qty-btn.am-minus::before {
  content: "\2212";
}
.am-qty-btn.am-plus::before {
  content: "+";
}
.am-qty-btn:first-child::before {
  content: "\2212";
}
.am-qty-btn:last-child::before {
  content: "+";
}
.am-qty-btn:hover {
  background: #1a2230;
}

/* Input quantité sans spinners */
.am-qty-input {
  width: 64px;
  height: 40px;
  text-align: center;
  border: 1px solid #3a4652;
  background: #0f1318;
  color: #f9f9f9;
  -moz-appearance: textfield;
  appearance: textfield;
}
.am-qty-input::-webkit-outer-spin-button,
.am-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Lien supprimer */
.am-remove-text {
  margin-left: auto;
  color: #cdd7e1;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.am-remove-text:hover {
  color: var(--am-accent);
}

/* Sous-total */
.elementor-menu-cart__subtotal {
  margin: 18px 0;
  padding: 14px 0 12px;
  border-top: 1px solid rgba(115, 115, 115, 0.3);
  border-bottom: 1px solid rgba(115, 115, 115, 0.3);
  font-weight: 900;
  text-align: center;
  color: #f9f9f9 !important;
  opacity: 1 !important;
}

/* Footer : garder uniquement “Procéder au paiement” plein largeur */
.elementor-menu-cart__main
  .elementor-menu-cart__footer-buttons
  .elementor-button--view-cart,
.elementor-menu-cart__main
  .elementor-menu-cart__footer-buttons
  a.elementor-button.elementor-button--view-cart,
.elementor-menu-cart__main
  .woocommerce-mini-cart__buttons
  .button.wc-forward:not(.checkout) {
  display: none !important;
}
.elementor-menu-cart__footer-buttons {
  margin-top: auto;
  display: block !important;
  width: 100%;
}
.elementor-menu-cart__footer-buttons .elementor-button--checkout,
.elementor-menu-cart__footer-buttons .button.checkout {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  height: 60px;
  border-radius: 0;
  background: var(--am-accent) !important;
  color: #001018 !important;
  border: 0;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.3px;
}
.elementor-menu-cart__footer-buttons .elementor-button--checkout:hover,
.elementor-menu-cart__footer-buttons .button.checkout:hover {
  filter: brightness(1.06);
}

/* État vide */
.am-empty {
  padding: 24px 6px 8px;
  text-align: center;
}
.am-empty p {
  margin: 0 0 16px;
  color: #cdd7e1;
}
.am-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  background: transparent;
  color: #f9f9f9;
  border: 1px solid rgba(115, 115, 115, 0.3);
  text-decoration: none;
  font-weight: 800;
}
.am-btn-primary:hover {
  color: var(--am-accent);
  border-color: var(--am-accent);
}

.elementor-menu-cart__products .elementor-menu-cart__product {
  position: relative;
}
.elementor-menu-cart__product-name a,
.elementor-menu-cart__product-image a {
  position: relative;
  z-index: 1;
}
.elementor-menu-cart__product-name a::after,
.elementor-menu-cart__product-image a::after {
  content: none !important;
}
.am-qty {
  position: relative;
  z-index: 5;
}
.am-qty-btn,
.am-qty-input {
  position: relative;
  z-index: 6;
}
.elementor-menu-cart__product-price {
  pointer-events: none;
}

/* Clics fiables : liens sous la zone qty */
.elementor-menu-cart__products .elementor-menu-cart__product {
  position: relative;
}
.elementor-menu-cart__product-name a,
.elementor-menu-cart__product-image a {
  position: relative;
  z-index: 1;
}
.am-qty,
.am-qty * {
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

/* Masquer "Voir le panier" et avoir le checkout en bas, pleine largeur */
.elementor-menu-cart__main {
  display: flex;
  flex-direction: column;
}
.elementor-menu-cart__products {
  flex: 1 1 auto;
  overflow: auto;
}
.elementor-menu-cart__footer-buttons {
  margin-top: auto;
  display: block;
}
.elementor-menu-cart__footer-buttons .elementor-button--view-cart {
  display: none !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--checkout {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 60px;
  border-radius: 0;
}

/* Mobile/tablette : la zone qty s’étend du texte au prix */
@media (max-width: 1024px) {
  .elementor-menu-cart__products .elementor-menu-cart__product {
    grid-template-columns: 96px 1fr auto;
  }
  .am-qty {
    grid-column: 2 / -1;
  }
}

/* (Option) masquer la barre objectif */
.am-cart-goal {
  display: none !important;
}

/* =========================================================
   MA COMMANDE
========================================================= */

.wc-block-components-sidebar-layout,
.wc-block-components-sidebar {
  color: #f9f9f9;
}

.wc-block-components-sidebar {
  background: #292929 !important;
  padding: 10px !important;
  border: 1px solid rgba(115, 115, 115, 0.3) !important;
}

.wc-block-components-main fieldset {
  background: #292929 !important;
  padding: 10px !important;
  border: 1px solid rgba(115, 115, 115, 0.3) !important;
}

.wc-block-components-main fieldset h2 {
  color: var(--am-accent);
}

.wc-block-components-form .wc-block-components-text-input input {
  background-color: #f5f5f51a !important;
  border: 1px solid #737373 !important;
  border-radius: 0 !important;
  color: #f9f9f9 !important;
}

.wc-block-components-form .wc-block-components-text-input label {
  color: #f9f9f9 !important;
}

.wc-block-components-checkout-return-to-cart-button {
  display: none;
}

.wc-block-components-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  height: 60px;
  border-radius: 0;
  background: var(--am-accent) !important;
  color: #001018 !important;
  border: 0;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.3px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* ≤ 1366px : colonnes login/register auto */
@media (max-width: 1366px) {
  .am-woocommerce #customer_login .col-1,
  .am-woocommerce #customer_login .col-2 {
    float: none;
    width: 100%;
  }
  .woocommerce .am-woocommerce form.login,
  .woocommerce .am-woocommerce form.register {
    height: auto;
  }
}

/* ≤ 1024px : largeur conteneur + navigation */
@media (max-width: 1024px) {
  .am-woocommerce {
    width: 90%;
    margin: auto;
  }
  .am-woocommerce .am-team-head__line {
    font-size: 25px;
  }
  .am-woocommerce .am-team-head__rp-text {
    font-size: 18px;
  }
  .woocommerce
    .am-woocommerce
    .woocommerce-form-login
    .woocommerce-form-login__submit,
  .woocommerce
    .am-woocommerce
    .woocommerce-form-register
    .woocommerce-form-register__submit {
    margin: 10px auto !important;
  }
  .am-woocommerce .woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
  }
  .am-woocommerce .woocommerce-MyAccount-content {
    margin-top: 18px;
    float: none;
    width: 100%;
  }
  .elementor-menu-cart__products .elementor-menu-cart__product {
    grid-template-columns: 96px 1fr auto;
  }
  .am-qty {
    grid-column: 2 / -1;
  }
}

/* ≤ 767px : simplifications */
@media (max-width: 767px) {
  .am-woocommerce .am-team-head {
    min-height: 80px;
  }
  .am-woocommerce .am-team-head__rp-text {
    display: none;
  }
  .woocommerce
    .am-woocommerce
    .woocommerce-form-login
    .woocommerce-form-login__submit,
  .woocommerce
    .am-woocommerce
    .woocommerce-form-register
    .woocommerce-form-register__submit {
    margin: 5px auto !important;
  }
  .am-woocommerce .woocommerce-MyAccount-content .am-acc-grid {
    grid-template-columns: 1fr;
  }
  .am-woocommerce .woocommerce-MyAccount-content .woocommerce-order > p {
    padding: 14px;
    font-size: 14px;
  }
  .am-woocommerce .woocommerce-MyAccount-content .woocommerce-order > p mark {
    display: inline-block;
    margin: 4px 0;
  }
}

/* ≤ 480px : mini-panier full width & cartes compactes */
@media (max-width: 480px) {
  .elementor-menu-cart__main {
    width: 100% !important;
  }
  .elementor-menu-cart__products .elementor-menu-cart__product {
    grid-template-columns: 84px 1fr auto;
    gap: 10px;
    padding: 12px;
  }
  .elementor-menu-cart__product-image a {
    width: 84px;
    height: 84px;
  }
}
