
/* SearchPartsBMW ETK front v0.11.7 - loaded explicitly */
.spb-etk-front {
  display: block;
  margin-top: 18px;
}

.spb-etk-front__notice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: flex-start;
  justify-content: space-between;
  background: #f4f8fb;
  border: 1px solid #d9edf7;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  color: #24495d;
}

.spb-etk-front__notice strong {
  display: block;
  font-size: 1rem;
}

.spb-etk-front__notice span {
  display: block;
  font-size: .9rem;
  color: #567;
}

.spb-etk-diagram-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.spb-etk-diagram-card {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 15px;
  color: #222 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  transition: transform .15s ease, border-color .15s ease;
  min-height: 126px;
}

.spb-etk-diagram-card:hover {
  transform: translateY(-2px);
  border-color: #d33;
  color: #222 !important;
  text-decoration: none !important;
}

.spb-etk-diagram-code {
  display: inline-flex;
  width: fit-content;
  font-weight: 800;
  color: #d11;
  font-size: .9rem;
  background: #fff2f2;
  border-radius: 999px;
  padding: 3px 8px;
}

.spb-etk-diagram-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  color: #111;
}

.spb-etk-diagram-card small {
  display: block;
  color: #666;
  line-height: 1.3;
}

.spb-etk-diagram-card em {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: #111;
  margin-top: auto;
}

.spb-etk-front__diagram-head {
  margin-bottom: 16px;
}

.spb-etk-front__diagram-head h3 {
  font-size: 1.35rem;
  margin: 8px 0 4px;
}

.spb-etk-front__diagram-head p {
  color: #666;
  margin: 0;
}

.spb-etk-back {
  display: inline-flex;
  text-decoration: none;
  font-weight: 800;
  margin-bottom: 8px;
}

.spb-etk-front__image {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  padding: 12px;
  text-align: center;
  margin: 14px 0 18px;
}

.spb-etk-front__image img {
  max-width: 100%;
  height: auto;
}

.spb-etk-front__image figcaption {
  font-size: .84rem;
  color: #666;
  margin-top: 8px;
}

.spb-etk-front__locked {
  background: #fafafa;
  border: 1px dashed #bbb;
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0 18px;
}

.spb-etk-front__locked--muted {
  background: #fff;
  color: #666;
}

.spb-etk-front__locked strong {
  display: block;
  margin-bottom: 6px;
}

.spb-etk-qty-note {
  background: #fff8e8;
  border: 1px solid #f3dfaa;
  border-radius: 14px;
  padding: 10px 12px;
  color: #5a4311;
}

.spb-etk-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
}

.spb-etk-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .92rem;
}

.spb-etk-table th,
.spb-etk-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.spb-etk-table th {
  background: #f8f8f8;
  font-weight: 800;
  white-space: nowrap;
}

.spb-etk-badge {
  display: inline-flex;
  margin-left: 6px;
  border-radius: 999px;
  background: #eee;
  padding: 2px 6px;
  font-size: .75rem;
  font-weight: 800;
}

.spb-etk-muted {
  color: #aaa;
}

.spb-etk-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
}

.spb-etk-status--available {
  background: #edf8ed;
  color: #245d2d;
  border: 1px solid #cfe8d0;
}

.spb-etk-status--unavailable {
  background: #f7f7f7;
  color: #666;
  border: 1px solid #ddd;
}

.spb-etk-status-detail {
  display: block;
  margin-top: 5px;
  font-size: .82rem;
  color: #666;
  line-height: 1.35;
}

.spb-etk-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
}

.spb-etk-action--product {
  background: #d11;
  color: #fff !important;
}

.spb-etk-action--product:hover {
  background: #a90000;
  color: #fff !important;
}

.spb-etk-action--contact {
  background: #fff;
  border: 1px solid #ccc;
  color: #333 !important;
}

.spb-etk-action--contact:hover {
  border-color: #d11;
  color: #d11 !important;
}

