.fsp-acr-front {
  --fsp-acr-primary: #00363a;
  --fsp-acr-accent:  #00e5ac;
  --fsp-acr-border:  #e5e7eb;
  --fsp-acr-gray:    #6b7280;
  font-family: inherit;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fsp-acr-grupo {
  border: 1px solid var(--fsp-acr-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.fsp-acr-grupo-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.fsp-acr-grupo-titulo-wrap { display: flex; flex-direction: column; gap: 2px; }
.fsp-acr-grupo-titulo    { font-size: 14px; font-weight: 700; color: #111827; text-transform: uppercase; letter-spacing: .02em; }
.fsp-acr-grupo-subtitulo { font-size: 12px; color: var(--fsp-acr-primary); }

.fsp-acr-chevron {
  flex-shrink: 0;
  color: #6b7280;
  transition: transform .2s ease;
}
.fsp-acr-grupo--open .fsp-acr-chevron { transform: rotate(180deg); }

.fsp-acr-grupo-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.fsp-acr-grupo--open .fsp-acr-grupo-body { max-height: 3000px; }

.fsp-acr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--fsp-acr-border);
  cursor: pointer;
}
.fsp-acr-item:hover { background: #fafafa; }

.fsp-acr-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f3f4f6;
  overflow: hidden;
  flex-shrink: 0;
}
.fsp-acr-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fsp-acr-item-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.fsp-acr-item-nome  { font-size: 14px; font-weight: 600; color: #111827; }
.fsp-acr-item-preco { font-size: 13px; color: var(--fsp-acr-gray); }

.fsp-acr-item-checkbox {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--fsp-acr-primary);
  cursor: pointer;
}

.fsp-acr-item--disabled { opacity: .4; cursor: not-allowed; }
.fsp-acr-item--disabled .fsp-acr-item-checkbox { cursor: not-allowed; }

.fsp-acr-erro {
  font-size: 12px;
  color: #b91c1c;
  padding: 8px 16px 0;
}

/* Grupo obrigatório pendente — feedback visual */
.fsp-acr-grupo--pendente {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626;
}

.fsp-acr-erro-grupo {
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  padding: 8px 16px;
  border-top: 1px solid #fecaca;
}

@keyframes fsp-acr-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.fsp-acr-shake {
  animation: fsp-acr-shake 0.5s;
}

/* Botão de compra travado enquanto houver pendência */
.fsp-acr-bloqueado {
  opacity: 0.5;
  cursor: not-allowed !important;
}

/* Notificação (toast) */
.fsp-acr-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  max-width: 90vw;
  text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fsp-acr-toast--visivel {
  opacity: 1;
  transform: translate(-50%, 0);
}
