/* Wicked Corporation — basket routing for rings, 12 Nov 2026.
 * A ring card is not a basket line: only "Ajouter au panier" puts the chosen ring (colour,
 * size, quantity) in the basket. card-b-20261111.css and card-vitrine-20261111c.css hid that
 * button, so a ring could only be bought alone. It comes back here as a compact "+ Panier"
 * button between the price and Acheter; the price and the name move left to make room.
 * Loaded after every other card sheet. */
@container wc-cards (min-height: 165px) {
  html body [class*="_card_1214w_"][data-wc-kind="ring"] { --v-cart: 50px; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_buySoloBtn_1214w_"][class*="_addToCartBtn_1214w_"] {
    display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 1px !important;
    position: absolute !important; z-index: 3; right: calc(var(--v-p) + 6px + var(--v-buy) + 6px) !important; bottom: calc(var(--v-pb) + 6px) !important; top: auto !important; left: auto !important;
    width: var(--v-cart) !important; height: calc(var(--v-bar) - 12px) !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
    font-size: 0 !important; line-height: 1 !important; color: rgb(238, 241, 244) !important;
    background: rgba(14, 18, 22, 0.55) !important; border: 1px solid rgba(207, 213, 221, 0.55) !important; border-radius: 3px !important; box-shadow: none !important;
  }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"] > * { display: none !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"]::before { content: "+"; font-size: 17px; font-weight: 600; line-height: 0.9; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"]::after { content: "Panier"; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"]:hover { border-color: rgb(243, 245, 247) !important; background: rgba(243, 245, 247, 0.12) !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"]:focus-visible { outline: 2px solid rgb(243, 245, 247) !important; outline-offset: 2px !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"]:disabled { opacity: 0.45 !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_prix_1214w_"] { right: calc(var(--v-p) + 6px + var(--v-buy) + 6px + var(--v-cart) + 6px) !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_previewName_1214w_"] { right: calc(var(--v-p) + var(--v-buy) + var(--v-price) + var(--v-cart) + 28px) !important; }
}
@media (min-width: 901px) {
  html body [class*="_card_1214w_"][data-wc-kind="ring"] { --v-cart: 58px; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_buySoloBtn_1214w_"][class*="_addToCartBtn_1214w_"] {
    display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 1px !important;
    position: absolute !important; z-index: 3; right: calc(var(--v-p) + 6px + var(--v-buy) + 6px) !important; bottom: calc(var(--v-pb) + 6px) !important; top: auto !important; left: auto !important;
    width: var(--v-cart) !important; height: calc(var(--v-bar) - 12px) !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
    font-size: 0 !important; line-height: 1 !important; color: rgb(238, 241, 244) !important;
    background: rgba(14, 18, 22, 0.55) !important; border: 1px solid rgba(207, 213, 221, 0.55) !important; border-radius: 3px !important; box-shadow: none !important;
  }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"] > * { display: none !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"]::before { content: "+"; font-size: 17px; font-weight: 600; line-height: 0.9; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"]::after { content: "Panier"; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"]:hover { border-color: rgb(243, 245, 247) !important; background: rgba(243, 245, 247, 0.12) !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"]:focus-visible { outline: 2px solid rgb(243, 245, 247) !important; outline-offset: 2px !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"]:disabled { opacity: 0.45 !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_prix_1214w_"] { right: calc(var(--v-p) + 6px + var(--v-buy) + 6px + var(--v-cart) + 6px) !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_previewName_1214w_"] { right: calc(var(--v-p) + var(--v-buy) + var(--v-price) + var(--v-cart) + 28px) !important; }
}
@media (max-width: 420px) {
  @container wc-cards (min-height: 165px) {
    html body [class*="_card_1214w_"][data-wc-kind="ring"] { --v-cart: 44px; --v-price: 72px; }
    html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_prix_1214w_"] { font-size: clamp(13px, 6.6cqh, 16px) !important; }
  }
}

