/* =========================================================
   THE KING OF GRILL — CARRINHO E CHECKOUT PREMIUM
   Apenas dentro dos shortcodes kg_carrinho_premium / kg_checkout_premium
   ========================================================= */
:root {
  --kgcp-ink: #20363b;
  --kgcp-ink-soft: #586569;
  --kgcp-gold: #ae8656;
  --kgcp-warm: #f9f8f5;
  --kgcp-line: #e6e7e4;
  --kgcp-radius: 16px;
}
.kgcp-shell, .kgcp-shell * { box-sizing: border-box; }
.kgcp-shell {
  font-family: inherit;
  color: var(--kgcp-ink);
  width: min(100% - 32px, 1200px);
  margin: 32px auto 72px;
  font-size: 15px;
  line-height: 1.55;
}
.kgcp-shell .kgcp-eyebrow {
  display: block;
  color: #916d42;
  font-size: 11px;
  letter-spacing: .17em;
  font-weight: 750;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.kgcp-page-hero { padding: 5px 0 25px; border-bottom: 1px solid var(--kgcp-line); margin: 0 0 30px; }
.kgcp-page-hero h1,
.kgcp-section-heading h2 {
  font-family: Georgia, 'Times New Roman', serif !important;
  letter-spacing: -.035em !important;
  font-weight: 500 !important;
  color: var(--kgcp-ink) !important;
}
.kgcp-page-hero h1 { font-size: clamp(30px, 3.7vw, 48px) !important; line-height: 1.12 !important; margin: 0 0 8px !important; }
.kgcp-page-hero p { margin: 0; color: var(--kgcp-ink-soft); }
.kgcp-section-heading { margin-bottom: 22px; }
.kgcp-section-heading h2 { font-size: clamp(25px, 2.7vw, 34px) !important; margin: 0 0 5px !important; }
.kgcp-section-heading p { margin: 0; color: var(--kgcp-ink-soft); font-size: 14px; }

/* Extras */
.kgcp-extras {
  border: 1px solid var(--kgcp-line);
  background: var(--kgcp-warm);
  border-radius: var(--kgcp-radius);
  padding: clamp(18px, 3vw, 32px);
  margin: 0 0 30px;
  box-shadow: 0 9px 35px rgba(15, 29, 30, .035);
}
.kgcp-extras-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.kgcp-extra-group h3 { margin: 0 !important; font-weight: 700 !important; font-family: inherit !important; font-size: 17px !important; color: var(--kgcp-ink) !important; }
.kgcp-group-desc { margin: 2px 0 13px; font-size: 12px; color: var(--kgcp-ink-soft); }
.kgcp-extra-items { display: grid; gap: 9px; }
.kgcp-extra-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--kgcp-line);
  border-radius: 11px;
}
.kgcp-extra-info { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.kgcp-extra-thumb { flex: 0 0 52px; height: 52px; display: block; overflow: hidden; border-radius: 8px; background: #f6f6f4; }
.kgcp-extra-thumb img { display: block !important; width: 100% !important; height: 100% !important; object-fit: cover !important; margin: 0 !important; }
.kgcp-extra-text { min-width: 0; display: grid; gap: 1px; }
.kgcp-extra-text label { font-size: 13px !important; font-weight: 650; line-height: 1.3; cursor: pointer; color: var(--kgcp-ink); }
.kgcp-extra-price { font-size: 13px; font-weight: 700; color: #927048; }
.kgcp-extra-price .woocommerce-Price-amount { color: inherit !important; }
.kgcp-qty { display: inline-flex; flex-shrink: 0; align-items: center; overflow: hidden; border: 1px solid #dee0dd; border-radius: 9px; background: #fff; }
.kgcp-qty button,
.kgcp-qty input {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  height: 36px !important;
  color: var(--kgcp-ink) !important;
  background: #fff !important;
  text-align: center !important;
  box-shadow: none !important;
}
.kgcp-qty button { width: 32px !important; padding: 0 !important; cursor: pointer; font-size: 19px !important; font-weight: 400 !important; }
.kgcp-qty button:hover { background: #f2f0ec !important; }
.kgcp-qty input { width: 32px !important; min-width: 0 !important; padding: 0 !important; font-size: 13px !important; font-weight: 700 !important; }
.kgcp-qty input::-webkit-inner-spin-button, .kgcp-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.kgcp-extra-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--kgcp-line); }
.kgcp-extra-bottom p { margin: 0; color: var(--kgcp-ink-soft); font-size: 13px; }
.kgcp-locked-qty { display: inline-block; font-weight: 700; padding: 3px 8px; background: #f4f2ee; border-radius: 6px; }

/* Botões, links e focos */
.kgcp-shell a { color: var(--kgcp-ink); }
.kgcp-shell a:hover { color: #947144; }
.kgcp-shell :is(.kgcp-save, .checkout-button, #place_order, button.button, input.button, a.button) {
  background: var(--kgcp-ink) !important;
  color: #fff !important;
  border: 1px solid var(--kgcp-ink) !important;
  border-radius: 9px !important;
  padding: 12px 18px !important;
  min-height: 45px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: background .2s, transform .2s;
  white-space: normal;
}
.kgcp-shell :is(.kgcp-save, .checkout-button, #place_order, button.button, input.button, a.button):hover { background: #324c51 !important; transform: translateY(-1px); }
.kgcp-shell :is(input,textarea,select,button,a):focus-visible { outline: 2px solid var(--kgcp-gold) !important; outline-offset: 3px; }
.kgcp-shell .woocommerce-message, .kgcp-shell .woocommerce-info, .kgcp-shell .woocommerce-error {
  border-radius: 10px !important; background: #f5f7f5 !important; border: 1px solid #e0e4df !important;
  color: var(--kgcp-ink) !important; padding: 15px 19px !important; margin: 0 0 18px !important;
}

/* Carrinho clássico: produtos à esquerda, resumo à direita */
.kgcp-cart-shell .woocommerce:has(> form.woocommerce-cart-form) {
  display: grid !important;
  grid-template-columns: minmax(0, 1.75fr) minmax(290px, .85fr) !important;
  align-items: start !important;
  gap: 26px !important;
}
.kgcp-cart-shell .woocommerce:has(> form.woocommerce-cart-form) > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.kgcp-cart-shell .woocommerce:has(> form.woocommerce-cart-form) > form.woocommerce-cart-form { grid-column: 1; min-width: 0; }
.kgcp-cart-shell .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals { grid-column: 2; min-width: 0; width: 100% !important; float: none !important; }
.kgcp-cart-shell .woocommerce-cart-form,
.kgcp-cart-shell .cart_totals,
.kgcp-checkout-shell .woocommerce-checkout-review-order,
.kgcp-checkout-shell .woocommerce-billing-fields,
.kgcp-checkout-shell .woocommerce-shipping-fields,
.kgcp-checkout-shell .woocommerce-additional-fields {
  background: #fff;
  border: 1px solid var(--kgcp-line);
  border-radius: var(--kgcp-radius);
  padding: clamp(14px, 2vw, 25px);
  box-shadow: 0 10px 35px rgba(15, 29, 30, .04);
}
.kgcp-cart-shell .cart-collaterals .cart_totals { float: none !important; width: 100% !important; }
.kgcp-shell table.shop_table { width: 100% !important; border-collapse: separate !important; border-spacing: 0 !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important; }
.kgcp-shell table.shop_table th,
.kgcp-shell table.shop_table td { border: 0 !important; border-bottom: 1px solid #edeeea !important; vertical-align: middle !important; padding: 14px 9px !important; background: transparent !important; color: var(--kgcp-ink) !important; }
.kgcp-shell table.shop_table th { font-size: 11px !important; font-weight: 750 !important; text-transform: uppercase !important; letter-spacing: .075em !important; }
.kgcp-shell table.shop_table td.product-thumbnail img { width: 67px !important; height: 67px !important; max-width: none !important; object-fit: cover !important; border-radius: 9px !important; }
.kgcp-shell table.shop_table td.product-name { font-weight: 650; font-size: 14px; }
.kgcp-shell table.shop_table td.product-name .variation { margin-top: 5px; font-size: 12px; font-weight: 400; color: var(--kgcp-ink-soft); }
.kgcp-shell table.shop_table input.qty { width: 60px !important; min-height: 37px !important; border: 1px solid #ddd !important; border-radius: 7px !important; background: #fff !important; font-size: 14px !important; padding: 4px !important; color: var(--kgcp-ink) !important; }
.kgcp-shell table.shop_table td.actions { border-bottom: 0 !important; padding: 18px 9px 0 !important; }
.kgcp-shell .cart_totals h2,
.kgcp-checkout-shell #order_review_heading,
.kgcp-checkout-shell .woocommerce-billing-fields h3 { color: var(--kgcp-ink) !important; font-family: Georgia,'Times New Roman',serif !important; font-size: 25px !important; line-height: 1.2 !important; margin: 0 0 17px !important; }
.kgcp-cart-shell .wc-proceed-to-checkout { padding: 16px 0 0 !important; }
.kgcp-cart-shell .wc-proceed-to-checkout .checkout-button { display: flex !important; align-items: center; justify-content: center; width: 100% !important; margin: 0 !important; }
.kgcp-shell .woocommerce-Price-amount { font-weight: 700; white-space: nowrap; }

/* Checkout: identidade, campos e resumo */
.kgcp-checkout-shell form.checkout { display: block !important; }
.kgcp-checkout-shell .col2-set { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-bottom: 25px; }
.kgcp-checkout-shell .col2-set::before, .kgcp-checkout-shell .col2-set::after { display: none !important; }
.kgcp-checkout-shell .col2-set > .col-1,
.kgcp-checkout-shell .col2-set > .col-2 { float: none !important; width: 100% !important; min-width: 0; }
.kgcp-checkout-shell #order_review { padding: 22px; border-radius: var(--kgcp-radius); border: 1px solid var(--kgcp-line); background: #fff; }
.kgcp-checkout-shell .woocommerce-checkout-review-order { border: 0; box-shadow: none; padding: 0; }
.kgcp-checkout-shell #payment { background: #f7f7f4 !important; border-radius: 12px !important; padding: 12px !important; }
.kgcp-checkout-shell #place_order { width: 100% !important; }
.kgcp-checkout-shell :is(input.input-text, textarea,select) { border: 1px solid #d9ddda !important; border-radius: 8px !important; background: #fff !important; padding: 11px 12px !important; min-height: 43px !important; width: 100%; color: var(--kgcp-ink) !important; }
.kgcp-checkout-shell label { color: var(--kgcp-ink) !important; font-weight: 600; font-size: 13px; }
.kgcp-checkout-shell .form-row { padding: 3px !important; margin-bottom: 12px !important; }
.kgcp-checkout-shell .select2-container--default .select2-selection--single { border: 1px solid #d9ddda !important; border-radius: 8px !important; height: 43px !important; }
.kgcp-checkout-shell .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 41px !important; }

/* Tablet */
@media (max-width: 1020px) {
  .kgcp-cart-shell .woocommerce:has(> form.woocommerce-cart-form) { grid-template-columns: minmax(0, 1fr) !important; }
  .kgcp-cart-shell .woocommerce:has(> form.woocommerce-cart-form) > form.woocommerce-cart-form,
  .kgcp-cart-shell .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals { grid-column: 1 !important; }
  .kgcp-extras-groups { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 15px; }
  .kgcp-checkout-shell .col2-set { grid-template-columns: 1fr; }
}
/* Telemóvel */
@media (max-width: 680px) {
  .kgcp-shell { width: min(100% - 24px, 1200px); margin: 18px auto 48px; font-size: 14px; }
  .kgcp-page-hero { margin-bottom: 20px; padding-bottom: 18px; }
  .kgcp-extras { padding: 17px 12px; }
  .kgcp-extras-groups { grid-template-columns: 1fr; gap: 21px; }
  .kgcp-extra-item { padding: 9px; gap: 7px; }
  .kgcp-extra-thumb { flex-basis: 45px; height: 45px; }
  .kgcp-extra-bottom { align-items: stretch; flex-direction: column; }
  .kgcp-extra-bottom .kgcp-save { width: 100%; }
  .kgcp-cart-shell .woocommerce-cart-form, .kgcp-cart-shell .cart_totals { padding: 12px !important; }
  .kgcp-shell table.shop_table td { padding: 12px 8px !important; }
  .kgcp-shell table.shop_table td.product-thumbnail img { width: 58px !important; height: 58px !important; }
  .kgcp-shell table.shop_table_responsive tr td::before { color: var(--kgcp-ink-soft) !important; font-size: 12px !important; }
  .kgcp-checkout-shell #order_review { padding: 13px; }
  .kgcp-checkout-shell .woocommerce-billing-fields, .kgcp-checkout-shell .woocommerce-shipping-fields, .kgcp-checkout-shell .woocommerce-additional-fields { padding: 15px; }
}

/* Alergias alimentares — depois dos talheres no carrinho */
.kgcp-extras .kgcp-allergies {
  min-width: 0;
  margin: 25px 0 0;
  border: 1px solid #e6e7e4;
  border-radius: 13px;
  padding: 22px 20px;
  background: #fff;
  color: var(--kgcp-ink);
}
.kgcp-allergies legend.kgcp-allergies-title,
.kgcp-checkout-allergies h3 {
  font-size: 18px !important;
  font-family: inherit !important;
  line-height: 1.4 !important;
  font-weight: 750 !important;
  color: var(--kgcp-ink) !important;
  padding: 0 5px !important;
  margin: 0 !important;
}
.kgcp-allergies-hint { color: var(--kgcp-ink-soft); font-size: 13px; margin: 3px 0 15px; }
.kgcp-allergies-choices { display: flex; flex-wrap: wrap; gap: 12px; }
.kgcp-allergy-choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fafaf8;
  padding: 10px 17px;
  border: 1px solid var(--kgcp-line);
  border-radius: 10px;
  color: var(--kgcp-ink) !important;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}
.kgcp-allergy-choice:has(input:checked) { background: #f3eee7; border-color: var(--kgcp-gold); }
.kgcp-allergy-choice input { accent-color: #9c784c; width: 16px; height: 16px; margin: 0 !important; }
.kgcp-allergy-details { margin-top: 16px; }
.kgcp-allergy-details[hidden] { display: none !important; }
.kgcp-allergy-details label { display: block; font-size: 13px; font-weight: 700; color: var(--kgcp-ink) !important; margin-bottom: 7px; }
.kgcp-shell .kgcp-allergy-details textarea {
  display: block; width: 100%; min-height: 92px;
  padding: 11px 13px !important; border: 1px solid #d7dad7 !important;
  border-radius: 10px !important; font-size: 14px !important;
  font-family: inherit !important; color: var(--kgcp-ink) !important;
  background: #fff !important; resize: vertical;
}
.kgcp-allergy-warning { color: #695c50; font-size: 12px; line-height: 1.55; margin: 14px 0 0 !important; }
.kgcp-checkout-allergies { margin: 20px 0; padding: 20px; background: #fafaf8; border: 1px solid var(--kgcp-line); border-radius: 14px; }
.kgcp-checkout-allergies h3 { margin-bottom: 16px !important; }
.kgcp-checkout-allergies .form-row { margin: 0 0 12px !important; }
@media (max-width: 680px) {
  .kgcp-extras .kgcp-allergies { padding: 17px 12px; margin-top: 22px; }
  .kgcp-checkout-allergies { padding: 14px; }
}


/* V1.2 - checkout premium verdadeiramente responsivo */
.kgcp-checkout-shell .woocommerce,
.kgcp-checkout-shell form.checkout,
.kgcp-checkout-shell #customer_details,
.kgcp-checkout-shell #order_review,
.kgcp-checkout-shell .col2-set,
.kgcp-checkout-shell .col2-set > div { min-width:0 !important; max-width:100% !important; box-sizing:border-box !important; }
.kgcp-checkout-shell .col2-set { grid-template-columns:minmax(0,1fr) !important; }
.kgcp-checkout-shell .woocommerce-checkout-payment li { overflow-wrap:anywhere; }
.kgcp-checkout-shell #order_review table.shop_table { table-layout:fixed !important; width:100% !important; }
.kgcp-checkout-shell #order_review table.shop_table th,
.kgcp-checkout-shell #order_review table.shop_table td { overflow-wrap:anywhere !important; white-space:normal !important; }
.kgcp-checkout-shell #order_review table.shop_table th:first-child,
.kgcp-checkout-shell #order_review table.shop_table td:first-child { width:64%; text-align:left; }
.kgcp-checkout-shell #order_review table.shop_table th:last-child,
.kgcp-checkout-shell #order_review table.shop_table td:last-child { width:36%; text-align:right; }
.kgcp-checkout-shell .kgcp-cash-fields { padding-top:10px; }
.kgcp-checkout-shell .kgcp-cash-amount[hidden] { display:none !important; }
.kgcp-checkout-shell .kgcp-change-preview { font-weight:700; color:#243e40; }
@media (max-width: 767px) {
  body.woocommerce-checkout .kgcp-checkout-shell { width:calc(100% - 12px) !important; max-width:none !important; margin:12px auto 34px !important; padding:0 !important; }
  body.woocommerce-checkout .kgcp-checkout-shell form.checkout,
  body.woocommerce-checkout .kgcp-checkout-shell .woocommerce { width:100% !important; margin:0 !important; padding:0 !important; }
  body.woocommerce-checkout .kgcp-checkout-shell .col2-set,
  body.woocommerce-checkout .kgcp-checkout-shell #customer_details { display:block !important; width:100% !important; margin:0 !important; }
  body.woocommerce-checkout .kgcp-checkout-shell .col2-set > .col-1,
  body.woocommerce-checkout .kgcp-checkout-shell .col2-set > .col-2 { float:none !important; width:100% !important; margin:0 0 12px !important; padding:0 !important; }
  body.woocommerce-checkout .kgcp-checkout-shell :is(.woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-additional-fields,#order_review) { padding:12px !important; margin:0 0 14px !important; width:100% !important; box-sizing:border-box !important; }
  body.woocommerce-checkout .kgcp-checkout-shell .form-row-first,
  body.woocommerce-checkout .kgcp-checkout-shell .form-row-last { float:none !important; width:100% !important; }
  body.woocommerce-checkout .kgcp-checkout-shell #order_review_heading { padding:0 4px !important; margin:16px 0 !important; }
  body.woocommerce-checkout .kgcp-checkout-shell #order_review table.shop_table th,
  body.woocommerce-checkout .kgcp-checkout-shell #order_review table.shop_table td { padding:12px 5px !important; font-size:12px !important; }
  body.woocommerce-checkout .kgcp-checkout-shell #payment { padding:10px !important; }
  body.woocommerce-checkout .kgcp-checkout-shell #payment ul.payment_methods { padding:8px 0 !important; }
}

/* ================================================
   THE KING OF GRILL — V1.3 ENTREGA / LEVANTAMENTO
   ================================================ */
.kgcp-checkout-shell .kgcp-entrega-seletor {
  margin: 0 0 22px; padding: clamp(16px,2.2vw,25px);
  border: 1px solid #deded7; border-radius: 16px;
  background: #fcfbf9; box-shadow: 0 5px 19px rgba(20,35,38,.035);
}
.kgcp-checkout-shell .kgcp-etapa { display:flex;align-items:flex-start;gap:12px; }
.kgcp-checkout-shell .kgcp-etapa > span {
  flex: 0 0 33px;display:grid;place-items:center;height:33px;
  border-radius:50%;border:1px solid #be9a68;color:#936a35;
  font-weight:700;font-size:12px;background:#fff;
}
.kgcp-checkout-shell .kgcp-etapa h3 {
  font-family: Georgia,'Times New Roman',serif !important;
  color:#20363b !important;font-size:clamp(20px,2vw,25px) !important;
  margin:0 0 5px !important;line-height:1.25 !important;
}
.kgcp-checkout-shell .kgcp-etapa p {color:#607077 !important;margin:0 !important;font-size:13px;}
.kgcp-checkout-shell .kgcp-entrega-escolhas {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 0;
}
.kgcp-checkout-shell .kgcp-entrega-opcao {
  position:relative;display:flex;align-items:center;gap:11px;cursor:pointer;
  border:1px solid #e0e2df;background:#fff;border-radius:12px;
  padding:15px 13px;min-width:0;transition:border-color .15s,background .15s;
  color:#20363b !important;text-transform:none !important;
}
.kgcp-checkout-shell .kgcp-entrega-opcao[hidden],
.kgcp-checkout-shell .kgcp-entrega-escolhas[hidden],
.kgcp-checkout-shell .kgcp-entrega-alerta[hidden] {display:none !important;}
.kgcp-checkout-shell .kgcp-entrega-opcao.kgcp-ativa {
  border-color:#ab854d;background:#faf5ef;box-shadow:0 0 0 1px #b9915f33;
}
.kgcp-checkout-shell .kgcp-entrega-opcao input { width:18px !important;height:18px !important;flex-shrink:0;accent-color:#98703e; }
.kgcp-checkout-shell .kgcp-entrega-opcao-texto {display:grid;gap:3px;flex:1;min-width:0;}
.kgcp-checkout-shell .kgcp-entrega-opcao-texto strong {font-size:14px;color:#20363b !important;line-height:1.2;}
.kgcp-checkout-shell .kgcp-entrega-opcao-texto small {font-size:11px;color:#647076;line-height:1.35;}
.kgcp-checkout-shell .kgcp-entrega-preco {white-space:nowrap;color:#997445;font-weight:750;font-size:13px;}
.kgcp-checkout-shell .kgcp-entrega-alerta {
  color:#7c4b18;background:#fff2dc;padding:11px 13px;border-radius:9px;margin:14px 0 0;font-size:13px;
}
.kgcp-checkout-shell .kgcp-morada-oculta {display:none !important;}
/* Ocultar lista nativa duplicada quando pelo menos uma opção do seletor superior está disponível. */
.kgcp-checkout-shell.kgcp-shipping-ready #order_review #shipping_method { display:none !important; }
.kgcp-checkout-shell.kgcp-shipping-ready #order_review tr.woocommerce-shipping-totals .woocommerce-shipping-destination,
.kgcp-checkout-shell.kgcp-shipping-ready #order_review tr.woocommerce-shipping-totals .woocommerce-shipping-calculator {display:none !important;}
.kgcp-checkout-shell.kgcp-shipping-ready #order_review tr.woocommerce-shipping-totals td::after {
  content:'Método escolhido acima';display:block;color:#69767a;font-size:11px;margin-top:5px;
}
@media (max-width:767px) {
  .kgcp-checkout-shell .kgcp-entrega-seletor {padding:13px 11px;margin-bottom:14px;}
  .kgcp-checkout-shell .kgcp-entrega-escolhas {grid-template-columns:1fr;gap:8px;margin-top:15px;}
  .kgcp-checkout-shell .kgcp-entrega-opcao {padding:12px 10px;}
  .kgcp-checkout-shell .kgcp-etapa h3 {font-size:20px !important;}
}

/* ==========================================================
   V1.4 - Contraste e legibilidade nas tabelas do carrinho
   Fundo claro, texto escuro, sem interferir com os botões
   ========================================================== */
.kgcp-cart-shell .woocommerce table.shop_table thead,
.kgcp-cart-shell .woocommerce table.shop_table thead tr,
.kgcp-cart-shell .woocommerce table.shop_table thead th {
  background: #f1f3f0 !important;
  background-color: #f1f3f0 !important;
  color: #20363b !important;
}
.kgcp-cart-shell .woocommerce-cart-form table.shop_table tbody tr,
.kgcp-cart-shell .cart_totals table.shop_table tbody tr,
.kgcp-cart-shell .cart_totals table.shop_table tfoot tr {
  background: #ffffff !important;
  color: #20363b !important;
}
.kgcp-cart-shell .woocommerce-cart-form table.shop_table :is(td,th),
.kgcp-cart-shell .cart_totals table.shop_table :is(td,th),
.kgcp-cart-shell .cart_totals h2,
.kgcp-cart-shell table.shop_table :is(.woocommerce-Price-amount,.woocommerce-Price-amount bdi) {
  color: #20363b !important;
}
.kgcp-cart-shell .cart_totals table.shop_table th,
.kgcp-cart-shell .cart_totals table.shop_table td,
.kgcp-cart-shell .cart_totals table.shop_table .order-total,
.kgcp-cart-shell .cart_totals table.shop_table .order-total :is(td,th) {
  background: #ffffff !important;
  color: #20363b !important;
}
.kgcp-cart-shell .cart_totals table.shop_table tr.order-total,
.kgcp-cart-shell .cart_totals table.shop_table tr.order-total :is(th,td) {
  background: #f3f1eb !important;
  font-weight: 750 !important;
}
.kgcp-cart-shell .woocommerce-cart-form table.shop_table thead :is(th,span,a),
.kgcp-cart-shell .cart_totals table.shop_table :is(th,td) :is(strong,span) {
  color: #20363b !important;
}
.kgcp-cart-shell .woocommerce-cart-form table.shop_table a:not(.button) {
  color: #20363b !important;
}
.kgcp-cart-shell table.shop_table_responsive tr td::before {
  color: #53666a !important;
  font-weight: 700 !important;
}
.kgcp-checkout-shell .kgcp-allergy-summary {
  background: #f7f8f5;
  border-left: 3px solid #ae8656;
}
.kgcp-checkout-shell .kgcp-allergy-summary p {
  color: #20363b !important;
  margin: 8px 0 10px !important;
  overflow-wrap: anywhere;
}
.kgcp-checkout-shell .kgcp-allergy-edit {
  display: inline-block;
  color: #805b33 !important;
  font-size: 13px;
  text-decoration: underline;
  font-weight: 650;
}
/* ================================================================
   THE KING OF GRILL — V1.5
   Checkout clássico: legibilidade + correção do resumo no telemóvel.
   As regras permanecem dentro dos shortcodes do plugin.
   ================================================================ */
.kgcp-shell {
  --kgcp-v15-ink: #25363b;
  --kgcp-v15-muted: #63737a;
  --kgcp-v15-line: #e5e7e5;
  --kgcp-v15-gold: #a47b4c;
}
.kgcp-checkout-shell,
.kgcp-checkout-shell .woocommerce,
.kgcp-cart-shell .woocommerce {
  color: var(--kgcp-v15-ink) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.kgcp-checkout-shell .woocommerce-checkout,
.kgcp-checkout-shell .woocommerce-checkout > *,
.kgcp-checkout-shell #order_review_heading,
.kgcp-checkout-shell #order_review {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
/* Área principal do resumo: evitar o fundo preto imposto pelo tema. */
.kgcp-checkout-shell #order_review,
.kgcp-checkout-shell #order_review table,
.kgcp-checkout-shell #order_review .woocommerce-checkout-review-order,
.kgcp-checkout-shell #order_review table.shop_table,
.kgcp-checkout-shell #order_review table.shop_table :is(thead,tbody,tfoot,tr,th,td) {
  background: #fff !important;
  background-color: #fff !important;
  color: var(--kgcp-v15-ink) !important;
  box-shadow: none !important;
}
.kgcp-checkout-shell #order_review {
  border: 1px solid var(--kgcp-v15-line) !important;
  border-radius: 14px !important;
  padding: clamp(12px, 2vw, 24px) !important;
}
.kgcp-checkout-shell #order_review_heading,
.kgcp-checkout-shell .woocommerce-billing-fields h3 {
  color: #23363d !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(23px, 3vw, 29px) !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
.kgcp-checkout-shell #order_review table.shop_table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: auto !important;
}
.kgcp-checkout-shell #order_review table.shop_table :is(th,td),
.kgcp-cart-shell .woocommerce-cart-form table.shop_table :is(th,td) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  color: var(--kgcp-v15-ink) !important;
  vertical-align: top !important;
  border: 0 !important;
  border-bottom: 1px solid #ebedeb !important;
  line-height: 1.45 !important;
  text-align: left;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.kgcp-checkout-shell #order_review table.shop_table thead :is(th,td) {
  background: #f4f5f2 !important;
  color: #374950 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  text-transform: uppercase !important;
  letter-spacing: .035em !important;
}
.kgcp-checkout-shell #order_review table.shop_table :is(th,td) {
  font-size: 13px !important;
  padding: 12px 9px !important;
}
.kgcp-checkout-shell #order_review table.shop_table tbody td.product-name,
.kgcp-cart-shell .woocommerce-cart-form table.shop_table td.product-name {
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
.kgcp-checkout-shell #order_review .product-name :is(a,strong,.product-quantity),
.kgcp-cart-shell .woocommerce-cart-form .product-name :is(a,strong,.product-quantity) {
  font-size: inherit !important;
  line-height: inherit !important;
  color: #243b43 !important;
  text-decoration: none !important;
}
/* WPC Force Sells / WooCommerce - metadados como "Linked to" e acompanhamentos. */
.kgcp-checkout-shell #order_review .product-name :is(.variation,dl.variation,.wc-item-meta,ul.wc-item-meta),
.kgcp-cart-shell .product-name :is(.variation,dl.variation,.wc-item-meta,ul.wc-item-meta) {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: var(--kgcp-v15-muted) !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
.kgcp-checkout-shell #order_review .product-name :is(.variation,dl.variation,.wc-item-meta,ul.wc-item-meta) *,
.kgcp-cart-shell .product-name :is(.variation,dl.variation,.wc-item-meta,ul.wc-item-meta) * {
  font-family: inherit !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: var(--kgcp-v15-muted) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.kgcp-checkout-shell #order_review .product-name :is(.variation,dl.variation,.wc-item-meta,ul.wc-item-meta) :is(dt,strong),
.kgcp-cart-shell .product-name :is(.variation,dl.variation,.wc-item-meta,ul.wc-item-meta) :is(dt,strong) {
  font-weight: 650 !important;
}
.kgcp-checkout-shell #order_review .product-total,
.kgcp-checkout-shell #order_review .cart-subtotal td,
.kgcp-checkout-shell #order_review .order-total td,
.kgcp-checkout-shell #order_review .fee td {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}
.kgcp-checkout-shell #order_review table.shop_table :is(.woocommerce-Price-amount,.woocommerce-Price-amount bdi),
.kgcp-cart-shell .woocommerce-cart-form table.shop_table :is(.woocommerce-Price-amount,.woocommerce-Price-amount bdi) {
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #253b40 !important;
  white-space: nowrap !important;
}
.kgcp-checkout-shell #order_review .order-total,
.kgcp-checkout-shell #order_review .order-total :is(th,td) {
  background: #f6f2e9 !important;
  color: #23363d !important;
  font-weight: 750 !important;
}
.kgcp-checkout-shell #order_review .order-total :is(.woocommerce-Price-amount,.woocommerce-Price-amount bdi) {
  font-size: 18px !important;
  color: #23363d !important;
}
.kgcp-checkout-shell #order_review .order-total :is(small.includes_tax,small.tax_label),
.kgcp-checkout-shell #order_review .order-total small.includes_tax *,
.kgcp-checkout-shell #order_review :is(small.includes_tax,small.tax_label) {
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #67757a !important;
  white-space: normal !important;
}
.kgcp-checkout-shell #order_review #payment,
.kgcp-checkout-shell #order_review #payment ul.payment_methods,
.kgcp-checkout-shell #order_review #payment .payment_box,
.kgcp-checkout-shell #order_review .woocommerce-checkout-payment {
  background: #f8f9f7 !important;
  color: #25363b !important;
}
.kgcp-checkout-shell #order_review #payment :is(label,p,li,strong,small),
.kgcp-checkout-shell #order_review #payment .payment_box :is(p,span),
.kgcp-checkout-shell #order_review .woocommerce-terms-and-conditions-wrapper :is(p,label) {
  color: #25363b !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  overflow-wrap: break-word !important;
}
.kgcp-checkout-shell #order_review #payment #place_order {
  background: #263e43 !important;
  color: #fff !important;
  font-size: 15px !important;
  min-height: 48px !important;
  line-height: 1.35 !important;
}
/* Campo NIF — pergunta Sim/Não seguida do campo condicional. */
.kgcp-checkout-shell #billing_nif_choice_field {
  clear: both !important;
  float: none !important;
  width: 100% !important;
  padding: 14px 15px !important;
  margin: 12px 0 7px !important;
  background: #f8f8f5 !important;
  border: 1px solid #e3e6e2 !important;
  border-radius: 12px !important;
}
.kgcp-checkout-shell #billing_nif_choice_field > label {
  display: block !important;
  color: #243b43 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin-bottom: 9px !important;
}
.kgcp-checkout-shell #billing_nif_choice_field .woocommerce-input-wrapper {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px 20px !important;
}
.kgcp-checkout-shell #billing_nif_choice_field .woocommerce-input-wrapper > label,
.kgcp-checkout-shell #billing_nif_choice_field label.radio {
  font-size: 14px !important;
  font-weight: 550 !important;
  margin: 0 !important;
  padding: 2px 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: auto !important;
  color: #243b43 !important;
}
.kgcp-checkout-shell #billing_nif_choice_field input[type="radio"] {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  accent-color: var(--kgcp-v15-gold) !important;
}
.kgcp-checkout-shell.kgcp-nif-enhanced #billing_nif_field[hidden] {
  display: none !important;
}
.kgcp-checkout-shell #billing_nif_field { margin: 0 0 16px !important; }
.kgcp-checkout-shell #billing_nif_field input {
  max-width: 330px !important;
  font-size: 16px !important;
  letter-spacing: .025em !important;
}
@media (max-width: 767px) {
  body .kgcp-checkout-shell {
    width: calc(100% - 24px) !important;
    margin: 16px auto 44px !important;
  }
  body .kgcp-checkout-shell :is(#order_review,.woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-additional-fields) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 15px 12px !important;
  }
  body .kgcp-checkout-shell #order_review table.shop_table {
    display: block !important;
    width: 100% !important;
    table-layout: auto !important;
    margin: 0 !important;
  }
  body .kgcp-checkout-shell #order_review table.shop_table > thead { display: none !important; }
  body .kgcp-checkout-shell #order_review table.shop_table > tbody,
  body .kgcp-checkout-shell #order_review table.shop_table > tfoot { display: block !important; width: 100% !important; }
  body .kgcp-checkout-shell #order_review table.shop_table > tbody > tr.cart_item,
  body .kgcp-checkout-shell #order_review table.shop_table > tfoot > tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0 12px !important;
    width: 100% !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #e9ece8 !important;
  }
  body .kgcp-checkout-shell #order_review table.shop_table > tbody > tr.cart_item > td,
  body .kgcp-checkout-shell #order_review table.shop_table > tfoot > tr > th,
  body .kgcp-checkout-shell #order_review table.shop_table > tfoot > tr > td {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 3px 1px !important;
    border: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    background: transparent !important;
  }
  body .kgcp-checkout-shell #order_review table.shop_table > tbody > tr.cart_item > td.product-name {
    grid-column: 1 !important;
    font-size: 14px !important;
  }
  body .kgcp-checkout-shell #order_review table.shop_table > tbody > tr.cart_item > td.product-total {
    grid-column: 2 !important;
    text-align: right !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
  }
  body .kgcp-checkout-shell #order_review table.shop_table > tfoot > tr > th {
    grid-column: 1 !important;
    color: #425156 !important;
    font-weight: 700 !important;
    text-align: left !important;
  }
  body .kgcp-checkout-shell #order_review table.shop_table > tfoot > tr > td {
    grid-column: 2 !important;
    text-align: right !important;
  }
  body .kgcp-checkout-shell #order_review table.shop_table > tfoot > tr.woocommerce-shipping-totals,
  body .kgcp-checkout-shell #order_review table.shop_table > tfoot > tr.shipping {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body .kgcp-checkout-shell #order_review table.shop_table > tfoot > tr.woocommerce-shipping-totals > :is(th,td),
  body .kgcp-checkout-shell #order_review table.shop_table > tfoot > tr.shipping > :is(th,td) {
    grid-column: 1 !important;
    text-align: left !important;
  }
  body .kgcp-checkout-shell #order_review table.shop_table > tfoot > tr.order-total {
    margin-top: 8px !important;
    padding: 12px 8px !important;
    border-radius: 8px !important;
    background: #f6f2e9 !important;
  }
  body .kgcp-checkout-shell #order_review .woocommerce-Price-amount,
  body .kgcp-checkout-shell #order_review .woocommerce-Price-amount bdi { font-size: 13px !important; }
  body .kgcp-checkout-shell #order_review .order-total .woocommerce-Price-amount,
  body .kgcp-checkout-shell #order_review .order-total .woocommerce-Price-amount bdi { font-size: 17px !important; }
  body .kgcp-checkout-shell #order_review .order-total small.includes_tax {
    display: block !important;
    max-width: 190px !important;
    margin-top: 3px !important;
    text-align: right !important;
  }
  body .kgcp-checkout-shell #order_review table.shop_table_responsive td::before {
    content: none !important;
    display: none !important;
  }
}