@media (max-width: 900px) {
  .spb-etk-diagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .spb-etk-front__notice {
    display: block;
  }

  .spb-etk-diagram-grid {
    grid-template-columns: 1fr;
  }

  .spb-etk-table,
  .spb-etk-table thead,
  .spb-etk-table tbody,
  .spb-etk-table th,
  .spb-etk-table td,
  .spb-etk-table tr {
    display: block;
  }

  .spb-etk-table thead {
    display: none;
  }

  .spb-etk-table tr {
    border-bottom: 1px solid #eee;
    padding: 10px;
  }

  .spb-etk-table td {
    border: 0;
    padding: 6px 0;
  }

  .spb-etk-table td:before {
    content: attr(data-label);
    display: block;
    font-size: .75rem;
    color: #777;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
}


/* ETK v0.11.8 simplification tableau */
.spb-etk-table th:last-child,
.spb-etk-table td:last-child {
  text-align: right;
  min-width: 150px;
}

.spb-etk-action-note {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  color: #777;
}

.spb-etk-front__locked--muted {
  text-align: center;
}

.spb-etk-front__image img[src=""] {
  display: none;
}


/* ETK v0.11.9 - miniatures des schémas sur les cartes de planches */
.spb-etk-diagram-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 118px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #eeeeee;
  overflow: hidden;
  margin-bottom: 4px;
}

.spb-etk-diagram-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.spb-etk-diagram-thumb__locked,
.spb-etk-diagram-thumb__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  width: 100%;
  height: 100%;
  font-size: .78rem;
  line-height: 1.25;
  color: #777;
}

.spb-etk-diagram-thumb__locked {
  background: repeating-linear-gradient(
    45deg,
    #f9f9f9,
    #f9f9f9 8px,
    #f1f1f1 8px,
    #f1f1f1 16px
  );
}

@media (max-width: 640px) {
  .spb-etk-diagram-thumb {
    height: 150px;
  }
}


/* ETK v0.12.0 - miniatures propres, sans barre grise */
.spb-etk-diagram-thumb {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 118px !important;
  height: 118px !important;
  border-radius: 12px !important;
  background: #fafafa !important;
  border: 1px solid #eeeeee !important;
  overflow: hidden !important;
  margin-bottom: 8px !important;
}

.spb-etk-diagram-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #fff !important;
  border: 0 !important;
}

.spb-etk-diagram-thumb__locked,
.spb-etk-diagram-thumb__placeholder {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-align: center !important;
  padding: 12px !important;
  width: 100% !important;
  height: 100% !important;
  color: #777 !important;
  background: #fafafa !important;
  line-height: 1.25 !important;
}

.spb-etk-diagram-thumb__locked {
  background: repeating-linear-gradient(
    45deg,
    #f9f9f9,
    #f9f9f9 10px,
    #f0f0f0 10px,
    #f0f0f0 20px
  ) !important;
}

.spb-etk-diagram-thumb__placeholder strong,
.spb-etk-diagram-thumb__locked strong {
  font-size: .9rem !important;
  color: #555 !important;
}

.spb-etk-diagram-thumb__placeholder small,
.spb-etk-diagram-thumb__locked small {
  font-size: .76rem !important;
  color: #777 !important;
}

.spb-etk-diagram-thumb__placeholder--noimage {
  background: #fff !important;
}

@media (max-width: 640px) {
  .spb-etk-diagram-thumb {
    min-height: 150px !important;
    height: 150px !important;
  }
}


/* ETK v0.12.1 - sécurité images invalides */
.spb-etk-diagram-thumb img[alt=""],
.spb-etk-front__image img[alt=""] {
  display: none !important;
}


/* ETK v0.12.5 - repère et référence mis en avant */
.spb-etk-table th:nth-child(1),
.spb-etk-table td:nth-child(1) {
  width: 82px;
  text-align: center;
}

.spb-etk-table th:nth-child(2),
.spb-etk-table td:nth-child(2) {
  width: 160px;
}

.spb-etk-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 900;
  font-size: .95rem;
  line-height: 1;
  letter-spacing: .02em;
}

.spb-etk-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff2f2;
  border: 1px solid #ffd2d2;
  color: #b00000;
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .98rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

.spb-etk-table td[data-label="Référence"] strong,
.spb-etk-table td[data-label="Référence BMW"] strong {
  font-weight: 900;
}

@media (max-width: 640px) {
  .spb-etk-table th:nth-child(1),
  .spb-etk-table td:nth-child(1),
  .spb-etk-table th:nth-child(2),
  .spb-etk-table td:nth-child(2) {
    width: auto;
    text-align: left;
  }

  .spb-etk-pos {
    min-width: 42px;
  }

  .spb-etk-ref {
    font-size: 1rem;
  }
}