/* Revision b, 12 Nov 2026: the ring preview was a strip of about 20 px on phones (the colour
 * rows took the photo frame's height), and the product description sat over the sizes.
 * Ring cards: no description; on phones the 3D ring takes the right side of the card, beside
 * the colour rows; a ring with a single colour (no swatches) gives back the swatch space and
 * hides its empty colour line. */
@container wc-cards (min-height: 165px) {
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_descriptionBlock_1214w_"] { display: none !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"]:not(:has([class*="_swatch_1214w_"])) { --v-swh: 0px; --v-color: 0px !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"]:not(:has([class*="_swatch_1214w_"])) [class*="_mobileColor_1214w_"] { display: none !important; }
}
@media (min-width: 901px) {
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_descriptionBlock_1214w_"] { display: none !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"]:not(:has([class*="_swatch_1214w_"])) { --v-swh: 0px; --v-color: 0px !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"]:not(:has([class*="_swatch_1214w_"])) [class*="_mobileColor_1214w_"] { display: none !important; }
}
@media (max-width: 900px) {
  @container wc-cards (min-height: 165px) {
    html body [class*="_card_1214w_"][data-wc-kind="ring"] { --v-ringw: 40%; }
    html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_previewSelect_1214w_"] [class*="_hote_"]:not([class*="_hote_10qt7_"]) {
      top: calc(var(--v-p) + var(--v-top) + 2px) !important; bottom: calc(var(--v-sz) + var(--v-line) + 6px) !important;
      left: auto !important; right: calc(var(--v-p) + 26px) !important; width: calc(var(--v-ringw) - 30px) !important;
    }
    html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_hote_10qt7_"] canvas { transform: scale(1.4) !important; }
    html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_swatches_1214w_"] { right: var(--v-ringw) !important; }
    html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_mobileColor_1214w_"] { right: var(--v-ringw) !important; }
    html body [class*="_card_1214w_"][data-wc-kind="ring"]:not(:has([class*="_swatch_1214w_"])) [class*="_previewSelect_1214w_"] [class*="_hote_"]:not([class*="_hote_10qt7_"]) { left: calc(var(--v-p) + 34px) !important; right: calc(var(--v-p) + 34px) !important; width: auto !important; }
  }
}

/* Scroll cues for the size and colour lines (classes set by scroll-cartes-20261112.js), and
 * the quantity taking vertical swipes instead of scrolling the page. */
html body [class*="_card_1214w_"] [class*="_sizes_1214w_"], html body [class*="_card_1214w_"] [class*="_swatches_1214w_"] { scroll-behavior: auto; overscroll-behavior-x: contain; cursor: grab; }
html body [class*="_card_1214w_"] .wc-more-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
html body [class*="_card_1214w_"] .wc-more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 26px); mask-image: linear-gradient(90deg, transparent, #000 26px); }
html body [class*="_card_1214w_"] .wc-more-left.wc-more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); }
html body [class*="_card_1214w_"] [class*="_headQty_1214w_"] { touch-action: none; cursor: ns-resize; }
html body [class*="_card_1214w_"] [class*="_headQty_1214w_"] button { cursor: pointer; }

/* Computers 901-1279 px (cards about 400 px wide): Acheter kept to its column (it grew to
 * 132 px over the price), and the size line stops before "Pièce unique" or the quantity. */
@media (min-width: 901px) {
  html body [class*="_card_1214w_"] [class*="_buySoloBtn_1214w_"]:not([class*="_addToCartBtn_1214w_"]) { width: var(--v-buy) !important; min-width: 0 !important; max-width: var(--v-buy) !important; }
  html body [class*="_card_1214w_"]:has([class*="_badge_1214w_"]) [class*="_sizeBlock_1214w_"] { max-width: calc(100% - 2 * var(--v-p) - 146px) !important; overflow: hidden !important; }
  html body [class*="_card_1214w_"]:has([class*="_headQty_1214w_"]) [class*="_sizeBlock_1214w_"] { max-width: calc(100% - 2 * var(--v-p) - 122px) !important; }
  html body [class*="_card_1214w_"]:has([class*="_headQty_1214w_"]) [class*="_sizes_1214w_"] { min-width: 0 !important; overflow-x: auto !important; scrollbar-width: none !important; }
}

