
  .mgm-add-to-cart {
    width: 100%;
    max-width: 500px;
    margin: 10px auto 10px;
  }
  
  /* Styles des upsells */
  .mgm-upsells {
    margin-bottom: 20px;
    padding: 16px;
    background-color: #fafafa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
  }
  
  .mgm-upsells__title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    text-align: center;
  }
  
  .mgm-upsell-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  .mgm-upsell-card:last-child {
    margin-bottom: 0;
  }

  .mgm-upsell-separator {
    height: 0;
    margin: 0;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    top: -4px;
  }

  .mgm-upsell-separator span {
    background-color: #fafafa;
    color: #DD9933;
    font-weight: 900;
    font-size: 24px;
    line-height: 1;
    padding: 0 8px;
  }
  
  .mgm-upsell-card:hover {
    border-color: #43aa8b;
    box-shadow: 0 2px 8px rgba(67, 170, 139, 0.1);
  }

  .mgm-upsell-card:has(.mgm-upsell-card__checkbox:checked) {
      border-color: #43aa8b;
      background-color: #f0fdf4;
  }

  .mgm-upsell-card__checkbox-wrapper {
    flex-shrink: 0;
  }

  .mgm-upsell-card__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    pointer-events: none;
  }

  .mgm-upsell-card__checkmark {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #43aa8b;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
  }

  .mgm-upsell-card__checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  .mgm-upsell-card__checkbox:checked + .mgm-upsell-card__checkmark {
    background-color: #43aa8b;
    border-color: #43aa8b;
  }

  .mgm-upsell-card__checkbox:checked + .mgm-upsell-card__checkmark::after {
    display: block;
  }

  .mgm-upsell-card__checkmark:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(67, 170, 139, 0.2);
  }

  .mgm-upsell-card__content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
  }

  .mgm-upsell-card__image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .mgm-upsell-card__image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .mgm-upsell-card__view-btn {
    background-color: #43aa8b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-weight: 500;
    min-width: 50px;
    min-height: 28px;
  }

  .mgm-upsell-card__view-btn:hover {
    background-color: #DD9933;
    transform: scale(1.08);
  }

  .mgm-upsell-card__info {
    flex: 1;
    min-width: 0;
  }

  .mgm-upsell-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
    line-height: 1.3;
  }

  .mgm-upsell-card__promotion {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 6px 0;
    font-weight: 400;
    line-height: 1.2;
  }

  .mgm-upsell-card__pricing {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .mgm-upsell-card__price {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
  }

  .mgm-upsell-card__compare-price {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: line-through;
    line-height: 1;
  }

  .mgm-upsell-card__discount {
    font-size: 11px;
    font-weight: 600;
    color: white;
    background-color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
  }

  .mgm-upsell-card__free-badge {
    font-size: 14px;
    font-weight: 700;
    color: white;
    background-color: #10b981;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1;
    text-transform: uppercase;
  }

  .mgm-upsell-card--free {
    border-color: #10b981;
    background-color: #ecfdf5;
    opacity: 1;
  }

  .mgm-upsell-card--free:hover {
    border-color: #10b981;
    cursor: default;
  }

  .mgm-upsell-card--free .mgm-upsell-card__checkbox:disabled + .mgm-upsell-card__checkmark {
    background-color: #10b981;
    border-color: #10b981;
    opacity: 1;
    cursor: default;
  }

  .mgm-upsell-card--free .mgm-upsell-card__checkmark:hover {
    transform: none;
    box-shadow: none;
    cursor: default;
  }

  .mgm-upsell-image-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
  }

  .mgm-upsell-image-dialog--open {
    display: block !important;
    opacity: 1;
  }

  .mgm-upsell-image-dialog__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    cursor: pointer;
  }

  .mgm-upsell-image-dialog__content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    min-width: 300px;
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10001;
    cursor: default;
  }

  .mgm-upsell-image-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #1f2937;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.2s ease;
    z-index: 1;
  }

  .mgm-upsell-image-dialog__close:hover {
    background-color: #ef4444;
    transform: rotate(90deg);
  }

  .mgm-upsell-image-dialog__title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    padding-right: 40px;
    text-align: center;
  }

  .mgm-upsell-image-dialog__image {
    width: 100%;
    min-width: 300px;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    cursor: default;
  }

  @media (max-width: 768px) {
    .mgm-upsells {
      padding: 12px;
    }

    .mgm-upsell-card {
      padding: 10px;
    }

    .mgm-upsell-card__checkmark {
      width: 20px;
      height: 20px;
    }

    .mgm-upsell-card__checkmark::after {
      left: 5px;
      top: 2px;
      width: 5px;
      height: 8px;
    }

    .mgm-upsell-card__image {
      width: 50px;
      height: 50px;
    }

    .mgm-upsell-card__title {
      font-size: 13px;
    }

    .mgm-upsell-card__promotion {
      font-size: 12px;
    }

    .mgm-upsell-card__price {
      font-size: 15px;
    }

    .mgm-upsell-card__compare-price {
      font-size: 12px;
    }

    .mgm-upsell-card__discount {
      font-size: 10px;
      padding: 2px 5px;
    }

    .mgm-upsell-card__image-wrapper {
      gap: 3px;
    }

    .mgm-upsell-card__view-btn {
      font-size: 14px;
      padding: 3px 8px;
      min-width: 45px;
      min-height: 26px;
    }

    .mgm-upsell-image-dialog__content {
      padding: 16px;
      max-width: 95vw;
      min-width: 280px;
    }

    .mgm-upsell-image-dialog__title {
      font-size: 16px;
    }

    .mgm-upsell-image-dialog__close {
      width: 32px;
      height: 32px;
      font-size: 18px;
    }

    .mgm-upsell-image-dialog__image {
      min-width: 250px;
    }
  }

  .mgm-selling-fast-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--mgm-sf-bg, #fcd9e1);
    color: var(--mgm-sf-color, #1a1a1a);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    max-width: 100%;
  }

  .mgm-selling-fast-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--mgm-sf-dot, #e63946);
    flex-shrink: 0;
  }

  .mgm-selling-fast-badge__title {
    font-weight: 700;
  }

  .mgm-selling-fast-badge__text {
    font-weight: 400;
  }

  /* Styles de l'option de garantie */
  .mgm-warranty-option {
    margin-bottom: 20px;
  }

  .mgm-warranty-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background-color: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
  }

  .mgm-warranty-toggle:hover {
    border-color: #43aa8b;
    background-color: #f9fafb;
  }

  .mgm-warranty-toggle:has(.mgm-warranty-checkbox:checked) {
    border-color: #43aa8b;
    background-color: #f9fafb;
    box-shadow: none;
  }

  .mgm-warranty-toggle__checkbox-wrapper {
    position: relative;
    flex-shrink: 0;
  }

  .mgm-warranty-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    pointer-events: none;
  }

  .mgm-warranty-toggle__checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1.5px solid #9ca3af;
    background-color: white;
    transition: all 0.2s ease;
    position: relative;
  }

  .mgm-warranty-toggle__checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  .mgm-warranty-checkbox:checked + .mgm-warranty-toggle__checkmark {
    background-color: #43aa8b;
    border-color: #43aa8b;
  }

  .mgm-warranty-checkbox:checked + .mgm-warranty-toggle__checkmark::after {
    display: block;
  }

  .mgm-warranty-toggle__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background-color: #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    overflow: hidden;
  }

  .mgm-warranty-toggle__icon--custom {
    background-color: transparent;
    width: 48px;
    height: 48px;
  }

  .mgm-warranty-toggle__icon svg {
    width: 22px;
    height: 22px;
  }

  .mgm-warranty-toggle__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mgm-warranty-toggle__content {
    flex: 1;
    min-width: 0;
  }

  .mgm-warranty-toggle__title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 2px 0;
    line-height: 1.3;
  }

  .mgm-warranty-toggle__description {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
    line-height: 1.3;
  }

  .mgm-warranty-toggle__price {
    flex-shrink: 0;
    text-align: right;
  }

  .mgm-warranty-toggle__price-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
  }

  @media (max-width: 768px) {
    .mgm-warranty-toggle {
      gap: 10px;
      padding: 8px 12px;
    }

    .mgm-warranty-toggle__icon {
      width: 30px;
      height: 30px;
    }

    .mgm-warranty-toggle__icon--custom {
      width: 42px;
      height: 42px;
    }

    .mgm-warranty-toggle__icon svg {
      width: 18px;
      height: 18px;
    }

    .mgm-warranty-toggle__icon img {
      width: 100%;
      height: 100%;
    }

    .mgm-warranty-toggle__title {
      font-size: 14px;
    }

    .mgm-warranty-toggle__description {
      font-size: 12px;
    }

    .mgm-warranty-toggle__price-value {
      font-size: 15px;
    }

    .mgm-warranty-toggle__checkmark {
      width: 20px;
      height: 20px;
    }

    .mgm-warranty-toggle__checkmark::after {
      left: 5px;
      top: 2px;
      width: 5px;
      height: 8px;
    }
  }

  /* Styles du sélecteur d'abonnement */
  .mgm-subscription-selector {
    margin-bottom: 25px;
  }

  /* Styles pour l'option d'achat de 2 produits */
  .mgm-qty2-selector {
    margin-bottom: 25px;
    display: none;
  }

  .mgm-qty2-selector--visible {
    display: block;
  }

  .mgm-qty2-option {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background-color: white;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .mgm-qty2-option--selected {
    border-color: #43aa8b;
    box-shadow: 0 0 0 1px #43aa8b;
  }

  .mgm-qty2-toggle {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
  }

  .mgm-qty2-toggle:hover {
    background-color: #f0fdf4;
  }

  .mgm-qty2-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    pointer-events: none;
  }

  .mgm-qty2-checkmark {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #43aa8b;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mgm-qty2-checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  .mgm-qty2-checkbox:checked + .mgm-qty2-checkmark {
    background-color: #43aa8b;
    border-color: #43aa8b;
  }

  .mgm-qty2-checkbox:checked + .mgm-qty2-checkmark::after {
    display: block;
  }

  .mgm-qty2-checkmark:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 0 2px rgba(67, 170, 139, 0.2);
  }

  .mgm-qty2-toggle__content {
    flex: 1;
    margin-left: 35px;
  }

  .mgm-qty2-toggle__title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
  }

  .mgm-qty2-toggle__pricing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mgm-qty2-toggle__price {
    font-size: 14px;
    font-weight: 600;
    color: #1f5544;
    line-height: 1;
  }

  .mgm-qty2-toggle__price-unit {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
    margin-left: 2px;
  }

  .mgm-qty2-toggle__discount {
    font-size: 12px;
    color: #059669;
    font-weight: 500;
    background-color: rgba(5, 150, 105, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
  }

  .mgm-qty2-toggle__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #43aa8b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
  }

  .mgm-pack-selectors {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
  }

  .mgm-qty2-selector--multi {
    container-type: inline-size;
  }

  .mgm-qty2-selector--multi .mgm-qty2-toggle__title {
    padding-right: 90px;
    line-height: 1.25;
  }

  .mgm-qty2-selector--multi .mgm-qty2-toggle__badge {
    background: #ef4444;
  }

  .mgm-qty2-toggle__subtitle {
    margin: 0;
    font-size: 12.5px;
    font-weight: 500;
    color: #1f5544;
  }

  .mgm-qty2-toggle__subtitle b {
    color: #059669;
  }

  .mgm-qty2-option--selected .mgm-qty2-toggle__subtitle {
    display: none;
  }

  .mgm-qty2-selector--multi .mgm-qty2-toggle__pricing {
    display: none;
  }

  .mgm-qty2-selector--multi .mgm-qty2-option--selected .mgm-qty2-toggle__pricing {
    display: flex;
  }

  .mgm-pack-multi {
    display: none;
    border-top: 1px dashed #e5e7eb;
    padding: 12px 14px 14px;
  }

  .mgm-qty2-option--selected .mgm-pack-multi {
    display: block;
  }

  .mgm-pack-multi__qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .mgm-pack-multi__qty-label {
    flex: none;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-right: 4px;
  }

  .mgm-pack-multi__qty-option {
    flex: 1;
    min-width: 0;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 5px 4px 4px;
    font: inherit;
    line-height: 1.1;
    color: #1f2937;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }

  .mgm-pack-multi__qty-option b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  .mgm-pack-multi__qty-option small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    font-variant-numeric: tabular-nums;
  }

  .mgm-pack-multi__qty-option--active {
    border-color: #43aa8b;
    background: #f0fdf4;
  }

  .mgm-pack-multi__units {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
  }

  .mgm-pack-multi__units:empty {
    display: none;
  }

  .mgm-pack-multi__unit {
    min-width: 0;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 6px 4px 7px;
    text-align: center;
    background: #fff;
  }

  .mgm-pack-multi__unit img {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
  }

  .mgm-pack-multi__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 6px 0;
  }

  .mgm-pack-multi__dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1.5px #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: box-shadow 0.15s ease;
  }

  .mgm-pack-multi__dot--active {
    box-shadow: 0 0 0 2.5px #43aa8b;
  }

  .mgm-pack-multi__unit small {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    color: #4b5563;
  }

  .mgm-pack-multi__unit small b {
    display: block;
    color: #1f2937;
    font-weight: 600;
  }

  .mgm-pack-multi__units--grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
  }

  .mgm-pack-multi__units--grid .mgm-pack-multi__unit {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding: 6px 8px;
  }

  .mgm-pack-multi__units--grid .mgm-pack-multi__unit img {
    width: 60px;
    height: 60px;
    margin: 0;
    flex: none;
  }

  .mgm-pack-multi__units--grid .mgm-pack-multi__meta {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
  }

  .mgm-pack-multi__units--grid .mgm-pack-multi__dots {
    justify-content: flex-start;
    margin: 4px 0 0;
  }

  .mgm-pack-multi__units--grid .mgm-pack-multi__unit small b {
    display: inline;
  }

  .mgm-pack-multi__units--grid .mgm-pack-multi__unit small b::after {
    content: " · ";
  }

  @container (min-width: 520px) {
    .mgm-pack-multi__units--grid {
      grid-auto-flow: column;
      grid-template-columns: none;
    }

    .mgm-pack-multi__units--grid .mgm-pack-multi__unit {
      display: block;
      text-align: center;
      padding: 6px 4px 7px;
    }

    .mgm-pack-multi__units--grid .mgm-pack-multi__unit img {
      margin: 0 auto;
    }

    .mgm-pack-multi__units--grid .mgm-pack-multi__meta {
      display: block;
    }

    .mgm-pack-multi__units--grid .mgm-pack-multi__dots {
      justify-content: center;
      margin: 4px 0;
    }

    .mgm-pack-multi__units--grid .mgm-pack-multi__unit small b {
      display: block;
    }

    .mgm-pack-multi__units--grid .mgm-pack-multi__unit small b::after {
      content: none;
    }
  }

  .mgm-unit-color-row {
    margin: 6px 0;
  }

  .mgm-unit-color-row .mgm-color-selector__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
  }

  .mgm-unit-color-row .mgm-color-selector__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mgm-size-selector {
    margin: 10px 0 4px;
  }

  .mgm-size-selector .mgm-color-selector__label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
  }

  .mgm-size-selector .mgm-color-selector__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mgm-size-selector__option .mgm-color-selector__text {
    font-weight: 600;
  }

  .mgm-size-selector__value {
    color: #43aa8b;
    font-weight: 700;
  }

  .mgm-subscription-main-option {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background-color: white;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .mgm-subscription-main-option--selected {
    border-color: #43aa8b;
    box-shadow: 0 0 0 1px #43aa8b;
  }

  .mgm-subscription-toggle {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
  }

  .mgm-subscription-toggle:hover {
    background-color: #f8fafc;
  }

  .mgm-purchase-type-checkbox {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
  }

  .mgm-subscription-toggle__content {
    flex: 1;
    margin-left: 35px;
  }

  .mgm-subscription-toggle__title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
  }

  .mgm-subscription-toggle__pricing {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mgm-subscription-toggle__price {
    font-size: 14px;
    line-height: 1;
    color: #1f2937;
  }

  .mgm-subscription-toggle__badge {
    position: absolute;
    bottom: -3px;
    right: 1px;
    background: black;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
  }

  .mgm-subscription-details {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #e5e7eb;
    background-color: #f8fafc;
  }

  .mgm-subscription-benefits {
    padding: 16px 0;
  }

  .mgm-subscription-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .mgm-subscription-benefit:last-child {
    margin-bottom: 0;
  }

  .mgm-subscription-benefit__icon {
    width: 16px;
    height: 16px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
  }

  .mgm-subscription-benefit__text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.4;
  }

  .mgm-subscription-learn-more {
    display: inline-block;
    color: #3b82f6;
    font-size: 14px;
    text-decoration: underline;
    margin-bottom: 16px;
  }

  .mgm-subscription-frequency__title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
  }

  .mgm-subscription-frequency-options {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .mgm-subscription-frequency-option {
    flex: 1;
    display: block;
    cursor: pointer;
    min-width: 0;
  }

  .mgm-subscription-frequency-radio {
    display: none;
  }

  .mgm-subscription-frequency-option__content {
    background-color: #2c2c2c;
    border: 2px solid #2c2c2c;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .mgm-subscription-frequency-option--selected .mgm-subscription-frequency-option__content {
    border-color: #43aa8b;
    background-color: #43aa8b;
  }

  .mgm-subscription-frequency-option:hover .mgm-subscription-frequency-option__content {
    border-color: #43aa8b;
    background-color: #43aa8b;
  }

  .mgm-subscription-frequency-option__title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    display: block;
    margin: 0;
    line-height: 1.2;
  }

  .mgm-subscription-frequency-option__savings {
    font-size: 11px;
    color: white;
    font-weight: 500;
    display: block;
    margin-top: 2px;
    line-height: 1.1;
  }

  /* Styles du sélecteur de variantes */
  .mgm-variant-selector-wrapper {
    position: relative;
    margin-bottom: 10px;
  }


  .mgm-color-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 15px 6px;
  }

  .mgm-color-selector__label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
  }

  .mgm-color-selector__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .mgm-color-selector__option {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
  }

  .mgm-color-selector__option--active {
    border-color: #43aa8b;
    background-color: #f0fdf4;
    color: #15803d;
  }

  .mgm-color-selector__swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    flex-shrink: 0;
  }

  .mgm-color-selector__text {
    line-height: 1;
  }

  .mgm-color-selector__label-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #43aa8b;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
  }

  .mgm-color-selector__label-number--gift {
    background-color: #10b981;
  }

  .mgm-color-selector__free-badge {
    display: inline-block;
    background-color: #10b981;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
  }

  .mgm-color-selector--secondary {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e5e7eb;
  }

  .mgm-color-selector--secondary .mgm-color-selector__option--active {
    border-color: #10b981;
    background-color: #ecfdf5;
    color: #059669;
  }

  .mgm-variant-selector {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    padding-bottom: 25px;
    justify-content: center;
    position: relative;
  }

  .mgm-variant-selector__option {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    flex: 1;
    max-width: 160px;
    text-align: center;
  }

  .mgm-variant-selector__option:hover {
    border-color: #43aa8b;
  }

  .mgm-variant-selector__option--selected {
    border-color: #43aa8b;
    background-color: #ffffff;
  }

  .mgm-variant-selector__option--unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
  }

  .mgm-variant-selector__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .mgm-variant-selector__checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: #43aa8b;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
  }

  .mgm-variant-selector__option--selected .mgm-variant-selector__checkbox {
    display: flex;
  }

  .mgm-variant-selector__checkbox::after {
    content: "✓";
    color: white;
    font-size: 16px;
    font-weight: bold;
  }

  .mgm-variant-selector__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    width: 100%;
  }

  .mgm-variant-selector__image {
    width: 100px;
    height: 100px;
    object-fit: contain;
  }

  .mgm-variant-selector__details {
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    container-type: inline-size;
  }

  .mgm-variant-selector__title {
    margin: 0;
    font-size: clamp(13px, 4vw, 18px);
    font-size: clamp(12px, 16cqi, 18px);
    line-height: 1.2;
    font-weight: 700;
    color: #2c2c2c;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }

  .mgm-variant-selector__subtitle {
    margin: 4px 0 0;
    font-size: clamp(11.5px, 3vw, 13px);
    font-size: clamp(11.5px, 12.5cqi, 13px);
    color: #495057;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
  }

  .mgm-variant-selector__surfaces {
    list-style: none;
    margin: auto 0 0;
    padding-top: 12px;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }

  .mgm-variant-selector__surface {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.1;
  }

  .mgm-variant-selector__surface-icon {
    font-size: 19px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
  }

  .mgm-variant-selector__surface-label {
    font-size: 11px;
    font-weight: 600;
    color: #4f5d57;
    text-align: center;
  }

  .mgm-variant-selector__option--outofstock .mgm-variant-selector__surface-label {
    color: #9ca3af;
  }

  .mgm-variant-selector__current-price {
    font-size: 20px;
    font-weight: 800;
    color: #2c2c2c;
  }

  .mgm-variant-selector__compare-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
  }

  .mgm-variant-selector__badge {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mgm-variant-selector__option--outofstock {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
  }

  .mgm-variant-selector__option--outofstock .mgm-variant-selector__title,
  .mgm-variant-selector__option--outofstock .mgm-variant-selector__subtitle {
    color: #9ca3af;
  }

  .mgm-variant-selector__option--outofstock .mgm-variant-selector__image {
    filter: grayscale(100%);
  }

  .mgm-variant-selector__option--outofstock:hover {
    border-color: #d1d5db !important;
  }

  .mgm-variant-selector__outofstock-badge {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    background-color: #ef4444;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mgm-variant-selector__popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  .mgm-variant-selector__popular-badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: black;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    line-height: 1;
  }

  .mgm-variant-selector__popular-badge img {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-left: 2px;
  }

  .mgm-variant-selector__option--popular {
    margin-top: 8px;
  }

  .mgm-variant-selector__option--frame {
    --frame-fill: linear-gradient(#ffffff, #ffffff);
    --frame-fill-selected: var(--frame-fill);
    --frame-border: linear-gradient(#43aa8b, #43aa8b);
    --frame-accent: #43aa8b;
    --frame-glow: rgba(67, 170, 139, 0.2);
    --frame-shadow: rgba(0, 0, 0, 0.25);
    --frame-title: #2c2c2c;
    --frame-text: #495057;
    --frame-label-bg: var(--frame-accent);
    --frame-label-color: #ffffff;
    --frame-deco-a: none;
    --frame-deco-b: none;
    border-color: transparent;
    background: var(--frame-fill) padding-box, var(--frame-border) border-box;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }

  .mgm-variant-selector__option--frame:hover,
  .mgm-variant-selector__option--frame.mgm-variant-selector__option--selected {
    border-color: transparent;
  }

  .mgm-variant-selector__option--frame.mgm-variant-selector__option--selected {
    background: var(--frame-fill-selected) padding-box, var(--frame-border) border-box;
    box-shadow: 0 0 0 3px var(--frame-glow), 0 12px 24px -14px var(--frame-shadow);
    transform: translateY(-2px);
  }

  .mgm-variant-selector__option--frame .mgm-variant-selector__title {
    color: var(--frame-title);
  }

  .mgm-variant-selector__option--frame .mgm-variant-selector__subtitle {
    color: var(--frame-text);
  }

  .mgm-variant-selector__option--frame .mgm-variant-selector__checkbox {
    background-color: var(--frame-accent);
  }

  .mgm-variant-frame__deco {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    background: center / contain no-repeat;
    transform: rotate(var(--deco-rotate));
    transform-origin: 50% 90%;
  }

  .mgm-variant-frame__deco--a {
    --deco-rotate: -16deg;
    width: 36px;
    height: 36px;
    left: -22px;
    bottom: 16px;
    background-image: var(--frame-deco-a);
  }

  .mgm-variant-frame__deco--b {
    --deco-rotate: 28deg;
    width: 26px;
    height: 26px;
    right: -16px;
    top: 38%;
    background-image: var(--frame-deco-b);
  }

  .mgm-variant-selector__option--frame.mgm-variant-selector__option--selected .mgm-variant-frame__deco {
    animation: mgm-frame-sway 2.8s ease-in-out infinite alternate;
  }

  .mgm-variant-selector__option--frame.mgm-variant-selector__option--selected .mgm-variant-frame__deco--b {
    animation-delay: -1.4s;
  }

  @keyframes mgm-frame-sway {
    from { transform: rotate(var(--deco-rotate)) translateY(0); }
    to { transform: rotate(calc(var(--deco-rotate) + 12deg)) translateY(-3px); }
  }

  .mgm-variant-frame__label {
    position: absolute;
    left: 50%;
    top: -12px;
    z-index: 3;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--frame-label-bg);
    color: var(--frame-label-color);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 3px 8px -2px var(--frame-shadow);
  }

  .mgm-variant-frame--automne {
    --frame-fill: linear-gradient(180deg, #fffaf2 0%, #fff3e3 100%);
    --frame-fill-selected: linear-gradient(180deg, #fff7ec 0%, #ffead2 100%);
    --frame-border: linear-gradient(140deg, #f59e0b 0%, #ea580c 38%, #b91c1c 68%, #d97706 100%);
    --frame-accent: #d9480f;
    --frame-glow: rgba(234, 88, 12, 0.18);
    --frame-shadow: rgba(180, 83, 9, 0.5);
    --frame-title: #3b1d0b;
    --frame-text: #6b4a35;
    --frame-label-bg: linear-gradient(90deg, #ea580c, #b91c1c);
    --frame-deco-a: url('/wp-content/themes/patouna/assets/mgm-variant-frame-automne-cluster.webp?v=3ede8ff33d');
    --frame-deco-b: url('/wp-content/themes/patouna/assets/mgm-variant-frame-automne-leaf.webp?v=6d03764b97');
  }

  .mgm-variant-frame--black-friday {
    --frame-fill: linear-gradient(180deg, #1f1f1f 0%, #0b0b0b 100%);
    --frame-fill-selected: linear-gradient(180deg, #2a2a2a 0%, #111111 100%);
    --frame-border: linear-gradient(135deg, #f7e08f 0%, #b8860b 35%, #fff4c9 55%, #b8860b 100%);
    --frame-accent: #d4a72c;
    --frame-glow: rgba(212, 167, 44, 0.3);
    --frame-shadow: rgba(0, 0, 0, 0.6);
    --frame-title: #ffffff;
    --frame-text: #d4d4d4;
    --frame-label-bg: linear-gradient(90deg, #f7e08f, #d4a72c);
    --frame-label-color: #111111;
  }

  .mgm-variant-frame--noel {
    --frame-fill: linear-gradient(180deg, #fffdf8 0%, #fdf1ee 100%);
    --frame-border: repeating-linear-gradient(45deg, #c1121f 0 8px, #ffffff 8px 11px, #1b7f4c 11px 19px, #ffffff 19px 22px);
    --frame-accent: #c1121f;
    --frame-glow: rgba(193, 18, 31, 0.16);
    --frame-shadow: rgba(127, 29, 29, 0.45);
    --frame-title: #3a0d10;
    --frame-label-bg: linear-gradient(90deg, #c1121f, #9b0d18);
  }

  @media (max-width: 380px) {
    .mgm-variant-frame__label {
      font-size: 9.5px;
      padding: 3px 8px;
    }

    .mgm-variant-frame__deco--a {
      width: 30px;
      height: 30px;
      left: -18px;
    }

    .mgm-variant-frame__deco--b {
      width: 22px;
      height: 22px;
      right: -13px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mgm-variant-selector__option--frame,
    .mgm-variant-selector__option--frame.mgm-variant-selector__option--selected .mgm-variant-frame__deco {
      animation: none;
      transition: none;
    }
  }

  @media (max-width: 768px) {
    .mgm-variant-selector {
      flex-wrap: wrap;
      gap: 8px;
    }

    .mgm-variant-selector__option {
      min-width: calc(33.333% - 8px);
      padding-left: 9px;
      padding-right: 9px;
    }

    .mgm-subscription-frequency-options {
      gap: 6px;
    }

    .mgm-subscription-toggle {
      padding: 12px 16px;
    }

    .mgm-subscription-toggle__content {
      margin-left: 30px;
    }

    .mgm-subscription-details {
      padding: 0 16px 16px 16px;
    }

    .mgm-subscription-benefits {
      padding: 12px 0;
    }

    .mgm-subscription-benefit__text {
      font-size: 14px;
    }
  }

  .mgm-add-to-cart-payments-icons {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 2px;
      margin-top: 5px;
  }

  .mgm-add-to-cart__button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    background-color: #43aa8b;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .mgm-add-to-cart__button:hover {
    background-color: #DD9933;
  }
  
  .mgm-add-to-cart__text {
    font-size: 16px;
    letter-spacing: 1px;
  }
  
  .mgm-add-to-cart__price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  
  .mgm-add-to-cart__price {
    font-weight: 800;
    font-size: 16px;
  }
  
  .mgm-add-to-cart__compare-price {
    font-size: 12px;
    text-decoration: line-through;
    opacity: 0.8;
  }
  
  .mgm-add-to-cart__guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
    color: #555;
    font-size: 16px;
  }
  
  .mgm-add-to-cart__guarantee-icon {
    vertical-align: middle;
  }
  
  .mgm-add-to-cart__guarantee-text {
    font-weight: 700;
  }

  .mgm-add-to-cart__klarna-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 5px;
  }

  .mgm-add-to-cart__klarna-info-secondary {
    justify-content: flex-start;
    margin-top: 3px;
    margin-bottom: 3px;
  }

  .mgm-add-to-cart__klarna-text {
    font-size: 14px;
    color: black;
  }

  #mgm-klarna-price,
  #mgm-klarna-price-secondary {
    font-weight: 700;
  }

  .mgm-add-to-cart__klarna-logo {
    height: 16px;
    width: auto;
    opacity: 0.85;
  }

  @media (max-width: 768px) {
    .mgm-add-to-cart__klarna-text {
      font-size: 14px;
    }

    .mgm-add-to-cart__klarna-logo {
      height: 18px;
    }
  }

  .mgm-currency {
    font-size: 0.65em;
    margin-left: 1px;
  }

  .mgm-add-to-cart__klarna-text .mgm-currency {
    font-size: inherit;
  }

  /* Styles du témoignage client */
 .mgm-customer-testimonial {
     display: flex;
     align-items: stretch;
     gap: 15px;
     margin-top: 25px;
     margin-bottom: 20px;
     padding: 16px;
     background-color: #fff8f0;
     border-radius: 12px;
     border: 1px solid #DD9933;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
     min-height: 140px;
 }
  
 .mgm-customer-testimonial__avatar {
   flex-shrink: 0;
   height: 100%;
   display: flex;
   width: 90px;
 }
  
 .mgm-customer-testimonial__avatar img {
   height: 100%;
   width: 100%;
   border-radius: 0;
   object-fit: cover;
   border: 2px solid #f0e6d2;
 }
  
  .mgm-customer-testimonial__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
  }
  
  .mgm-customer-testimonial__text {
    font-style: normal;
    color: #2c2c2c;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
  }
  
  .mgm-customer-testimonial__author-info {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .mgm-customer-testimonial__author {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 14px;
  }
  
  .mgm-customer-testimonial__verified {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #f97316;
    background-color: rgba(249, 115, 22, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
  }
  
  .mgm-customer-testimonial__verified-icon {
    vertical-align: middle;
    width: 14px;
    height: 14px;
  }

  .mgm-secret-code {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fde047;
    border-radius: 12px;
    transition: all 0.3s ease;
  }

  .mgm-secret-code--validated {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #43aa8b;
  }

  .mgm-secret-code__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
  }

  .mgm-secret-code__icon {
    color: #ca8a04;
    flex-shrink: 0;
  }

  .mgm-secret-code--validated .mgm-secret-code__icon {
    color: #43aa8b;
  }

  .mgm-secret-code__title {
    font-size: 15px;
    font-weight: 700;
    color: #854d0e;
  }

  .mgm-secret-code--validated .mgm-secret-code__title {
    color: #166534;
  }

  .mgm-secret-code__description {
    font-size: 13px;
    color: #a16207;
    margin: 0 0 12px 0;
    line-height: 1.4;
  }

  .mgm-secret-code--validated .mgm-secret-code__description {
    display: none;
  }

  .mgm-secret-code__input-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .mgm-secret-code--validated .mgm-secret-code__input-wrapper {
    display: none;
  }

  .mgm-secret-code__input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 2px solid #fde047;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background-color: white;
    transition: all 0.2s ease;
    outline: none;
  }

  .mgm-secret-code__input:focus {
    border-color: #ca8a04;
    box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.15);
  }

  .mgm-secret-code__input::placeholder {
    color: #9ca3af;
    font-weight: 400;
  }

  .mgm-secret-code__input--error {
    border-color: #ef4444;
    animation: mgm-shake 0.5s ease;
  }

  @keyframes mgm-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
  }

  .mgm-secret-code__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    background-color: #ca8a04;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
  }

  @media (max-width: 400px) {
    .mgm-secret-code__input-wrapper {
      flex-direction: column;
    }

    .mgm-secret-code__btn {
      width: 100%;
    }
  }

  .mgm-secret-code__btn:hover {
    background-color: #a16207;
    transform: translateY(-1px);
  }

  .mgm-secret-code__btn:active {
    transform: translateY(0);
  }

  .mgm-secret-code__btn--loading {
    pointer-events: none;
    opacity: 0.7;
  }

  .mgm-secret-code__btn--loading .mgm-secret-code__btn-text {
    display: none;
  }

  .mgm-secret-code__btn--loading .mgm-secret-code__btn-arrow {
    animation: mgm-spin 1s linear infinite;
  }

  @keyframes mgm-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .mgm-secret-code__feedback {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    animation: mgm-fadeIn 0.3s ease;
  }

  @keyframes mgm-fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .mgm-secret-code__feedback--error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
  }

  .mgm-secret-code__feedback--visible {
    display: flex;
  }

  .mgm-secret-code__success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: white;
    border: 2px solid #43aa8b;
    border-radius: 10px;
    animation: mgm-successPop 0.4s ease;
  }

  @keyframes mgm-successPop {
    0% { opacity: 0; transform: scale(0.9); }
    50% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
  }

  .mgm-secret-code__success--visible {
    display: flex;
  }

  .mgm-secret-code__success-icon {
    width: 40px;
    height: 40px;
    background-color: #43aa8b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    animation: mgm-checkPop 0.5s ease 0.2s both;
  }

  @keyframes mgm-checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }

  .mgm-secret-code__success-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .mgm-secret-code__success-title {
    font-size: 14px;
    font-weight: 700;
    color: #166534;
  }

  .mgm-secret-code__success-product {
    font-size: 13px;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mgm-secret-code__success-badge {
    background-color: #43aa8b;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    animation: mgm-badgePulse 1.5s ease infinite;
  }

  @keyframes mgm-badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }

  @media (max-width: 768px) {
    .mgm-secret-code {
      padding: 14px;
    }

    .mgm-secret-code__title {
      font-size: 14px;
    }

    .mgm-secret-code__description {
      font-size: 12px;
    }

    .mgm-secret-code__input {
      padding: 10px 12px;
      font-size: 13px;
    }

    .mgm-secret-code__btn {
      padding: 10px 14px;
      font-size: 13px;
    }

    .mgm-secret-code__success {
      padding: 10px;
      gap: 10px;
    }

    .mgm-secret-code__success-icon {
      width: 36px;
      height: 36px;
    }

    .mgm-secret-code__success-icon svg {
      width: 20px;
      height: 20px;
    }

    .mgm-secret-code__success-title {
      font-size: 13px;
    }

    .mgm-secret-code__success-product {
      font-size: 12px;
    }

    .mgm-secret-code__success-badge {
      padding: 5px 10px;
      font-size: 11px;
    }
  }

  .mgm-fs-widget {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(100px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .mgm-fs-widget--visible {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
  }

  .mgm-fs-widget--hidden {
    opacity: 0;
    transform: translateY(-50%) translateX(100px);
    pointer-events: none;
  }

  .mgm-fs-widget--faded {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    pointer-events: none;
  }

  .mgm-fs-widget__circle {
    position: relative;
    width: 90px;
    height: 90px;
    background-color: #f0fdf4;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
  }

  .mgm-fs-widget--success .mgm-fs-widget__circle {
    background-color: #dcfce7;
    box-shadow: 0 4px 20px rgba(67, 170, 139, 0.3);
  }

  .mgm-fs-widget__ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
  }

  .mgm-fs-widget__ring-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 5;
  }

  .mgm-fs-widget__ring-fill {
    fill: none;
    stroke: #43aa8b;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.6s ease;
  }

  .mgm-fs-widget--success .mgm-fs-widget__ring-fill {
    stroke: #10b981;
  }

  .mgm-fs-widget__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--mgm-fs-icon-size, 52px);
    height: var(--mgm-fs-icon-size, 52px);
  }

  .mgm-fs-widget__icon-img {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--mgm-fs-icon-size, 52px);
    height: var(--mgm-fs-icon-size, 52px);
    object-fit: contain;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .mgm-fs-widget__icon-img--paid {
    opacity: 1;
    transform: scale(1);
  }

  .mgm-fs-widget__icon-img--free {
    opacity: 0;
    transform: scale(0.6);
  }

  .mgm-fs-widget--success .mgm-fs-widget__icon-img--paid {
    opacity: 0;
    transform: scale(0.6);
  }

  .mgm-fs-widget--success .mgm-fs-widget__icon-img--free {
    opacity: 1;
    transform: scale(1);
  }

  .mgm-fs-widget__label {
    display: block;
    max-width: 110px;
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    line-height: 1.25;
    background-color: white;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .mgm-fs-widget--success .mgm-fs-widget__label {
    color: #166534;
    background-color: #dcfce7;
  }

  .mgm-fs-widget__confetti {
    position: absolute;
    top: -80px;
    left: -55px;
    width: 220px;
    height: 220px;
    pointer-events: none;
    z-index: 10000;
  }

  @media (max-width: 768px) {
    .mgm-fs-widget {
      right: 10px;
      top: 18%;
    }

    .mgm-fs-widget__circle {
      width: 60px;
      height: 60px;
    }

    .mgm-fs-widget__icon {
      width: var(--mgm-fs-icon-size-mobile, calc(var(--mgm-fs-icon-size, 52px) * 0.65));
      height: var(--mgm-fs-icon-size-mobile, calc(var(--mgm-fs-icon-size, 52px) * 0.65));
    }

    .mgm-fs-widget__icon-img {
      width: var(--mgm-fs-icon-size-mobile, calc(var(--mgm-fs-icon-size, 52px) * 0.65));
      height: var(--mgm-fs-icon-size-mobile, calc(var(--mgm-fs-icon-size, 52px) * 0.65));
    }

    .mgm-fs-widget__label {
      max-width: 80px;
      font-size: 10px;
      padding: 3px 6px;
    }

    .mgm-fs-widget__confetti {
      top: -80px;
      left: -50px;
      width: 170px;
      height: 170px;
    }
  }
