/* ═══════════════════════════════════════════════════════════════
   JURÔ — checkout.css  ·  Redesign Editorial de Alta Conversão
   ─────────────────────────────────────────────────────────────
   Fontes recomendadas (adicionar no functions.php do tema):
   wp_enqueue_style('juro-checkout-fonts',
     'https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap'
   );
   ─────────────────────────────────────────────────────────────
   Token map  (sobrescreve ou complementa o tema pai):
   --fn-d     → 'BritannicBQ', sans-serif
   --fn-b     → 'BritannicBQ', sans-serif
   --fn-head  → 'BritannicBQ', sans-serif  (weight 600)
   --burg     → #A63248
   --burg-deep→ #4F1324
   --burg-lt  → #C4566A
   --cream    → #F5EFE6
   --ink      → #1A1109
   --slate    → #7A6B61
   --white    → #FFFFFF
   --tr       → 0.22s ease
═══════════════════════════════════════════════════════════════ */

/* ── RESET LOCAL ── */
.woocommerce-checkout *,
.woocommerce-checkout *::before,
.woocommerce-checkout *::after {
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════
   1. SHELL PRINCIPAL — GRID DE 3 COLUNAS
══════════════════════════════════════════════════ */
.juro-checkout-shell {
  display: grid;
  grid-template-columns: 220px 1fr 400px;
  grid-template-rows: auto;
  min-height: 100vh;
  background: #F7F2EC;
  font-family: var(--fn-b, 'BritannicBQ', sans-serif);
  position: relative;
}

/* ══════════════════════════════════════════════════
   2. SIDEBAR DE PROGRESSO (COLUNA ESQUERDA)
══════════════════════════════════════════════════ */
.juro-sidebar {
  grid-column: 1;
  background: var(--burg-deep, #4F1324);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
  /* Grain texture via SVG inline */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #5C1828 0%, #4F1324 60%, #3A0E1A 100%);
}

.juro-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 48px 28px;
  gap: 0;
}

/* ── Logotipo ── */
.juro-brand-lockup {
  margin-bottom: 52px;
  animation: juro-fade-up 0.6s ease both;
}

.juro-brand-text {
  display: block;
  font-family: var(--fn-d, 'BritannicBQ', sans-serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cream, #F5EFE6);
  line-height: 1;
}

.juro-brand-divider {
  width: 24px;
  height: 1px;
  background: rgba(245, 239, 230, 0.35);
  margin: 10px 0 8px;
}

.juro-brand-sub {
  display: block;
  font-family: var(--fn-b, 'BritannicBQ', sans-serif);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.45);
}

/* ── Navegação de progresso ── */
.juro-progress-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: juro-fade-up 0.6s 0.1s ease both;
}

.juro-progress-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 4px 0;
  cursor: default;
  transition: opacity 0.3s ease;
  opacity: 0.45;
}

.juro-progress-item.is-active {
  opacity: 1;
}

.juro-progress-item.is-complete {
  opacity: 0.65;
}

.juro-progress-bullet {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 239, 230, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s ease;
  background: transparent;
}