/* ETK v0.12.8 - loupe + panier direct */
.spb-etk-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: nowrap;
}

.spb-etk-action--cart {
  border: 0;
  cursor: pointer;
  min-width: 38px;
  padding-left: 10px;
  padding-right: 10px;
  background: #111;
  color: #fff !important;
}

.spb-etk-action--cart:hover {
  background: #333;
}

.spb-etk-action--cart.is-loading,
.spb-etk-action--cart:disabled {
  opacity: .75;
  cursor: wait;
}

.spb-etk-action--cart.is-added {
  background: #1f7a33;
}

.spb-etk-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(18px);
  z-index: 99999;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

.spb-etk-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .spb-etk-table th:last-child,
  .spb-etk-table td:last-child {
    text-align: left;
  }

  .spb-etk-actions {
    justify-content: flex-start;
  }
}


/* ETK v0.13.6 - boutons action plus compacts */
.spb-etk-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: nowrap;
}

.spb-etk-action {
  min-height: 30px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  font-size: .84rem !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
}

.spb-etk-action--cart {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  font-size: .92rem !important;
}

.spb-etk-action-note {
  max-width: 170px;
  margin-left: auto;
  font-size: .72rem !important;
  line-height: 1.22 !important;
  color: #777 !important;
}

.spb-etk-table th:last-child,
.spb-etk-table td:last-child {
  width: 190px;
  min-width: 170px;
}

@media (max-width: 640px) {
  .spb-etk-actions {
    justify-content: flex-start;
  }

  .spb-etk-action-note {
    max-width: none;
    margin-left: 0;
  }

  .spb-etk-table th:last-child,
  .spb-etk-table td:last-child {
    width: auto;
    min-width: 0;
  }
}


/* ETK v0.14.1 - actions client simplifiées */
.spb-etk-table th:last-child,
.spb-etk-table td:last-child {
  width: 128px !important;
  min-width: 128px !important;
  text-align: right !important;
}

.spb-etk-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  flex-wrap: nowrap !important;
}