/* V1.6 — escolha sempre acessível, sem depender das zonas no carregamento */
.kgcp-checkout-shell .kgcp-entrega-ajuda {
  margin: 14px 0 0 !important; color: #59676b !important;
  font-size: 12px !important; line-height: 1.5 !important;
}
.kgcp-checkout-shell .kgcp-entrega-preco small {
  display:block; color:#69777b !important; font-size:10px !important;
  font-weight:500; text-align:right; margin-top:2px;
}
.kgcp-checkout-shell .kgcp-entrega-opcao input:focus-visible {
  outline:2px solid #ab854d !important; outline-offset:3px;
}

\n/* ====================================================================
   THE KING OF GRILL | V1.6.1
   Ajustes solicitados: botao Atualizar carrinho alinhado a direita,
   fundos claros e contraste garantido no carrinho / resumo do checkout.
   Limita-se aos wrappers do plugin; nao altera a ementa Pagelayer.
   ==================================================================== */

/* Acoes do formulario: alinhamento constante, inclusive no mobile. */
.kgcp-cart-shell form.woocommerce-cart-form table.shop_table td.actions,
.kgcp-cart-shell .woocommerce-cart-form table.shop_table tr td.actions,
.kgcp-cart-shell .woocommerce-cart-form .actions {
  text-align: right !important;
  background-color: #ffffff !important;
  color: #253b40 !important;
}
.kgcp-cart-shell form.woocommerce-cart-form table.shop_table td.actions::after {
  content: '';
  display: block;
  clear: both;
}
.kgcp-cart-shell form.woocommerce-cart-form .actions button[name="update_cart"],
.kgcp-cart-shell form.woocommerce-cart-form .actions input[name="update_cart"],
.kgcp-cart-shell form.woocommerce-cart-form button[name="update_cart"],
.kgcp-cart-shell form.woocommerce-cart-form input[name="update_cart"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: right !important;
  width: auto !important;
  min-width: 170px !important;
  max-width: 100% !important;
  margin: 0 0 0 auto !important;
  text-align: center !important;
  background-color: #253e43 !important;
  color: #ffffff !important;
  border-color: #253e43 !important;
}
.kgcp-cart-shell form.woocommerce-cart-form :is(button,input)[name="update_cart"]:disabled {
  opacity: .55 !important;
  cursor: not-allowed !important;
}

