/* Compra em 1 clique — layout compacto e intuitivo */
.oc-panel {
  position: relative;
  margin-top: 14px;
  border: 1.5px solid #d8dde6;
  border-radius: 12px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.oc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #f3f5f9;
  border-bottom: 1px solid #e4e8ef;
}

.oc-bolt { color: var(--orange, #e07f2e); flex-shrink: 0; }

.oc-head strong {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--black, #1a1a18);
}

.oc-empty {
  padding: 16px 14px 18px;
  text-align: left;
}
.oc-empty p {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: #555;
  line-height: 1.5;
}

.oc-form-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.oc-body { padding: 0 0 14px; }

.oc-section {
  border-bottom: 1px solid #eef0f4;
}

/* Enquanto edita, some o resumo — a lista já mostra a opção */
.oc-section.is-editing .oc-row-main {
  display: none;
}
.oc-section.is-editing .oc-row-line {
  justify-content: flex-end;
  padding-bottom: 4px;
}

.oc-row-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.oc-row-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.oc-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f5f9;
  color: var(--navy, #243a6e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.oc-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.oc-row-text strong {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--black, #1a1a18);
}
.oc-row-text strong.is-warn { color: #b45309; }
.oc-row-text span {
  font-size: 0.76rem;
  color: #666;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oc-mudar {
  border: none;
  background: none;
  color: var(--orange, #e07f2e);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-sans, inherit);
  cursor: pointer;
  padding: 4px 2px;
  flex-shrink: 0;
  text-decoration: none;
}
.oc-mudar:hover { text-decoration: underline; }

.oc-cvv {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.oc-cvv label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
}
.oc-cvv input {
  width: 52px;
  height: 34px;
  border: 1.5px solid #d5d9e2;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-sans, inherit);
  outline: none;
  background: #fff;
}
.oc-cvv input:focus { border-color: var(--orange, #e07f2e); }

.oc-picker {
  margin: 0 14px 10px;
  padding: 10px;
  background: #f7f8fb;
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.oc-pick {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1.5px solid #e4e8ef;
  border-radius: 8px;
  cursor: pointer;
}
.oc-pick:has(input:checked) {
  border-color: var(--orange, #e07f2e);
  background: rgba(224, 127, 46, 0.06);
}
.oc-pick input { margin-top: 3px; accent-color: var(--orange, #e07f2e); }
.oc-pick strong { display: block; font-size: 0.8rem; font-weight: 800; }
.oc-pick small { display: block; margin-top: 2px; font-size: 0.72rem; color: #666; line-height: 1.35; }

.oc-picker-hint {
  margin: 0;
  font-size: 0.74rem;
  color: #777;
  line-height: 1.4;
}

.oc-add-link {
  border: none;
  background: none;
  color: var(--orange, #e07f2e);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-sans, inherit);
  cursor: pointer;
  text-align: left;
  padding: 2px 2px 2px;
}
.oc-add-link:hover { text-decoration: underline; }

.oc-pick[hidden] { display: none !important; }

.oc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 28px);
  margin: 10px 14px 0;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--green, #25D366);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  font-family: var(--font-sans, inherit);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.28);
  transition: background 0.2s, transform 0.15s;
}
.oc-btn:hover {
  background: var(--green-dark, #1ebe57);
  transform: translateY(-1px);
}

.oc-btn-price {
  opacity: 0.95;
  font-weight: 900;
}

.oc-btn-price::before { content: '· '; opacity: 0.7; }

.oc-footnote {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 14px 0;
  font-size: 0.7rem;
  color: #888;
  line-height: 1.4;
}
.oc-footnote svg { flex-shrink: 0; margin-top: 1px; color: var(--navy, #243a6e); }

.oc-hint {
  margin: 10px 14px 0;
  font-size: 0.78rem;
  color: #777;
  line-height: 1.45;
}

.oc-add-sheet {
  margin: 0 14px 12px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(224, 127, 46, 0.35);
  background: #fffaf5;
  box-shadow: 0 4px 14px rgba(26, 26, 24, 0.04);
}
.oc-add-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.oc-add-sheet-head strong {
  font-size: 0.86rem;
  font-weight: 900;
}

.oc-mini-form { display: flex; flex-direction: column; gap: 10px; }
.oc-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #666;
  margin-bottom: 4px;
}
.oc-field label em { font-style: normal; font-weight: 500; color: #999; }
.oc-field input {
  width: 100%;
  height: 40px;
  border: 1.5px solid #d5d9e2;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.85rem;
  font-family: var(--font-sans, inherit);
  background: #fff;
  outline: none;
}
.oc-field input:focus { border-color: var(--orange, #e07f2e); }

.oc-mini-form .oc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.oc-mini-form .oc-row.three { grid-template-columns: 1fr 1fr 1fr; }
.oc-field.uf { max-width: 72px; }

.oc-mini-form .oc-btn {
  width: 100%;
  margin: 0;
  background: var(--navy, #243a6e);
  box-shadow: none;
}
.oc-mini-form .oc-btn:hover { background: #1b2d57; }

.cart-summary .oc-panel { margin-top: 14px; }

@media (max-width: 480px) {
  .oc-row-line { flex-wrap: wrap; }
  .oc-cvv { order: 3; }
  .oc-mudar { margin-left: auto; }
  .oc-mini-form .oc-row.three { grid-template-columns: 1fr 1fr; }
  .oc-mini-form .oc-row.three .oc-field:last-child { grid-column: 1 / -1; }
  .oc-row-text span { white-space: normal; }
}
