.sip24-quote,
.sip24-quote * {
  box-sizing: border-box;
}

.sip24-quote {
  --sip24-orange: #ff5a13;
  --sip24-orange-soft: #fff5ef;
  --sip24-navy: #071b2c;
  --sip24-text: #132333;
  --sip24-muted: #6d7680;
  --sip24-border: #dde2e6;
  --sip24-green: #39ba70;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px);
  color: var(--sip24-text);
  background: #fff;
  border: 1px solid #e5e8eb;
  border-radius: 18px;
  box-shadow: 0 14px 45px rgba(7, 27, 44, 0.08);
  font-family: inherit;
}

.sip24-quote button,
.sip24-quote input,
.sip24-quote select {
  font: inherit;
}

.sip24-quote__header h2 {
  margin: 0 0 24px;
  color: var(--sip24-navy);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.sip24-quote__header h2 span {
  color: var(--sip24-orange);
}

.sip24-step {
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid #edf0f2;
}

.sip24-step__heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 14px;
}

.sip24-step__number {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  margin-top: 1px;
  color: #fff;
  background: var(--sip24-navy);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.sip24-step__heading strong {
  display: block;
  color: var(--sip24-text);
  font-size: 16px;
  line-height: 1.25;
}

.sip24-step__heading small {
  display: block;
  margin-top: 3px;
  color: var(--sip24-muted);
  font-size: 12px;
  line-height: 1.3;
}

.sip24-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sip24-panel-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 8px 13px;
  color: var(--sip24-text);
  background: #fff;
  border: 1.5px solid var(--sip24-border);
  border-radius: 11px;
  box-shadow: 0 2px 7px rgba(7, 27, 44, 0.04);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.sip24-panel-card:hover:not(:disabled) {
  border-color: #ffad82;
  box-shadow: 0 7px 18px rgba(7, 27, 44, 0.09);
  transform: translateY(-2px);
}

.sip24-panel-card:focus-visible,
.sip24-primary:focus-visible,
.sip24-config-card button:focus-visible,
.sip24-quote select:focus-visible,
.sip24-quote input:focus-visible {
  outline: 3px solid rgba(255, 90, 19, 0.24);
  outline-offset: 2px;
}

.sip24-panel-card.is-selected {
  background: var(--sip24-orange-soft);
  border-color: var(--sip24-orange);
  box-shadow: 0 0 0 1px var(--sip24-orange), 0 8px 22px rgba(255, 90, 19, 0.12);
}

.sip24-panel-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.sip24-panel-card strong {
  font-size: 13px;
  line-height: 1.18;
  text-align: center;
}

.sip24-panel-card small {
  color: var(--sip24-muted);
  font-size: 10px;
}

.sip24-panel-card__check {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: transparent;
  background: #fff;
  border: 1px solid var(--sip24-border);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.sip24-panel-card.is-selected .sip24-panel-card__check {
  color: #fff;
  background: var(--sip24-orange);
  border-color: var(--sip24-orange);
}

.sip24-panel-card__image {
  display: grid;
  width: 100%;
  height: 72px;
  place-items: center;
}

.sip24-panel-card__image img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
}

.sip24-panel-card__image svg {
  width: 100%;
  max-width: 112px;
  height: 72px;
  overflow: visible;
}

.sip24-panel-card__image .face { fill: #e7d6b8; stroke: #9f8b6b; stroke-width: 1; }
.sip24-panel-card__image .face.light { fill: #f3e9d7; }
.sip24-panel-card__image .face.warm { fill: #d8bd8f; }
.sip24-panel-card__image .edge { fill: #d7dce0; stroke: #8a959e; stroke-width: 1; }
.sip24-panel-card__image .edge.dark { fill: #b7bdc2; }
.sip24-panel-card__image .line { fill: none; stroke: rgba(91, 72, 44, 0.32); stroke-width: 1; }

.sip24-config-list {
  display: grid;
  gap: 10px;
}

.sip24-config-card {
  padding: 14px;
  background: #f8fafb;
  border: 1px solid var(--sip24-border);
  border-radius: 10px;
}

.sip24-config-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.sip24-config-card__top strong {
  font-size: 14px;
}

.sip24-config-card__top > button {
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  color: #76808a;
  background: #fff;
  border: 1px solid var(--sip24-border);
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.sip24-config-card__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sip24-config-card label,
.sip24-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.sip24-config-card label > span:first-child,
.sip24-field > span:first-child {
  color: var(--sip24-text);
  font-size: 12px;
  font-weight: 700;
}

.sip24-quote select,
.sip24-quote input[type="number"] {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--sip24-text);
  background: #fff;
  border: 1px solid var(--sip24-border);
  border-radius: 7px;
  box-shadow: none;
}

.sip24-qty {
  display: grid;
  grid-template-columns: 40px minmax(45px, 1fr) 40px;
  height: 44px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sip24-border);
  border-radius: 7px;
}

.sip24-qty button {
  padding: 0;
  color: var(--sip24-navy);
  background: #fff;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.sip24-qty button:first-child { border-right: 1px solid var(--sip24-border); }
.sip24-qty button:last-child { border-left: 1px solid var(--sip24-border); }

.sip24-qty input[type="number"] {
  height: 42px;
  min-height: 42px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  text-align: center;
  appearance: textfield;
}

.sip24-qty input::-webkit-outer-spin-button,
.sip24-qty input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.sip24-primary {
  display: flex;
  width: 100%;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 22px;
  color: #fff;
  background: var(--sip24-navy);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(7, 27, 44, 0.16);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease;
}

.sip24-primary:hover { background: #0d2b42; transform: translateY(-1px); }
.sip24-primary:disabled { cursor: wait; opacity: 0.7; transform: none; }
.sip24-primary__arrow { margin-top: -2px; font-size: 27px; font-weight: 400; line-height: 1; }

.sip24-benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  padding: 12px;
  background: #fbfcfc;
  border-radius: 8px;
}

.sip24-benefit > span {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--sip24-green);
  border: 2px solid var(--sip24-green);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.sip24-benefit p {
  margin: 0;
  color: #4b5660;
  font-size: 11px;
  line-height: 1.35;
}

.sip24-benefit strong { color: var(--sip24-text); }

.sip24-error {
  min-height: 0;
  margin: 8px 0 0;
  color: #c92d22;
  font-size: 12px;
}

.sip24-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.sip24-result {
  padding-top: 4px;
}

.sip24-result__success {
  margin-bottom: 16px;
  padding: 13px 15px;
  color: #17613a;
  background: #edf9f2;
  border: 1px solid #bfe8cf;
  border-radius: 9px;
  font-size: 13px;
}

.sip24-result h3 {
  margin: 0 0 6px;
  color: var(--sip24-navy);
  font-size: 23px;
}

.sip24-result__code {
  margin: 0 0 18px;
  color: var(--sip24-muted);
  font-size: 12px;
}

.sip24-result__lines {
  display: grid;
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid var(--sip24-border);
  border-radius: 10px;
  overflow: hidden;
}

.sip24-result__line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid #edf0f2;
  font-size: 13px;
}

.sip24-result__line:last-child { border-bottom: 0; }
.sip24-result__line small { display: block; margin-top: 3px; color: var(--sip24-muted); }
.sip24-result__line > strong { white-space: nowrap; }

.sip24-result__totals {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f8fafb;
  border-radius: 10px;
}

.sip24-result__totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.sip24-result__totals .is-total {
  margin-top: 4px;
  padding-top: 10px;
  color: var(--sip24-navy);
  border-top: 1px solid var(--sip24-border);
  font-size: 18px;
  font-weight: 800;
}

.sip24-result__delivery {
  margin: 14px 0;
  padding: 12px 14px;
  color: #46515b;
  background: var(--sip24-orange-soft);
  border-radius: 8px;
  font-size: 12px;
}

.sip24-result__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sip24-result__actions button,
.sip24-result__actions a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.sip24-result__cart {
  color: #fff;
  background: var(--sip24-navy);
  border: 1px solid var(--sip24-navy);
}

.sip24-result__whatsapp {
  color: #fff;
  background: #20aa5a;
  border: 1px solid #20aa5a;
}

.sip24-result__back {
  grid-column: 1 / -1;
  color: var(--sip24-navy);
  background: #fff;
  border: 1px solid var(--sip24-border);
}

.sip24-admin-notice {
  padding: 15px;
  color: #704800;
  background: #fff8df;
  border: 1px solid #edd78a;
  border-radius: 8px;
  font-size: 13px;
}

[hidden] { display: none !important; }

@media (max-width: 620px) {
  .sip24-quote { padding: 20px 16px; border-radius: 13px; }
  .sip24-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .sip24-panel-card { min-height: 139px; }
  .sip24-config-card__fields { grid-template-columns: 1fr; }
  .sip24-result__actions { grid-template-columns: 1fr; }
  .sip24-result__back { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .sip24-panel-card,
  .sip24-primary { transition: none; }
}