/* Fundo claro: cabeçalhos, tabela, detalhes e montantes do carrinho. */
.kgcp-cart-shell .woocommerce-cart-form,
.kgcp-cart-shell .cart-collaterals,
.kgcp-cart-shell .cart_totals,
.kgcp-cart-shell .cart_totals .shop_table,
.kgcp-cart-shell .cart_totals .shop_table :is(thead,tbody,tfoot,tr,td,th),
.kgcp-cart-shell .woocommerce-cart-form table.shop_table,
.kgcp-cart-shell .woocommerce-cart-form table.shop_table :is(thead,tbody,tfoot,tr,td,th) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #253b40 !important;
}
.kgcp-cart-shell .woocommerce-cart-form table.shop_table thead,
.kgcp-cart-shell .woocommerce-cart-form table.shop_table thead th {
  background: #f2f4f1 !important;
  background-color: #f2f4f1 !important;
  color: #253b40 !important;
}
.kgcp-cart-shell .cart_totals h2,
.kgcp-checkout-shell #order_review_heading {
  display: block !important;
  width: 100% !important;
  padding: 10px 0 14px !important;
  margin-bottom: 12px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #243a3f !important;
  text-shadow: none !important;
  border-bottom: 1px solid #e5e8e5 !important;
}
.kgcp-cart-shell .cart_totals .shop_table .order-total,
.kgcp-cart-shell .cart_totals .shop_table .order-total :is(th,td),
.kgcp-checkout-shell #order_review .shop_table .order-total,
.kgcp-checkout-shell #order_review .shop_table .order-total :is(th,td) {
  background: #f2f3ef !important;
  background-color: #f2f3ef !important;
  color: #20363b !important;
}

