/* Customer-facing payment choice and selected-colour preview. */
.avenra-payment-label {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}
.avenra-payment-toggle {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f1f5f9;
}
.avenra-payment-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #0f172a;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.14);
  transition: transform 180ms ease;
  pointer-events: none;
}
.avenra-payment-toggle[data-payment="cash"]::before { transform: translateX(100%); }
.avenra-payment-toggle > button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 12px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #475569;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: color 180ms ease;
}
.avenra-payment-toggle > button:hover { color: #0f172a; }
.avenra-payment-toggle > button[aria-checked="true"] { color: #fff; }
.avenra-payment-toggle > button:focus-visible { outline: 3px solid #0ea5e9; outline-offset: -3px; }
.avenra-payment-toggle > button:disabled { cursor: default; }
.avenra-payment-toggle > button[hidden] { display: none; }
.avenra-payment-toggle.is-locked { grid-template-columns: minmax(0, 1fr); }
.avenra-payment-toggle.is-locked::before { width: calc(100% - 8px); transform: none; }
.configurator-paint-panel #config-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 0;
  object-fit: cover;
  object-position: center;
}
.configurator-paint-panel #config-image[hidden] { display: none; }
@media (max-width: 390px) {
  .avenra-payment-toggle > button { font-size: 12px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .avenra-payment-toggle::before,
  .avenra-payment-toggle > button { transition: none; }
}