/* Very small phones (card lower than 165 px, e.g. 320 x 568): the compact card had no room
 * for the ring colours (they fell below the card) nor for "+ Panier". Ring cards there: no
 * description; on the right of the preview, from top to bottom: colours (one line that
 * scrolls), sizes (one line that scrolls), quantity, then price, + Panier and Acheter. */
@container wc-cards (max-height: 164.98px) {
  html body [class*="_card_1214w_"][data-wc-kind="ring"] { position: relative !important; --r-l: calc(38% + 4px); }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_descriptionBlock_1214w_"], html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_mobileColor_1214w_"] { display: none !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_swatches_1214w_"] {
    position: absolute !important; left: var(--r-l) !important; right: 6px !important; top: 30px !important; height: 22px !important; width: auto !important;
    display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: 6px !important;
    min-height: 0 !important; overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none !important; margin: 0 !important; padding: 0 2px !important;
  }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_swatches_1214w_"]::-webkit-scrollbar { display: none !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_swatches_1214w_"]::before, html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_swatches_1214w_"]::after { display: none !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_swatch_1214w_"] { flex: 0 0 18px !important; width: 18px !important; height: 18px !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 50% !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_sizeBlock_1214w_"] { position: absolute !important; left: var(--r-l) !important; right: 6px !important; top: 56px !important; height: 22px !important; width: auto !important; margin: 0 !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_headQty_1214w_"] { position: absolute !important; right: 6px !important; left: auto !important; top: 82px !important; margin: 0 !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_prixBlock_1214w_"] { position: absolute !important; left: var(--r-l) !important; right: 6px !important; bottom: 5px !important; top: auto !important; height: 30px !important; width: auto !important; display: flex !important; flex-direction: row !important; align-items: stretch !important; gap: 4px !important; margin: 0 !important; padding: 0 !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_prixRow_1214w_"] { display: contents !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_prix_1214w_"] { order: 1; flex: 0 0 auto !important; height: 30px !important; margin: 0 !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_buySoloBtn_1214w_"][class*="_addToCartBtn_1214w_"] {
    order: 2; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
    position: static !important; flex: 0 0 34px !important; width: 34px !important; height: 30px !important; max-height: 30px !important; min-height: 0 !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
    font-size: 0 !important; color: rgb(238, 241, 244) !important; background: rgba(14, 18, 22, 0.55) !important; border: 1px solid rgba(207, 213, 221, 0.55) !important; border-radius: 3px !important; box-shadow: none !important;
  }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"] > * { display: none !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"]::before { content: "+"; font-size: 14px; font-weight: 600; line-height: 0.9; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_addToCartBtn_1214w_"]::after { content: "Panier"; font-size: 6.5px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_sizeBlock_1214w_"] [class*="_productInfoLabel_1214w_"] { display: none !important; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_prixRow_1214w_"] [class*="_buySoloBtn_1214w_"] { order: 3; flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; height: 30px !important; min-height: 0 !important; margin: 0 !important; }
  html body [class*="_card_1214w_"] [class*="_prixRow_1214w_"] [class*="_buySoloBtn_1214w_"] { height: 30px !important; max-height: 30px !important; min-height: 0 !important; }
}
@media (min-width: 901px) and (max-width: 1439px) {
  html body [class*="_card_1214w_"][data-wc-kind="ring"] { --v-cart: 46px; }
  html body [class*="_card_1214w_"][data-wc-kind="ring"] [class*="_previewName_1214w_"] { font-size: 14px !important; }
}