/* O resumo da encomenda deve permanecer legivel mesmo com regras
   de tema para WooCommerce (fundo preto / textos pretos). */
.kgcp-checkout-shell #order_review,
.kgcp-checkout-shell #order_review .woocommerce-checkout-review-order,
.kgcp-checkout-shell #order_review .shop_table,
.kgcp-checkout-shell #order_review .shop_table :is(thead,tbody,tfoot,tr,td,th) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #253b40 !important;
  text-shadow: none !important;
}
.kgcp-checkout-shell #order_review .shop_table thead,
.kgcp-checkout-shell #order_review .shop_table thead :is(th,td) {
  background: #f2f4f1 !important;
  background-color: #f2f4f1 !important;
  color: #253b40 !important;
}
.kgcp-checkout-shell #order_review :is(.product-name,.product-total,.cart-subtotal,.fee,th,td),
.kgcp-cart-shell .cart_totals .shop_table :is(a,span,strong,small,th,td),
.kgcp-cart-shell .woocommerce-cart-form .shop_table :is(a,span,strong,small,th,td) {
  text-shadow: none !important;
}
.kgcp-checkout-shell #order_review .shop_table :is(.product-name,.product-total,th,td),
.kgcp-cart-shell .cart_totals .shop_table :is(th,td),
.kgcp-cart-shell .woocommerce-cart-form .shop_table :is(th,td) {
  color: #253b40 !important;
}
.kgcp-checkout-shell #order_review :is(.woocommerce-Price-amount,.woocommerce-Price-amount bdi),
.kgcp-cart-shell .cart_totals :is(.woocommerce-Price-amount,.woocommerce-Price-amount bdi) {
  color: #20363b !important;
}

