/* Applies only to phone model groups enhanced from native variants. */
body.page-product .anaceri-model-variants {
  --am-ink: #111;
  --am-muted: #616161;
  --am-line: #d8d8d8;
  display: block;
  margin: 4px 0 20px;
  color: var(--am-ink);
}
body.page-product .anaceri-model-variants * { box-sizing: border-box; }
body.page-product.anaceri-model-ready .anaceri-product__selection-intro,
body.page-product .anaceri-model-enhanced > .product-variant__label,
body.page-product .anaceri-model-enhanced > select { display: none; }
body.page-product .anaceri-model-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.5;
}
body.page-product .anaceri-model-heading strong { font-weight: 600; }
body.page-product .anaceri-model-count { color: var(--am-muted); font-size: 13px; white-space: nowrap; }
body.page-product .anaceri-model-selector button {
  margin: 0;
  font-family: inherit;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
body.page-product .anaceri-model-families {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 12px;
  background: #f2f2f2;
}
body.page-product .anaceri-model-family {
  flex: 1 1 90px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--am-muted);
  font-size: 14px;
  box-shadow: none;
}
body.page-product .anaceri-model-family[aria-pressed="true"] {
  background: #fff;
  color: var(--am-ink);
  font-weight: 600;
  box-shadow: 0 1px 5px #00000014;
}
body.page-product .anaceri-model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.page-product .anaceri-model-choice {
  position: relative;
  min-width: 0;
  min-height: 56px;
  padding: 13px 26px 13px 12px;
  border: 1px solid var(--am-line);
  border-radius: 12px;
  background: #fff;
  color: var(--am-ink);
  font-size: 14px;
  box-shadow: none;
  overflow-wrap: anywhere;
}
body.page-product .anaceri-model-choice[aria-pressed="true"] {
  border-color: var(--am-ink);
  background: #f5f5f5;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--am-ink);
}
body.page-product .anaceri-model-choice[aria-pressed="true"]::after {
  content: '✓';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 12px;
}
body.page-product .anaceri-model-selector button:disabled { cursor: wait; opacity: .6; }
body.page-product .anaceri-model-selector button:focus-visible,
body.page-product .anaceri-model-help summary:focus-visible,
body.page-product .anaceri-model-retry:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
body.page-product .anaceri-model-help { margin: 16px 0 0; color: var(--am-muted); font-size: 14px; line-height: 1.6; }
body.page-product .anaceri-model-help summary { width: fit-content; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
body.page-product .anaceri-model-help p { margin: 8px 0 0; color: var(--am-ink); font-size: inherit; line-height: inherit; }
body.page-product .anaceri-model-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e4e4e4;
  color: var(--am-muted);
  font-size: 14px;
  line-height: 1.5;
}
body.page-product .anaceri-model-summary strong { color: var(--am-ink); font-size: 14px; font-weight: 600; }
body.page-product .anaceri-model-summary.is-error strong { color: #a32118; }
body.page-product .anaceri-model-retry {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--am-line);
  border-radius: 8px;
  background: #fff;
  color: var(--am-ink);
  font: inherit;
  cursor: pointer;
}
body.page-product .anaceri-model-retry[hidden] { display: none; }
@media (max-width: 360px) {
  body.page-product .anaceri-model-heading { font-size: 16px; }
  body.page-product .anaceri-model-grid { gap: 8px; }
  body.page-product .anaceri-model-choice { padding-left: 8px; padding-right: 24px; }
}

body.page-product .anaceri-model-families[hidden] { display: none; }

/* Hide only colors absent from the selected model’s real combinations. */
body.page-product .anaceri-model-variants .product-variant__color[hidden] { display: none !important; }
