.produto-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.opcoes-grupo {
  min-width: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.opcoes-grupo.has-error {
  box-shadow: 0 0 0 2px var(--danger);
}

.opcoes-grupo legend {
  display: flex;
  float: left;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--ink);
}

.opcoes-regra {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.07);
  font-size: 11.5px;
  font-weight: var(--fw-semibold);
  color: var(--ink-2);
}

.opcoes-regra.is-obrigatorio {
  background: var(--ink);
  color: #fff;
}

.opcoes-erro {
  clear: both;
  padding: 10px 16px 0;
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--danger);
}

.opcao {
  clear: both;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--ink);
}

.opcao + .opcao {
  border-top: 1px solid var(--line);
}

.opcao-escolha {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.opcao-nome {
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 13.5px;
}

.opcao-nome small {
  font-size: 12.5px;
  color: var(--ink-3);
}

.opcao-escolha input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.opcao-marca {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: transparent;
  font-size: 16px;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.opcao-escolha input[type="radio"] + .opcao-marca {
  border-radius: 50%;
}

.opcao-escolha input:checked + .opcao-marca {
  border-color: var(--loja-botao, var(--ink));
  background: var(--loja-botao, var(--ink));
  color: var(--loja-texto-botao, #fff);
}

.opcao-escolha input:focus-visible + .opcao-marca {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.opcao-escolha input:disabled + .opcao-marca {
  opacity: 0.4;
}

.contador {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.06);
}

.contador button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.contador button:disabled {
  opacity: 0.4;
  cursor: default;
}

.contador output {
  min-width: 22px;
  font-size: 13.5px;
  font-weight: var(--fw-semibold);
  text-align: center;
}

.contador.is-grande button {
  width: 40px;
  height: 40px;
}

.produto-obs .field-input {
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.produto-acao {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

body:has(.app-nav) .produto-pagina .produto-acao {
  bottom: calc(80px + env(safe-area-inset-bottom));
}

.produto-adicionar {
  flex: 1;
  justify-content: space-between;
  min-width: 0;
  padding: 0 22px;
  background: var(--loja-botao, var(--btn));
  color: var(--loja-texto-botao, var(--btn-ink));
}

.produto-adicionar.is-loading,
.produto-adicionar.is-success {
  justify-content: center;
  background: var(--loja-botao, var(--btn));
  color: var(--loja-texto-botao, var(--btn-ink));
  opacity: 1;
}

.produto-adicionar.is-loading b,
.produto-adicionar.is-success b {
  display: none;
}

.produto-adicionar:disabled:not(.is-loading):not(.is-success) {
  opacity: 0.6;
  cursor: not-allowed;
}

.produto-em-breve {
  font-size: 12.5px;
  text-align: center;
  opacity: 0.7;
}

.produto-whatsapp {
  align-self: center;
}