/* Metodo de pagamento: distinguir painel e botao sem perda de contraste. */
.kgcp-checkout-shell #order_review #payment,
.kgcp-checkout-shell #order_review #payment .payment_methods,
.kgcp-checkout-shell #order_review #payment .payment_box {
  background: #f3f4f1 !important;
  background-color: #f3f4f1 !important;
  color: #253b40 !important;
}
.kgcp-checkout-shell #order_review #payment .payment_box :is(p,small,strong,span),
.kgcp-checkout-shell #order_review #payment .payment_methods :is(p,small,strong,label) {
  color: #253b40 !important;
}
.kgcp-checkout-shell #order_review #payment #place_order,
.kgcp-checkout-shell #order_review #payment #place_order :is(span,strong) {
  background-color: #253e43 !important;
  color: #ffffff !important;
}

@media (max-width: 680px) {
  .kgcp-cart-shell form.woocommerce-cart-form table.shop_table td.actions,
  .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.actions {
    display: block !important;
    width: 100% !important;
    text-align: right !important;
  }
  .kgcp-cart-shell form.woocommerce-cart-form :is(button,input)[name="update_cart"] {
    float: right !important;
    min-width: 155px !important;
    width: auto !important;
    margin-left: auto !important;
    font-size: 13px !important;
  }
  .kgcp-checkout-shell #order_review,
  .kgcp-cart-shell .cart_totals { background: #ffffff !important; }
}


/* ================================================================
   V1.6.2 - CHECKOUT DESKTOP ADAPTÁVEL, MOBILE V1.6.1 INALTERADO
   Corrige a regra antiga que obrigava a faturação e o resumo a
   aparecerem empilhados ou demasiado estreitos no computador.
   ================================================================ */
@media (min-width: 1024px) {
  /* Centrado no viewport mesmo se uma coluna Pagelayer estiver estreita. */
  body .kgcp-checkout-shell {
    width: min(1280px, calc(100vw - 56px)) !important;
    max-width: none !important;
    min-width: 0 !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 30px 0 70px !important;
    padding: 0 !important;
  }
  body .kgcp-checkout-shell form.checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr) !important;
    grid-template-rows: auto auto;
    gap: 0 clamp(20px, 2.8vw, 36px) !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  /* A escolha de levantamento/estafeta ocupa ambas as colunas. */
  body .kgcp-checkout-shell form.checkout > .kgcp-entrega-seletor {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
  }
  /* Faturação à esquerda; resumo e pagamento à direita. */
  body .kgcp-checkout-shell form.checkout > #customer_details {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
  }
  body .kgcp-checkout-shell #customer_details.col2-set {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }
  body .kgcp-checkout-shell #customer_details > .col-1,
  body .kgcp-checkout-shell #customer_details > .col-2 {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
    min-width: 0 !important;
  }
  body .kgcp-checkout-shell form.checkout > #order_review_heading {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 5px 0 16px !important;
    padding: 0 2px !important;
    width: 100% !important;
    float: none !important;
  }
  body .kgcp-checkout-shell form.checkout > #order_review {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    width: 100% !important;
    margin: 55px 0 0 !important;
    float: none !important;
    padding: clamp(16px, 1.8vw, 24px) !important;
  }
  body .kgcp-checkout-shell #order_review table.shop_table :is(th, td) {
    font-size: 13px !important;
    line-height: 1.5 !important;
    padding: 13px 9px !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
  body .kgcp-checkout-shell #order_review .product-quantity {
    font-size: 12px !important;
    font-weight: 750 !important;
  }
  body .kgcp-checkout-shell #order_review .product-name .variation {
    font-size: 12px !important;
  }
}
/* Tablet e mobile: coluna única; sem recorte nem deslocação lateral. */
@media (max-width: 1023px) {
  body .kgcp-checkout-shell {
    left: auto !important;
    transform: none !important;
    max-width: 100% !important;
  }
  body .kgcp-checkout-shell form.checkout {
    display: block !important;
    width: 100% !important;
  }
}