.spb-etk-action {
  min-height: 28px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: .80rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.spb-etk-action--product {
  background: #e30613 !important;
  color: #fff !important;
}

.spb-etk-action--contact {
  background: #fff !important;
  border: 1px solid #d5d5d5 !important;
  color: #222 !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.spb-etk-action--cart {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  font-size: .86rem !important;
  background: #111 !important;
  color: #fff !important;
}

.spb-etk-action-note {
  display: none !important;
}

.spb-etk-action-note--unavailable {
  display: block !important;
  margin-top: 4px !important;
  font-size: .68rem !important;
  line-height: 1.1 !important;
  color: #777 !important;
  text-align: center !important;
}

@media (max-width: 640px) {
  .spb-etk-table th:last-child,
  .spb-etk-table td:last-child {
    width: auto !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  .spb-etk-actions {
    justify-content: flex-start !important;
  }

  .spb-etk-action-note--unavailable {
    text-align: left !important;
  }
}


/* ETK v0.14.2 - affichage mobile en cartes lisibles */
@media (max-width: 768px) {
  .spb-etk-front {
    margin-top: 12px !important;
  }

  .spb-etk-front__diagram-head {
    padding: 0 2px !important;
  }

  .spb-etk-front__diagram-head h3 {
    font-size: 1.12rem !important;
    line-height: 1.25 !important;
  }

  .spb-etk-qty-note {
    font-size: .82rem !important;
    line-height: 1.35 !important;
    padding: 9px 10px !important;
    margin: 12px 0 !important;
  }

  .spb-etk-table-wrap {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  .spb-etk-table,
  .spb-etk-table tbody {
    display: block !important;
    width: 100% !important;
  }

  .spb-etk-table thead {
    display: none !important;
  }

  .spb-etk-table tr {
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "pos ref"
      "name name"
      "car qty"
      "action action";
    gap: 8px 10px;
    margin: 0 0 12px 0 !important;
    padding: 12px !important;
    background: #fff !important;
    border: 1px solid #e7e7e7 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.05) !important;
  }

  .spb-etk-table td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    text-align: left !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .spb-etk-table td:before {
    display: none !important;
  }

  .spb-etk-table td:nth-child(1) {
    grid-area: pos;
    align-self: center;
  }

  .spb-etk-table td:nth-child(2) {
    grid-area: ref;
    align-self: center;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  .spb-etk-table td:nth-child(3) {
    grid-area: name;
    font-size: .98rem !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    color: #111 !important;
    padding-top: 2px !important;
  }

  .spb-etk-table td:nth-child(3):before {
    content: "Désignation";
    display: block !important;
    font-size: .68rem !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    color: #888 !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
  }

  .spb-etk-table td:nth-child(4) {
    grid-area: car;
    font-size: .82rem !important;
    line-height: 1.25 !important;
    color: #555 !important;
    background: #f7f7f7 !important;
    border-radius: 10px !important;
    padding: 7px 8px !important;
  }

  .spb-etk-table td:nth-child(4):before {
    content: "Caractéristique";
    display: block !important;
    font-size: .66rem !important;
    text-transform: uppercase !important;
    color: #888 !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
  }

  .spb-etk-table td:nth-child(5) {
    grid-area: qty;
    font-size: .82rem !important;
    line-height: 1.25 !important;
    color: #555 !important;
    background: #fff8e8 !important;
    border: 1px solid #f3dfaa !important;
    border-radius: 10px !important;
    padding: 7px 8px !important;
    text-align: center !important;
    min-width: 62px !important;
  }

  .spb-etk-table td:nth-child(5):before {
    content: "Qté";
    display: block !important;
    font-size: .66rem !important;
    text-transform: uppercase !important;
    color: #8a6413 !important;
    font-weight: 900 !important;
    margin-bottom: 2px !important;
  }

  .spb-etk-table td:nth-child(6) {
    grid-area: action;
    padding-top: 2px !important;
  }

  .spb-etk-pos {
    min-width: 34px !important;
    height: 30px !important;
    padding: 0 8px !important;
    font-size: .86rem !important;
  }

  .spb-etk-ref {
    display: inline-flex !important;
    max-width: 100% !important;
    padding: 6px 9px !important;
    border-radius: 999px !important;
    font-size: .94rem !important;
    white-space: nowrap !important;
  }

  .spb-etk-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 8px !important;
    justify-content: stretch !important;
    align-items: center !important;
  }

  .spb-etk-action {
    width: 100% !important;
    min-height: 34px !important;
    padding: 8px 10px !important;
    font-size: .88rem !important;
    justify-content: center !important;
  }

  .spb-etk-action--cart {
    width: 38px !important;
    min-width: 38px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
  }

  .spb-etk-action--contact {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  .spb-etk-action-note--unavailable {
    display: block !important;
    text-align: center !important;
    font-size: .72rem !important;
    margin-top: 5px !important;
  }
}

@media (max-width: 420px) {
  .spb-etk-table tr {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .spb-etk-ref {
    font-size: .88rem !important;
    padding: 5px 8px !important;
  }

  .spb-etk-table td:nth-child(4),
  .spb-etk-table td:nth-child(5) {
    font-size: .78rem !important;
  }
}


/* ETK v0.14.3 - schémas lisibles sur mobile */
.spb-etk-front__image-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  text-align: center;
}

.spb-etk-open-schema {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px auto 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none !important;
}

.spb-etk-open-schema:hover {
  background: #333;
  color: #fff !important;
}

@media (max-width: 768px) {
  .spb-etk-front__image {
    margin-left: -10px !important;
    margin-right: -10px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .spb-etk-front__image-scroll {
    text-align: left !important;
    border-radius: 12px !important;
    background: #fff !important;
    border: 1px solid #eee !important;
  }

  .spb-etk-front__image-scroll img {
    max-width: none !important;
    width: auto !important;
    min-width: 860px !important;
    height: auto !important;
    display: block !important;
    padding: 8px !important;
    background: #fff !important;
  }

  .spb-etk-front__image figcaption {
    padding: 0 8px !important;
    font-size: .76rem !important;
    line-height: 1.25 !important;
  }

  .spb-etk-open-schema {
    width: calc(100% - 16px) !important;
    font-size: .86rem !important;
    margin-top: 9px !important;
  }
}

@media (max-width: 420px) {
  .spb-etk-front__image-scroll img {
    min-width: 980px !important;
  }
}


/* ETK v0.14.4 - boutons sobres, sans rouge */
.spb-etk-action--product,
.spb-etk-action--product:visited {
  background: #1f2328 !important;
  color: #fff !important;
  border: 1px solid #1f2328 !important;
  box-shadow: none !important;
}

.spb-etk-action--product:hover,
.spb-etk-action--product:focus {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.spb-etk-action--cart,
.spb-etk-action--cart:visited {
  background: #343a40 !important;
  color: #fff !important;
  border: 1px solid #343a40 !important;
  box-shadow: none !important;
}

.spb-etk-action--cart:hover,
.spb-etk-action--cart:focus {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

.spb-etk-action--contact,
.spb-etk-action--contact:visited {
  background: #fff !important;
  border: 1px solid #cfd4da !important;
  color: #202428 !important;
  box-shadow: none !important;
}

.spb-etk-action--contact:hover,
.spb-etk-action--contact:focus {
  border-color: #1f2328 !important;
  color: #1f2328 !important;
  background: #f8f9fa !important;
}

.spb-etk-ref {
  background: #f5f5f5 !important;
  border-color: #dedede !important;
  color: #111 !important;
}

.spb-etk-diagram-code {
  background: #f4f4f4 !important;
  color: #111 !important;
}

.spb-etk-open-schema {
  background: #1f2328 !important;
  color: #fff !important;
}

.spb-etk-open-schema:hover {
  background: #000 !important;
  color: #fff !important;
}

/* petit rappel visuel au survol seulement, sans rouge permanent */
.spb-etk-diagram-card:hover {
  border-color: #1f2328 !important;
}


/* ETK v0.14.5 - schéma en grand au clic plutôt que scroll dans la page */
.spb-etk-front__image-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
  text-align: center;
}

.spb-etk-front__image-open img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.spb-etk-schema-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.spb-etk-schema-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.spb-etk-modal-open {
  overflow: hidden !important;
}

.spb-etk-schema-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(0,0,0,.72);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.spb-etk-schema-modal__bar strong {
  font-size: .95rem;
  font-weight: 900;
}

.spb-etk-schema-modal__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
}

.spb-etk-schema-modal__body {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 10px;
  text-align: center;
}

.spb-etk-schema-modal__body img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0 auto;
  background: #fff;
}

.spb-etk-schema-modal__hint {
  padding: 8px 12px 12px;
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 768px) {
  .spb-etk-front__image {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 8px !important;
  }

  .spb-etk-front__image-scroll {
    overflow: visible !important;
    border: 0 !important;
  }

  .spb-etk-front__image-scroll img,
  .spb-etk-front__image-open img {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .spb-etk-open-schema {
    width: 100% !important;
    margin-top: 8px !important;
  }

  .spb-etk-schema-modal__body {
    text-align: left;
  }

  .spb-etk-schema-modal__body img {
    min-width: 1100px;
    max-width: none;
  }
}

@media (min-width: 769px) {
  .spb-etk-schema-modal__body img {
    max-width: 96vw;
  }
}


/* ETK v0.14.6 - mobile plus simple et plus lisible */
@media (max-width: 768px) {
  .spb-etk-table tr {
    gap: 6px 8px !important;
    margin: 0 0 10px 0 !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .spb-etk-table td:nth-child(1) {
    align-self: start !important;
  }

  .spb-etk-table td:nth-child(2) {
    align-self: start !important;
  }

  /* Désignation : simple, sans gros libellé */
  .spb-etk-table td:nth-child(3) {
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    padding-top: 1px !important;
    color: #111 !important;
  }

  .spb-etk-table td:nth-child(3):before,
  .spb-etk-table td:nth-child(4):before,
  .spb-etk-table td:nth-child(5):before {
    display: none !important;
    content: none !important;
  }

  /* Caractéristique et quantité : petits badges discrets */
  .spb-etk-table td:nth-child(4),
  .spb-etk-table td:nth-child(5) {
    font-size: .74rem !important;
    line-height: 1 !important;
    padding: 7px 9px !important;
    border-radius: 999px !important;
    min-height: 0 !important;
    width: fit-content !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .spb-etk-table td:nth-child(4) {
    background: #f3f4f6 !important;
    border: 1px solid #e4e6e9 !important;
    color: #555 !important;
  }

  .spb-etk-table td:nth-child(5) {
    background: #fff8e8 !important;
    border: 1px solid #ecd28b !important;
    color: #6e5512 !important;
    font-weight: 800 !important;
    min-width: 42px !important;
  }

  /* Référence et repère plus compacts */
  .spb-etk-pos {
    min-width: 30px !important;
    height: 28px !important;
    padding: 0 7px !important;
    font-size: .82rem !important;
    font-weight: 900 !important;
  }

  .spb-etk-ref {
    padding: 5px 9px !important;
    font-size: .90rem !important;
    line-height: 1 !important;
  }

  /* Actions plus simples */
  .spb-etk-actions {
    grid-template-columns: 1fr auto !important;
    gap: 6px !important;
    margin-top: 2px !important;
  }

  .spb-etk-action {
    min-height: 32px !important;
    padding: 7px 10px !important;
    font-size: .86rem !important;
    border-radius: 999px !important;
  }

  .spb-etk-action--cart {
    width: 36px !important;
    min-width: 36px !important;
    height: 32px !important;
    min-height: 32px !important;
  }

  .spb-etk-action--contact {
    grid-column: 1 / -1 !important;
  }

  /* Masquer le texte secondaire qui surcharge */
  .spb-etk-action-note,
  .spb-etk-action-note--unavailable {
    display: none !important;
  }

  /* Si caractéristique vide/trait, la rendre très discrète */
  .spb-etk-table td:nth-child(4):empty {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .spb-etk-table tr {
    padding: 9px !important;
    gap: 5px 7px !important;
  }

  .spb-etk-table td:nth-child(3) {
    font-size: .96rem !important;
  }

  .spb-etk-ref {
    font-size: .86rem !important;
    padding: 5px 8px !important;
  }

  .spb-etk-table td:nth-child(4),
  .spb-etk-table td:nth-child(5) {
    font-size: .71rem !important;
    padding: 6px 8px !important;
  }

  .spb-etk-action {
    font-size: .84rem !important;
  }
}


/* ETK v0.14.7 - mobile ultra compact */
.spb-etk-label-mobile {
  display: none;
}

@media (max-width: 768px) {
  .spb-etk-label-desktop {
    display: none !important;
  }

  .spb-etk-label-mobile {
    display: inline !important;
  }

  .spb-etk-table tr {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "pos name qty"
      "ref ref ref"
      "action action action";
    gap: 5px 8px !important;
    padding: 9px 10px !important;
    margin-bottom: 8px !important;
    border-radius: 13px !important;
    align-items: center !important;
  }

  .spb-etk-table td {
    min-width: 0 !important;
  }

  .spb-etk-table td:nth-child(1) {
    grid-area: pos !important;
  }

  .spb-etk-table td:nth-child(2) {
    grid-area: ref !important;
  }

  .spb-etk-table td:nth-child(3) {
    grid-area: name !important;
    font-size: .95rem !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    padding: 0 !important;
    overflow-wrap: anywhere !important;
  }

  /* Caractéristique masquée sur mobile pour garder une lecture rapide */
  .spb-etk-table td:nth-child(4) {
    display: none !important;
  }

  .spb-etk-table td:nth-child(5) {
    grid-area: qty !important;
    justify-self: end !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 4px 7px !important;
    border-radius: 999px !important;
    font-size: .70rem !important;
    line-height: 1 !important;
    background: #fff8e8 !important;
    border: 1px solid #ead08a !important;
    color: #6e5512 !important;
    font-weight: 900 !important;
  }

  .spb-etk-table td:nth-child(5):before {
    content: "Qté " !important;
    display: inline !important;
    font-size: .70rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    color: #6e5512 !important;
    font-weight: 900 !important;
  }

  .spb-etk-table td:nth-child(6) {
    grid-area: action !important;
    padding-top: 2px !important;
  }

  .spb-etk-pos {
    min-width: 30px !important;
    height: 28px !important;
    padding: 0 7px !important;
    font-size: .78rem !important;
  }

  .spb-etk-ref {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: 100% !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    font-size: .76rem !important;
    line-height: 1 !important;
    color: #555 !important;
    background: #f7f7f7 !important;
    border-color: #e5e5e5 !important;
  }

  .spb-etk-ref:before {
    content: "Réf. ";
    font-family: inherit;
    font-weight: 800;
    color: #777;
    margin-right: 3px;
  }

  .spb-etk-actions {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 2px !important;
  }

  .spb-etk-action {
    min-height: 30px !important;
    padding: 7px 10px !important;
    font-size: .82rem !important;
    line-height: 1 !important;
    border-radius: 999px !important;
  }

  .spb-etk-action--product {
    width: 100% !important;
  }

  .spb-etk-action--cart {
    width: 34px !important;
    min-width: 34px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
  }

  .spb-etk-action--contact {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 30px !important;
  }

  .spb-etk-action-note,
  .spb-etk-action-note--unavailable {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .spb-etk-table tr {
    padding: 8px 9px !important;
    gap: 5px 7px !important;
  }

  .spb-etk-table td:nth-child(3) {
    font-size: .91rem !important;
  }

  .spb-etk-pos {
    min-width: 28px !important;
    height: 26px !important;
    font-size: .74rem !important;
  }

  .spb-etk-ref {
    font-size: .72rem !important;
  }

  .spb-etk-action {
    font-size: .80rem !important;
  }
}


/* ETK v0.14.8 - vue planche plus simple + référence copiable */

/* Masque le bloc "Recherche dans cette rubrique" quand il est adjacent à la vue ETK */
.spb-etk-front ~ .spb-product-filter,
.spb-etk-front ~ .spb-rubric-search,
.spb-etk-front ~ .spb-search-in-rubric,
.spb-etk-front ~ .spb-category-filter,
.spb-etk-front ~ .spb-compatible-products__filter,
.spb-etk-front .spb-product-filter,
.spb-etk-front .spb-rubric-search,
.spb-etk-front .spb-search-in-rubric,
.spb-etk-front .spb-category-filter,
.spb-etk-front .spb-compatible-products__filter {
  display: none !important;
}

/* Référence + copie */
.spb-etk-ref-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.spb-etk-copy-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
  font-size: .82rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.spb-etk-copy-ref:hover,
.spb-etk-copy-ref:focus,
.spb-etk-copy-ref.is-copied {
  border-color: #111;
  background: #111;
  color: #fff;
}

/* Bouton + d'infos sur fond blanc */
.spb-etk-action--product,
.spb-etk-action--product:visited {
  background: #fff !important;
  color: #1f2328 !important;
  border: 1px solid #cfd4da !important;
  box-shadow: none !important;
}

.spb-etk-action--product:hover,
.spb-etk-action--product:focus {
  background: #f8f9fa !important;
  color: #000 !important;
  border-color: #1f2328 !important;
}

@media (max-width: 768px) {
  .spb-etk-table tr {
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas:
      "pos name qty"
      "ref ref ref"
      "action action action" !important;
  }

  .spb-etk-table td:nth-child(2) {
    text-align: center !important;
    justify-self: center !important;
    width: 100% !important;
  }

  .spb-etk-ref-wrap {
    width: 100% !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 2px 0 1px !important;
  }

  .spb-etk-ref {
    font-size: 1.08rem !important;
    font-weight: 950 !important;
    letter-spacing: .03em !important;
    padding: 7px 12px !important;
    background: #fff !important;
    border: 1px solid #d6d6d6 !important;
    color: #111 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.04) !important;
  }

  .spb-etk-ref:before {
    content: "" !important;
    display: none !important;
  }

  .spb-etk-copy-ref {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    font-size: 1rem !important;
    background: #f8f9fa !important;
  }

  .spb-etk-actions {
    grid-template-columns: 1fr auto !important;
  }

  .spb-etk-action--product {
    background: #fff !important;
    color: #1f2328 !important;
    border: 1px solid #cfd4da !important;
    font-weight: 850 !important;
  }

  .spb-etk-action--product:hover,
  .spb-etk-action--product:focus {
    background: #f8f9fa !important;
    border-color: #1f2328 !important;
    color: #000 !important;
  }
}

@media (max-width: 420px) {
  .spb-etk-ref {
    font-size: 1rem !important;
    padding: 6px 10px !important;
  }

  .spb-etk-copy-ref {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
  }
}


/* ETK v0.15.1 - sécurité : recherche rubrique masquée quand ETK actif */
.spb-etk-front.spb-etk-page ~ .spb-toolbar,
.spb-etk-page .spb-toolbar--rubric-search {
  display: none !important;
}