.juro-progress-item.is-active .juro-progress-bullet {
  border-color: var(--cream, #F5EFE6);
  background: rgba(245, 239, 230, 0.12);
  box-shadow: 0 0 0 4px rgba(245, 239, 230, 0.06);
}

.juro-progress-item.is-complete .juro-progress-bullet {
  border-color: var(--burg-lt, #C4566A);
  background: var(--burg-lt, #C4566A);
}

.juro-bullet-num {
  font-family: var(--fn-d, 'BritannicBQ', sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--cream, #F5EFE6);
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}

.juro-bullet-check {
  position: absolute;
  color: var(--white, #fff);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.juro-progress-item.is-complete .juro-bullet-num {
  opacity: 0;
}

.juro-progress-item.is-complete .juro-bullet-check {
  opacity: 1;
  transform: scale(1);
}

.juro-progress-label {
  font-family: var(--fn-b, 'BritannicBQ', sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--cream, #F5EFE6);
  line-height: 1.2;
  padding-top: 6px;
  transition: color 0.3s ease;
}

.juro-progress-hint {
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 239, 230, 0.5);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* ── Linha conectora entre passos ── */
.juro-progress-spine {
  width: 32px;
  display: flex;
  justify-content: center;
  height: 28px;
  flex-shrink: 0;
}

.juro-spine-fill {
  width: 1px;
  height: 0%;
  background: var(--burg-lt, #C4566A);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.juro-progress-spine::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 28px;
  background: rgba(245, 239, 230, 0.15);
}

/* ── Selos de confiança ── */
.juro-sidebar-trust {
  padding-top: 40px;
  border-top: 1px solid rgba(245, 239, 230, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: juro-fade-up 0.6s 0.2s ease both;
}

.juro-trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 239, 230, 0.5);
  letter-spacing: 0.02em;
}

.juro-trust-row svg {
  flex-shrink: 0;
  color: var(--burg-lt, #C4566A);
}

/* ══════════════════════════════════════════════════
   3. ÁREA DO FORMULÁRIO (COLUNA CENTRAL)
══════════════════════════════════════════════════ */
.juro-form-area {
  grid-column: 2;
  padding: 64px 60px 80px;
  overflow-y: auto;
  position: relative;
  background: #F7F2EC;
}

/* ── Barra de progresso mobile (oculta no desktop) ── */
.juro-mobile-progress {
  display: none;
}

/* ── Painéis de etapa ── */
.juro-panel {
  display: none;
  flex-direction: column;
  animation: juro-panel-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.juro-panel.is-active {
  display: flex;
}

/* ── Cabeçalho do painel ── */
.juro-panel-header {
  margin-bottom: 40px;
}

.juro-panel-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burg, #A63248);
  margin-bottom: 12px;
}

.juro-panel-title {
  font-family: var(--fn-d, 'BritannicBQ', sans-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--burg-deep, #4F1324);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
    font-family: var(--fn-head);
  }
.juro-panel-sub {
    font-size: 16px;
    font-weight: 300;
    color: #960022;
    margin: 0;
    line-height: 1.5;
    font-family: var(--fn-head);
}

/* ── Área de campos ── */
.juro-fields-wrap {
  flex: 1;
}

/* ── Rodapé do painel (botões de navegação) ── */
.juro-panel-footer {
  display: flex;
    margin-top: 44px;
    gap: 12px;
    justify-content: center;
}

.juro-panel-footer--split {
  justify-content: space-between;
}

.juro-panel-footer--back-only {
  justify-content: flex-start;
}

/* ── Botão PRÓXIMO ── */
.juro-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--burg-deep, #4F1324);
  color: var(--cream, #F5EFE6);
  font-family: var(--fn-b, 'BritannicBQ', sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 32px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.juro-btn-next::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 239, 230, 0.06) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.juro-btn-next:hover::before {
  transform: translateX(100%);
}

.juro-btn-next:hover {
  background: var(--burg, #A63248);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(79, 19, 36, 0.22);
}

.juro-btn-next:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Botão VOLTAR ── */
.juro-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--slate, #7A6B61);
  font-family: var(--fn-b, 'BritannicBQ', sans-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 18px 0;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.juro-btn-back:hover {
  color: var(--burg-deep, #4F1324);
}

.juro-btn-back svg {
  transition: transform 0.2s ease;
}

.juro-btn-back:hover svg {
  transform: translateX(-3px);
}

/* ══════════════════════════════════════════════════
   4. CAMPOS WooCommerce — CARTÕES DE LUXO
   ──────────────────────────────────────────────────
   Cada campo é um cartão branco elevado com:
   · Label small-caps flutuante para cima no foco
   · Barra de acento esquerda que revela no foco
   · Sombra que aprofunda ao focar
   · Ícone de check verde ao validar (WC)
══════════════════════════════════════════════════ */

/* ── Estrutura col2-set limpa ── */
.juro-checkout-shell .col2-set,
.juro-checkout-shell .col-1,
.juro-checkout-shell .col-2 {
  width: 100%;
  float: none;
}

/* ── Grid de campos lado a lado ── */
.juro-checkout-shell .col-1,
.juro-checkout-shell .col-2,
.juro-checkout-shell #customer_details,
.juro-checkout-shell .juro-fields-wrap {
  display: block;
}

/* Row par (first+last): flex container para os dois filhos */
.juro-checkout-shell .form-row-first,
.juro-checkout-shell .form-row-last {
  display: inline-block;
  width: calc(50% - 8px);
  vertical-align: top;
}
.juro-checkout-shell .form-row-first { margin-right: 16px; }

/* ──────────────────────────────────────────────────
   CARD BASE — cada .form-row é um cartão elevado
────────────────────────────────────────────────── */
.juro-checkout-shell .form-row {
  position: relative;
  margin-bottom: 16px;
  padding: 0;
  /* Cartão branco com borda fina */
  background: #FFFFFF;
  border: 1px solid rgba(79, 19, 36, 0.10);
  border-radius: 8px;
  /* Barra de acento esquerda (oculta por padrão) */
  box-shadow:
    inset 3px 0 0 transparent,   /* accent bar */
    0 1px 3px rgba(26, 17, 9, 0.04),
    0 2px 8px rgba(26, 17, 9, 0.03);
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.2s ease;
  overflow: hidden;
}

/* Hover sutil */
.juro-checkout-shell .form-row:hover {
  border-color: rgba(166, 50, 72, 0.22);
  box-shadow:
    inset 3px 0 0 transparent,
    0 2px 8px rgba(26, 17, 9, 0.07),
    0 4px 16px rgba(26, 17, 9, 0.04);
}

/* FOCO: barra de acento + sombra + elevação */
.juro-checkout-shell .form-row:has(input:focus),
.juro-checkout-shell .form-row:has(select:focus),
.juro-checkout-shell .form-row:has(textarea:focus) {
  border-color: rgba(166, 50, 72, 0.30);
  box-shadow:
    inset 3px 0 0 var(--burg, #A63248),
    0 4px 20px rgba(79, 19, 36, 0.10),
    0 8px 32px rgba(79, 19, 36, 0.06);
  transform: translateY(-1px);
}

/* VALIDADO: barra verde */
.juro-checkout-shell .form-row.woocommerce-validated {
  border-color: rgba(99, 162, 109, 0.30);
  box-shadow:
    inset 3px 0 0 #63A26D,
    0 2px 8px rgba(26, 17, 9, 0.05);
}

/* INVÁLIDO: barra vermelha */
.juro-checkout-shell .form-row.woocommerce-invalid {
  border-color: rgba(192, 57, 43, 0.35);
  box-shadow:
    inset 3px 0 0 #C0392B,
    0 2px 8px rgba(192, 57, 43, 0.08);
}

/* ──────────────────────────────────────────────────
   LABEL FLUTUANTE
────────────────────────────────────────────────── */
.juro-checkout-shell .form-row label {
  display: block;
  font-family: var(--fn-b, 'BritannicBQ', sans-serif);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(122, 107, 97, 0.65);
  margin: 0;
  /* Posição dentro do cartão */
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 3;
  transition:
    top       0.24s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    font-size 0.24s ease,
    color     0.24s ease,
    letter-spacing 0.24s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 40px);
}

/* Label quando o campo está em foco OU tem valor */
.juro-checkout-shell .form-row:has(input:focus) label,
.juro-checkout-shell .form-row:has(input:not(:placeholder-shown)) label,
.juro-checkout-shell .form-row.has-value label,
.juro-checkout-shell .form-row:has(select:focus) label,
.juro-checkout-shell .form-row:has(textarea:focus) label,
.juro-checkout-shell .form-row:has(textarea:not(:placeholder-shown)) label {
  top: 16px;
  transform: translateY(0);
  font-size: 9px;
  color: var(--burg, #A63248);
  letter-spacing: 0.15em;
}

/* Select sempre com label flutuado (já tem valor pré-selecionado) */
.juro-checkout-shell .form-row:has(select) label {
  top: 16px;
  transform: translateY(0);
  font-size: 9px;
  letter-spacing: 0.15em;
}

/* ── Label especial: termos de serviço ── */
.juro-checkout-shell label[for="terms"] {
  position: static;
  transform: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate, #7A6B61);
  pointer-events: auto;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
}

/* Asterisco required */
.juro-checkout-shell .required {
  color: var(--burg, #A63248) !important;
  font-size: 0.85em;
  margin-left: 1px;
}

/* ──────────────────────────────────────────────────
   INPUTS, SELECTS, TEXTAREA
────────────────────────────────────────────────── */
.juro-checkout-shell input[type="text"],
.juro-checkout-shell input[type="email"],
.juro-checkout-shell input[type="tel"],
.juro-checkout-shell input[type="password"],
.juro-checkout-shell select,
.juro-checkout-shell textarea {
  display: block;
  width: 100%;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  /* Espaçamento generoso: padding-top reserva espaço para label */
  padding: 34px 20px 14px 20px !important;
  font-family: var(--fn-b, 'BritannicBQ', sans-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--burg-deep, #4F1324);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 2;
  transition: color 0.2s ease;
}

/* Placeholder: transparente (label faz o trabalho) */
.juro-checkout-shell input::placeholder,
.juro-checkout-shell textarea::placeholder {
  color: transparent;
  user-select: none;
}

/* Fix autofill do browser */
.juro-checkout-shell input:-webkit-autofill,
.juro-checkout-shell input:-webkit-autofill:hover,
.juro-checkout-shell input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
  -webkit-text-fill-color: var(--burg-deep, #4F1324) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Select: padding com !important para vencer overrides do WooCommerce/tema */
.juro-checkout-shell select,
.juro-checkout-shell .form-row select,
.woocommerce-checkout .juro-checkout-shell select {
  padding: 34px 44px 14px 20px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5l4 4 4-4' stroke='%237A6B61' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  cursor: pointer;
  min-height: 64px !important;
  line-height: 1.2 !important;
}

/* Textarea */
.juro-checkout-shell textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.55;
}

/* ──────────────────────────────────────────────────
   WRAPPER DOS INPUTS (barra inferior removida)
────────────────────────────────────────────────── */
.juro-checkout-shell .form-row .woocommerce-input-wrapper {
  position: relative;
  display: block;
}

/* Ícone de check de validação no canto direito */
.juro-checkout-shell .form-row.woocommerce-validated .woocommerce-input-wrapper::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='8' stroke='%2363A26D' stroke-width='1.2'/%3E%3Cpath d='M5.5 9l2.5 2.5 5-5' stroke='%2363A26D' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 4;
}

/* ──────────────────────────────────────────────────
   MENSAGEM DE ERRO inline
────────────────────────────────────────────────── */
.juro-checkout-shell .woocommerce-error,
.juro-checkout-shell .form-row .woocommerce-error {
  font-size: 11px;
  color: #C0392B;
  margin: 6px 20px 10px;
  display: block;
  padding: 0;
  background: none;
  border: none;
  list-style: none;
  letter-spacing: 0.02em;
}

/* ──────────────────────────────────────────────────
   TÍTULO DE SEÇÃO DOS CAMPOS (h3 do WooCommerce)
────────────────────────────────────────────────── */
.juro-checkout-shell .woocommerce-billing-fields > h3,
.juro-checkout-shell .woocommerce-shipping-fields > h3,
.juro-checkout-shell #customer_details h3 {
  font-family: var(--fn-d, 'BritannicBQ', sans-serif);
  font-size: 18px;
  font-weight: 600;
  color: rgba(79, 19, 36, 0.4);
  letter-spacing: 0.06em;
  margin: 0 0 20px;
  padding: 0;
  border: none;
  text-transform: none;
}

/* ══════════════════════════════════════════════════
   5. SEÇÃO DE PAGAMENTO (#order_review + #payment)
══════════════════════════════════════════════════ */

/* ── Oculta tabela de itens dentro do painel 3 ── */
.juro-panel[data-panel="3"] .shop_table {
  display: none;
}

/* ── Payment box clean ── */
.juro-checkout-shell #payment {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.juro-checkout-shell #payment ul.payment_methods {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 28px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.juro-checkout-shell #payment ul.payment_methods li {
  background: #FFFFFF;
  border: 1px solid rgba(79, 19, 36, 0.10);
  border-radius: 8px;
  padding: 20px 22px !important;
  margin: 0 !important;
  transition: border-color 0.25s ease, box-shadow 0.3s cubic-bezier(0.22,1,.36,1);
  cursor: pointer;
  position: relative;
  box-shadow:
    inset 3px 0 0 transparent,
    0 1px 3px rgba(26, 17, 9, 0.04);
}

.juro-checkout-shell #payment ul.payment_methods li:hover {
  border-color: rgba(166, 50, 72, 0.22);
  box-shadow:
    inset 3px 0 0 transparent,
    0 4px 16px rgba(26, 17, 9, 0.07);
}

.juro-checkout-shell #payment ul.payment_methods li:has(input:checked) {
  border-color: rgba(166, 50, 72, 0.30);
  box-shadow:
    inset 3px 0 0 var(--burg, #A63248),
    0 4px 20px rgba(79, 19, 36, 0.10);
}

.juro-checkout-shell #payment ul.payment_methods li label {
  position: static;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink, #1A1109);
  cursor: pointer;
  padding-left: 8px;
  display: inline;
}

.juro-checkout-shell #payment ul.payment_methods li input[type="radio"] {
  accent-color: var(--burg, #A63248);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Caixa de descrição do método de pagamento */
.juro-checkout-shell #payment div.payment_box {
  background: transparent !important;
  color: var(--slate, #7A6B61) !important;
  font-size: 13px !important;
  padding: 12px 0 0 24px !important;
  margin: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.juro-checkout-shell #payment div.payment_box::before {
  display: none !important;
}

/* ── Botão FINALIZAR COMPRA ── */
.juro-checkout-shell #payment #place_order {
  display: block;
  width: 100%;
  background: var(--burg-deep, #4F1324);
  color: var(--cream, #F5EFE6);
  font-family: var(--fn-b, 'BritannicBQ', sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 22px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 28px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.juro-checkout-shell #payment #place_order::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 239, 230, 0.08), transparent);
  transition: left 0.6s ease;
}

.juro-checkout-shell #payment #place_order:hover::before {
  left: 100%;
}

.juro-checkout-shell #payment #place_order:hover {
  background: var(--burg, #A63248);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(79, 19, 36, 0.28);
}

.juro-checkout-shell #payment #place_order:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Texto de aviso de privacidade ── */
.juro-checkout-shell .woocommerce-privacy-policy-text {
  font-size: 11px;
  color: rgba(122, 107, 97, 0.65);
  margin-top: 16px;
  line-height: 1.6;
  text-align: center;
}

.juro-checkout-shell .woocommerce-privacy-policy-text a {
  color: var(--burg, #A63248);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════
   6. RESUMO DO PEDIDO (COLUNA DIREITA)
══════════════════════════════════════════════════ */
.juro-order-panel {
  grid-column: 3;
  background: var(--white, #fff);
  border-left: 1px solid rgba(79, 19, 36, 0.08);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 50, 72, 0.2) transparent;
}

.juro-order-panel::-webkit-scrollbar { width: 4px; }
.juro-order-panel::-webkit-scrollbar-track { background: transparent; }
.juro-order-panel::-webkit-scrollbar-thumb {
  background: rgba(166, 50, 72, 0.2);
  border-radius: 2px;
}

.juro-order-panel-inner {
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
}

.juro-order-panel-title {
  font-family: var(--fn-d, 'BritannicBQ', sans-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--burg-deep, #4F1324);
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(79, 19, 36, 0.1);
}

/* ── Itens do carrinho ── */
.juro-cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.juro-cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: juro-fade-up 0.5s ease both;
}

.juro-cart-thumb {
  position: relative;
  width: 64px;
  height: 80px;
  flex-shrink: 0;
}

.juro-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(26, 17, 9, 0.1);
}

.juro-cart-qty {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--burg-deep, #4F1324);
  color: var(--cream, #F5EFE6);
  font-family: var(--fn-b, 'BritannicBQ', sans-serif);
  font-size: 10px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.03em;
}

.juro-cart-info {
  flex: 1;
  min-width: 0;
}

.juro-cart-name {
  font-family: var(--fn-d, 'BritannicBQ', sans-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink, #1A1109);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.juro-cart-variation {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.juro-var-tag {
  font-size: 12px;
  font-weight: 400;
  color: var(--slate, #7A6B61);
  background: rgba(122, 107, 97, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.juro-cart-price {
  font-family: var(--fn-b, 'BritannicBQ', sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--burg-deep, #4F1324);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Totais ── */
.juro-totals-wrap {
    border-top: 1px solid rgba(79, 19, 36, 0.08);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: var(--fn-head);
}

.juro-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
}

.juro-totals-row:not(.juro-totals-row--grand) {
    font-size: 18px;
    font-weight: 400;
    color: var(--slate, #7A6B61);
}

.juro-totals-val {
  text-align: right;
  font-size: 15px;
  font-weight: 500;
  color: var(--burg-deep, #4F1324);
}

.juro-totals-divider {
  height: 1px;
  background: rgba(79, 19, 36, 0.1);
  margin: 8px 0;
}

.juro-totals-row--grand {
  font-family: var(--fn-d, 'BritannicBQ', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--burg-deep, #4F1324);
  padding-top: 16px;
}

.juro-totals-grand {
  font-family: var(--fn-d, 'BritannicBQ', sans-serif);
  font-size: 30px !important;
  font-weight: 700 !important;
  color: var(--burg, #A63248) !important;
}

/* WooCommerce price formatting */
.juro-totals-grand .woocommerce-Price-amount,
.juro-order-panel .woocommerce-Price-amount {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* ── Selos de segurança ── */
.juro-security-seals {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid rgba(79, 19, 36, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 36px;
}

.juro-seal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(122, 107, 97, 0.65);
  letter-spacing: 0.02em;
}

.juro-seal svg {
  color: var(--burg-lt, #C4566A);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   7. MENSAGENS DE ERRO WooCommerce (nível de form)
══════════════════════════════════════════════════ */
.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-checkout .woocommerce-error {
  background: rgba(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 13px;
  color: #922B21;
  list-style: none;
}

.woocommerce-checkout .woocommerce-error li {
  padding: 2px 0;
}

/* ══════════════════════════════════════════════════
   8. ANIMAÇÕES
══════════════════════════════════════════════════ */
@keyframes juro-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes juro-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger nos itens do carrinho */
.juro-cart-item:nth-child(1) { animation-delay: 0.05s; }
.juro-cart-item:nth-child(2) { animation-delay: 0.1s; }
.juro-cart-item:nth-child(3) { animation-delay: 0.15s; }
.juro-cart-item:nth-child(4) { animation-delay: 0.2s; }

/* ══════════════════════════════════════════════════
   9. RESPONSIVO — TABLET (≤ 1100px)
══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .juro-checkout-shell {
    grid-template-columns: 180px 1fr 340px;
  }

  .juro-form-area {
    padding: 48px 40px 64px;
  }

  .juro-order-panel-inner {
    padding: 40px 28px;
  }

  .juro-panel-title {
    font-size: 32px;
  }
}

/* ══════════════════════════════════════════════════
   10. RESPONSIVO — MOBILE / TABLET VERTICAL (≤ 820px)
══════════════════════════════════════════════════ */
@media (max-width: 820px) {
  .juro-checkout-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
  }

  /* Sidebar vira barra horizontal no topo */
  .juro-sidebar {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    position: relative;
    padding: 0;
  }

  .juro-sidebar-inner {
    flex-direction: row;
    align-items: center;
    padding: 18px 24px;
    gap: 0;
  }

  .juro-brand-lockup {
    margin-bottom: 0;
    margin-right: auto;
  }

  .juro-brand-text {
    font-size: 20px;
  }

  .juro-brand-divider,
  .juro-brand-sub {
    display: none;
  }

  .juro-progress-nav,
  .juro-sidebar-trust {
    display: none;
  }

  /* Form area */
  .juro-form-area {
    grid-column: 1;
    grid-row: 2;
    padding: 0 20px 48px;
    overflow-y: visible;
  }

  /* Barra de progresso mobile */
  .juro-mobile-progress {
    display: block;
    padding: 24px 0 32px;
    position: relative;
  }

  .juro-mobile-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .juro-mobile-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(122, 107, 97, 0.5);
    transition: color 0.25s ease;
  }

  .juro-mobile-step.is-active,
  .juro-mobile-step.is-complete {
    color: var(--burg, #A63248);
    font-weight: 500;
  }

  .juro-mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(122, 107, 97, 0.25);
    transition: background 0.25s ease, transform 0.25s ease;
  }

  .juro-mobile-step.is-active .juro-mobile-dot {
    background: var(--burg, #A63248);
    transform: scale(1.3);
  }

  .juro-mobile-step.is-complete .juro-mobile-dot {
    background: var(--burg-lt, #C4566A);
  }

  .juro-mobile-bar {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(122, 107, 97, 0.15);
    border-radius: 1px;
  }

  .juro-mobile-bar-fill {
    height: 100%;
    background: var(--burg, #A63248);
    border-radius: 1px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Painel */
  .juro-panel-title { font-size: 30px; }
  .juro-panel-header { margin-bottom: 28px; }
  .juro-panel-footer { margin-top: 32px; }

  /* Campos side-by-side → full width */
  .juro-checkout-shell .form-row-first,
  .juro-checkout-shell .form-row-last {
    width: 100%;
    display: block;
    margin-right: 0;
  }

  /* Order panel */
  .juro-order-panel {
    grid-column: 1;
    grid-row: 3;
    height: auto;
    position: static;
    border-left: none;
    border-top: 1px solid rgba(79, 19, 36, 0.08);
    background: #F7F2EC;
  }

  .juro-order-panel-inner {
    padding: 32px 20px;
  }

  .juro-btn-next,
  .juro-checkout-shell #payment #place_order {
    width: 100%;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════
   11. AJUSTE: WooCommerce sobrescritos globais
══════════════════════════════════════════════════ */

/* Garante que padding correto não seja sobrescrito pelo WooCommerce */
.woocommerce-checkout form.checkout .form-row {
  padding: 0;
}

/* Inputs dentro dos cartões: garantir padding correto */
.woocommerce-checkout .juro-checkout-shell .form-row input,
.woocommerce-checkout .juro-checkout-shell .form-row textarea {
  padding: 34px 20px 14px 20px !important;
}

/* Selects: padding direito maior para o chevron */
.woocommerce-checkout .juro-checkout-shell .form-row select {
  padding: 34px 44px 14px 20px !important;
  min-height: 64px !important;
}

.woocommerce-checkout h3#order_review_heading {
  display: none; /* Usamos nosso próprio título no painel */
}

/* Frete: rádio buttons */
.juro-checkout-shell .shipping_method {
  accent-color: var(--burg, #A63248);
}

.juro-checkout-shell table.shipping td,
.juro-checkout-shell table.shipping th {
  border: none !important;
  padding: 6px 0 !important;
  background: transparent !important;
  font-size: 13px;
  color: var(--slate, #7A6B61);
}

/* ══════════════════════════════════════════════════
   12. AVISO DE CUPOM — Banner slim acima do checkout
══════════════════════════════════════════════════ */

/* Container global da faixa de cupom (fora do shell) */
.woocommerce-checkout .woocommerce-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #FFFFFF !important;
  border: none !important;
  border-bottom: 1px solid rgba(79, 19, 36, 0.10) !important;
  border-top: 1px solid rgba(79, 19, 36, 0.10) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 13px 32px !important;
  margin: 0 0 0 !important;
  font-family: var(--fn-b, 'BritannicBQ', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: rgba(122, 107, 97, 0.75) !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
}

/* Remove ícone padrão WooCommerce (::before) */
.woocommerce-checkout .woocommerce-info::before {
  content: none !important;
  display: none !important;
}

/* Ícone tag custom */
.woocommerce-checkout .woocommerce-info::after {
  content: none !important;
}

/* Separador · entre texto e link */
.woocommerce-checkout .woocommerce-info > text,
.woocommerce-checkout .woocommerce-info {
  gap: 6px !important;
}

/* Link "Clique aqui e informe..." */
.woocommerce-checkout .woocommerce-info a.showcoupon {
  color: #4F1324 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  letter-spacing: 0.01em !important;
  border-bottom: 1.5px solid rgba(79, 19, 36, 0.25) !important;
  padding-bottom: 1px !important;
  transition: border-color 0.2s ease, color 0.2s ease !important;
}

.woocommerce-checkout .woocommerce-info a.showcoupon:hover {
  color: #A63248 !important;
  border-bottom-color: #A63248 !important;
}

/* ── Formulário de cupom expandido ── */
.woocommerce-checkout form.checkout_coupon,
.checkout_coupon {
  display: flex !important;
  align-items: stretch !important;
  background: #FFFFFF !important;
  border: none !important;
  border-bottom: 1px solid rgba(79, 19, 36, 0.10) !important;
  border-radius: 0 !important;
  padding: 0 32px !important;
  margin: 0 0 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.checkout_coupon p {
  display: contents !important;
}

/* Input do código de cupom */
.checkout_coupon #coupon_code,
.checkout_coupon input[name="coupon_code"] {
  flex: 1 !important;
  max-width: 320px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid rgba(79, 19, 36, 0.18) !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 14px 0 10px !important;
  font-family: var(--fn-b, 'BritannicBQ', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #4F1324 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  margin-right: 16px !important;
  transition: border-color 0.2s ease !important;
}

.checkout_coupon #coupon_code:focus,
.checkout_coupon input[name="coupon_code"]:focus {
  border-bottom-color: #A63248 !important;
}

.checkout_coupon #coupon_code::placeholder,
.checkout_coupon input[name="coupon_code"]::placeholder {
  color: rgba(122, 107, 97, 0.4) !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
}

/* Botão Aplicar */
.checkout_coupon .button[name="apply_coupon"],
.checkout_coupon button[type="submit"],
.checkout_coupon input[type="submit"] {
  flex-shrink: 0 !important;
  background: transparent !important;
  color: #4F1324 !important;
  font-family: var(--fn-b, 'BritannicBQ', sans-serif) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 14px 0 10px !important;
  border: none !important;
  border-bottom: 1.5px solid #4F1324 !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: color 0.2s ease, border-color 0.2s ease !important;
  white-space: nowrap !important;
  background-color: transparent !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: 1 !important;
}

.checkout_coupon .button[name="apply_coupon"]:hover,
.checkout_coupon button[type="submit"]:hover,
.checkout_coupon input[type="submit"]:hover {
  color: #A63248 !important;
  border-bottom-color: #A63248 !important;
}

.woocommerce-checkout .woocommerce-info {
    justify-content: center;
}

.checkout_coupon .button[name="apply_coupon"]:hover,
.checkout_coupon button[type="submit"]:hover {
  background: var(--burg, #A63248) !important;
}

:where(.woocommerce) .select2-container .select2-dropdown, :where(.woocommerce) .select2-container .select2-selection {
    background-color: var(--wc-form-color-background, #fff) !important;
    border: var(--wc-form-border-width, 1px) solid rgb(255 255 255 / 80%) !important;
    border-radius: var(--wc-form-border-radius, 4px) !important;
}
:where(.woocommerce) .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 30px 18px !important;
    font-family: var(--fn-head);
    font-weight: 800;
}
.woocommerce-checkout form.checkout_coupon, .checkout_coupon {
    justify-content: center;
}

.checkout_coupon .button[name="apply_coupon"]:hover, .checkout_coupon button[type="submit"]:hover, .checkout_coupon input[type="submit"]:hover {
    color: #ffffff !important;
    border-bottom-color: #fff !important;
    padding: 10px !important;
}