/* ================================================================
   THE KING OF GRILL 1.6.3 — CHECKOUT
   - País fica definido no PHP (PT) e oculto apenas neste checkout.
   - Título e tabela do resumo no mesmo nível da grelha desktop;
     a coluna de faturação já não empurra a tabela para baixo.
   ================================================================ */
.kgcp-checkout-shell #billing_country_field,
.kgcp-checkout-shell #shipping_country_field {
  display: none !important;
}
@media (min-width: 1024px) {
  body .kgcp-checkout-shell form.checkout > #order_review_heading {
    align-self: start !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 0 !important;
    line-height: 1.25 !important;
  }
  body .kgcp-checkout-shell form.checkout > #order_review {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    margin-top: 55px !important;
  }
}


/* ================================================================
   THE KING OF GRILL | V1.6.4 — CARRINHO EM TELEMÓVEL
   Fotografias reais do produto na tabela clássica WooCommerce.
   Não altera checkout, pagamentos, subtotal ou estilos desktop.
   ================================================================ */
@media (max-width: 767px) {
  /* O WooCommerce esconde as miniaturas no mobile; conservamos o HTML
     original, mas organizamos as células de cada artigo num cartão. */
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive,
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > thead {
    display: none !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr.cart_item {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) 30px !important;
    grid-template-areas:
      'photo title remove'
      'photo unit unit'
      'qty qty subtotal' !important;
    gap: 6px 11px !important;
    align-items: start !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 13px !important;
    margin: 0 0 12px !important;
    border: 1px solid #e4e8e5 !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    box-shadow: 0 3px 12px rgba(24, 43, 45, 0.035) !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr.cart_item > td {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    text-align: left !important;
    vertical-align: top !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
  /* Remover as legendas móveis duplicadas do tema (data-title). */
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr.cart_item > td::before {
    display: none !important;
    content: none !important;
    float: none !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail {
    grid-area: photo !important;
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    align-self: start !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-thumbnail a,
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-thumbnail > img {
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: #f3f3f0 !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-thumbnail img {
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    min-width: 0 !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 10px !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr.cart_item > td.product-name {
    grid-area: title !important;
    align-self: start !important;
    padding-top: 1px !important;
    color: #20383b !important;
    font-size: 13px !important;
    line-height: 1.34 !important;
    font-weight: 700 !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-name > a {
    display: inline !important;
    color: #20383b !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }
  /* Acompanhamentos, metadados e associações com tamanho controlado. */
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-name :is(dl.variation, .variation, .wc-item-meta) {
    display: block !important;
    margin: 5px 0 0 !important;
    padding: 0 !important;
    color: #637278 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-name :is(dt, dd, dd p, .variation a, .wc-item-meta li, .wc-item-meta p) {
    color: #637278 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-name dl.variation dt {
    display: inline !important;
    margin-right: 4px !important;
    font-weight: 650 !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-name dl.variation dd {
    display: inline !important;
    margin: 0 4px 0 0 !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-name dl.variation dd p {
    display: inline !important;
    margin: 0 !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr.cart_item > td.product-remove {
    grid-area: remove !important;
    justify-self: end !important;
    align-self: start !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-remove a.remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    margin: 0 !important;
    border: 1px solid #e4e8e5 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #7b8688 !important;
    font-size: 19px !important;
    line-height: 1 !important;
    text-decoration: none !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr.cart_item > td.product-price {
    grid-area: unit !important;
    align-self: start !important;
    color: #6a777a !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr.cart_item > td.product-price::after {
    content: ' / unidade';
    color: #6a777a;
    font-size: 11px;
    font-weight: 400;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity {
    grid-area: qty !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #eff0ed !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity::before {
    display: inline-block !important;
    content: 'Qtd.' !important;
    float: none !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    color: #667579 !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-quantity .quantity {
    display: inline-flex !important;
    margin: 0 !important;
    float: none !important;
    align-items: center !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-quantity input.qty {
    width: 51px !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 3px !important;
    text-align: center !important;
    font-size: 13px !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr.cart_item > td.product-subtotal {
    grid-area: subtotal !important;
    justify-self: end !important;
    align-self: center !important;
    padding-top: 8px !important;
    border-top: 1px solid #eff0ed !important;
    text-align: right !important;
    white-space: nowrap !important;
    color: #20383b !important;
    font-size: 14px !important;
    font-weight: 750 !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive td.product-subtotal :is(.woocommerce-Price-amount, bdi) {
    font-size: 14px !important;
    line-height: 1.35 !important;
    color: #20383b !important;
    font-weight: 750 !important;
  }
  /* A linha de atualização mantém o comportamento original do WooCommerce. */
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr:not(.cart_item) {
    display: block !important;
    width: 100% !important;
  }
  body .kgcp-cart-shell form.woocommerce-cart-form table.shop_table_responsive > tbody > tr:not(.cart_item) > td.actions {
    display: block !important;
    width: 100% !important;
    padding: 10px 0 0 !important;
  }
}


/* ================================================================
   THE KING OF GRILL — V1.6.5 | MINIATURAS NO RESUMO DO CHECKOUT
   Apenas o checkout clássico com [kg_checkout_premium].
   Fotos discretas: 56 x 56 (desktop), 46 x 46 (telemóvel).
   Mantém subtotal, agrupamento de linhas, faturação e carrinho.
   ================================================================ */
body .kgcp-checkout-shell #order_review .shop_table tbody tr.cart_item > td.product-name .kgcp-review-thumbnail {
  float: left !important;
  display: block !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  margin: 1px 12px 5px 0 !important;
  padding: 0 !important;
  border-radius: 9px !important;
  overflow: hidden !important;
  border: 1px solid #e7e9e4 !important;
  background: #f5f5f2 !important;
  line-height: 0 !important;
}
body .kgcp-checkout-shell #order_review .shop_table tbody tr.cart_item > td.product-name .kgcp-review-thumbnail img,
body .kgcp-checkout-shell #order_review .shop_table tbody tr.cart_item > td.product-name .kgcp-review-thumbnail-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}
/* Manter os metadados dos acompanhamentos ao lado da imagem. */
body .kgcp-checkout-shell #order_review .shop_table tbody tr.cart_item > td.product-name:has(.kgcp-review-thumbnail) :is(dl.variation, .wc-item-meta, ul.wc-item-meta) {
  margin-top: 6px !important;
  margin-left: 68px !important;
  padding-left: 0 !important;
  overflow: hidden !important;
}
/* As alturas das linhas incluem sempre a fotografia. */
body .kgcp-checkout-shell #order_review .shop_table tbody tr.cart_item > td.product-name::after {
  display: block !important;
  content: "" !important;
  clear: both !important;
}
@media (max-width: 767px) {
  body .kgcp-checkout-shell #order_review .shop_table tbody tr.cart_item > td.product-name .kgcp-review-thumbnail {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    margin: 1px 9px 5px 0 !important;
    border-radius: 8px !important;
  }
  body .kgcp-checkout-shell #order_review .shop_table tbody tr.cart_item > td.product-name {
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
  body .kgcp-checkout-shell #order_review .shop_table tbody tr.cart_item > td.product-name:has(.kgcp-review-thumbnail) :is(dl.variation, .wc-item-meta, ul.wc-item-meta) {
    margin-left: 55px !important;
  }
  body .kgcp-checkout-shell #order_review .shop_table tbody tr.cart_item > td.product-total {
    white-space: nowrap !important;
    padding-left: 3px !important;
  }
}
@media (max-width: 350px) {
  body .kgcp-checkout-shell #order_review .shop_table tbody tr.cart_item > td.product-name .kgcp-review-thumbnail {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    margin-right: 8px !important;
  }
  body .kgcp-checkout-shell #order_review .shop_table tbody tr.cart_item > td.product-name:has(.kgcp-review-thumbnail) :is(dl.variation, .wc-item-meta, ul.wc-item-meta) {
    margin-left: 48px !important;
  }
}
