/* Presentation only: cart and checkout retain their existing forms and events. */
body.storefront-modern .sf-commerce {
  color: var(--cor_primaria);
  background: #f5f7f8;
}

body.storefront-modern .sf-commerce .sf-panel {
  padding: 26px;
  background: #fff;
  border: 1px solid #e1e7e9;
  border-radius: 16px;
  min-width: 0;
}

body.storefront-modern .sf-commerce h2 {
  color: var(--cor_primaria);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.4px;
  margin: 0 0 22px;
  text-transform: none;
}

body.storefront-modern .sf-commerce-intro {
  margin-bottom: 22px;
  color: #62717a;
  font-size: 14px;
}

body.storefront-modern .sf-commerce-intro p { margin: 0; }
body.storefront-modern .sf-commerce-empty { padding: 38px !important; }
body.storefront-modern .sf-commerce-empty h2 { margin-bottom: 10px; }
body.storefront-modern .sf-commerce-empty p { color: #62717a; }

body.storefront-modern .sf-commerce .conff,
body.storefront-modern .sf-commerce .thm-btn,
body.storefront-modern .sf-commerce-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 17px;
  margin-left: 0 !important;
  border: 1px solid var(--cor_secundaria) !important;
  border-radius: 9px;
  background: var(--cor_secundaria) !important;
  color: var(--cor_primaria) !important;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-transform: none;
  white-space: normal;
  box-shadow: none;
  text-decoration: none;
}

body.storefront-modern .sf-commerce .sf-commerce-secondary,
body.storefront-modern .sf-commerce #btn-remover-cupom,
body.storefront-modern .sf-commerce #btn-verificar-pix {
  background: #fff !important;
  border-color: #d8e1e5 !important;
  color: var(--cor_primaria) !important;
}

body.storefront-modern .sf-commerce .conff:hover,
body.storefront-modern .sf-commerce .thm-btn:hover {
  filter: brightness(.96);
  text-decoration: none;
}

body.storefront-modern .sf-commerce :is(button, a, input, textarea):focus-visible {
  outline: 2px solid var(--cor_primaria);
  outline-offset: 3px;
}

body.storefront-modern .sf-commerce button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

body.storefront-modern .sf-cart-layout,
body.storefront-modern .sf-checkout-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

body.storefront-modern .sf-cart-layout > div,
body.storefront-modern .sf-cart-layout > aside,
body.storefront-modern .sf-checkout-layout > div { min-width: 0; }

body.storefront-modern .sf-cart-layout::before,
body.storefront-modern .sf-cart-layout::after,
body.storefront-modern .sf-checkout-layout::before,
body.storefront-modern .sf-checkout-layout::after { display: none; }

body.storefront-modern .sf-commerce-summary {
  position: sticky;
  top: 92px;
}

body.storefront-modern .sf-commerce-summary-note {
  color: #62717a;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 25px;
}

body.storefront-modern .sf-commerce-summary > .sf-commerce-primary {
  width: 100%;
  margin-top: 24px;
}

body.storefront-modern .sf-commerce-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e1e7e9;
  padding-top: 20px;
  margin-top: 20px;
  color: var(--cor_primaria);
  font-size: 14px;
}

body.storefront-modern .sf-commerce-total strong {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.6px;
  text-align: right;
  overflow-wrap: anywhere;
}

body.storefront-modern .sf-cart .sf-cart-table-wrap {
  padding: 0 20px;
  overflow: hidden;
}

body.storefront-modern .sf-cart-table { width: 100%; border-collapse: collapse; }
body.storefront-modern .sf-cart-table th {
  padding: 18px 8px;
  border-bottom: 1px solid #e1e7e9;
  color: #64717a;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}

body.storefront-modern .sf-cart-table th:first-child { text-align: left; }
body.storefront-modern .sf-cart-table th:nth-child(3) { text-align: center; }
body.storefront-modern .sf-cart-table td {
  padding: 22px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #edf0f2;
  font-size: 13px;
}

body.storefront-modern .sf-cart-table tr:last-child td { border-bottom: 0; }
body.storefront-modern .sf-cart-table .preco,
body.storefront-modern .sf-cart-table .linha-total { text-align: right; white-space: nowrap; }
body.storefront-modern .sf-cart-table .linha-total { font-weight: 600; }
body.storefront-modern .sf-cart-product { display: flex; align-items: center; gap: 14px; }
body.storefront-modern .sf-cart-product > div { min-width: 0; overflow-wrap: anywhere; }
body.storefront-modern .sf-cart-product img {
  flex: 0 0 70px;
  width: 70px;
  height: 82px;
  padding: 5px;
  border-radius: 8px;
  object-fit: contain;
  background: #f5f7f8;
}

body.storefront-modern .sf-cart-product strong { font-size: 14px; line-height: 1.5; font-weight: 600; }
body.storefront-modern .sf-cart-product a { display: inline-block; margin-top: 6px; font-size: 12px; color: #516770; text-decoration: underline; }
body.storefront-modern .sf-cart-accessories { color: #62717a; font-size: 12px; margin-top: 4px; }
body.storefront-modern .sf-cart-quantity-cell { text-align: center; }
body.storefront-modern .sf-cart .cart-qtd {
  width: 67px;
  min-height: 42px;
  padding: 8px 6px;
  border: 1px solid #d8e1e5;
  border-radius: 8px;
  background: #fff;
  color: var(--cor_primaria);
  text-align: center;
}

body.storefront-modern .sf-cart-remove-cell { text-align: right; }
body.storefront-modern .sf-cart .btn-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #f5f7f8;
  color: #667780;
}

body.storefront-modern .sf-cart .btn-remove:hover { background: #fff0ee; color: #a6382c; }
body.storefront-modern .sf-cart-remove-label { display: none; }
body.storefront-modern .sf-cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 18px; }
body.storefront-modern .sf-cart-actions #cart-msg { flex: 1 1 220px; font-size: 13px; overflow-wrap: anywhere; }

body.storefront-modern .sf-checkout-section + .sf-checkout-section { margin-top: 20px; }
body.storefront-modern .sf-checkout-section h2 { display: flex; align-items: center; gap: 11px; }
body.storefront-modern .sf-checkout-section h2 .fa { font-size: 19px; }
body.storefront-modern .sf-checkout label { display: inline-block; margin-bottom: 7px; font-size: 12px; color: #53646e; font-weight: 500; }
body.storefront-modern .sf-checkout .form-control,
body.storefront-modern .sf-checkout #cupom-codigo,
body.storefront-modern .sf-payment-result textarea,
body.storefront-modern .sf-payment-result input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  border: 1px solid #dce4e8 !important;
  border-radius: 8px;
  background: #f8fafb;
  color: var(--cor_primaria);
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none;
}

body.storefront-modern .sf-checkout .form-control:focus,
body.storefront-modern .sf-checkout #cupom-codigo:focus { border-color: var(--cor_primaria) !important; background: #fff; }
body.storefront-modern .sf-checkout .form-control[readonly] { color: #64717a; background: #f1f4f5; }
body.storefront-modern .sf-checkout input[type="checkbox"],
body.storefront-modern .sf-checkout input[type="radio"] { accent-color: var(--cor_primaria); width: 16px; height: 16px; vertical-align: middle; flex-shrink: 0; }
body.storefront-modern .sf-shipping-button-cell { padding-top: 30px; }
body.storefront-modern .sf-profile-choice { padding-top: 14px; border-top: 1px solid #edf0f2; color: #62717a; }
body.storefront-modern .sf-profile-choice label { line-height: 1.65; }
body.storefront-modern .sf-profile-choice input { margin-right: 5px; }
body.storefront-modern .sf-profile-choice a { color: var(--cor_primaria); text-decoration: underline; }
body.storefront-modern .sf-payment-choices { display: flex; flex-wrap: wrap; gap: 12px; }
body.storefront-modern .sf-payment-choices > .sf-commerce-alert { flex-basis: 100%; }
body.storefront-modern .sf-checkout .sf-checkout-choice {
  display: flex;
  flex: 1 1 180px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin: 0;
  padding: 14px;
  border: 1px solid #dce4e8;
  border-radius: 10px;
  color: var(--cor_primaria);
  font-size: 14px;
}

body.storefront-modern .sf-checkout-choice .fa { font-size: 19px; }
body.storefront-modern .sf-checkout-choice input { margin: 0; }
body.storefront-modern .sf-checkout-choice:has(input:checked) { border-color: var(--cor_primaria); background: #f5f7f8; box-shadow: inset 0 0 0 1px var(--cor_primaria); }
body.storefront-modern .sf-checkout-choice:has(input:focus-visible) { outline: 2px solid var(--cor_primaria); outline-offset: 3px; }
body.storefront-modern .sf-checkout-choice:has(input:disabled) { cursor: not-allowed !important; }
body.storefront-modern .sf-checkout #btn-finalizar { margin-top: 13px; }

body.storefront-modern .sf-checkout-item { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
body.storefront-modern .sf-checkout-item img { flex: 0 0 60px; width: 60px; height: 72px; padding: 4px; border-radius: 7px; background: #f5f7f8; object-fit: contain; }
body.storefront-modern .sf-checkout-item-info { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; color: #62717a; }
body.storefront-modern .sf-checkout-item-info strong { font-size: 13px; font-weight: 600; color: var(--cor_primaria); }
body.storefront-modern .sf-checkout-item-total { font-size: 13px; font-weight: 500; white-space: nowrap; }
body.storefront-modern .sf-commerce-summary hr { margin: 22px 0; border-top-color: #e1e7e9; }
body.storefront-modern .sf-coupon-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
body.storefront-modern .sf-coupon-controls #btn-aplicar-cupom { min-height: 45px; padding: 9px 13px; font-size: 12px; }
body.storefront-modern .sf-coupon-controls #btn-remover-cupom { grid-column: 1 / -1; justify-self: start; min-height: 36px; padding: 7px 12px; font-size: 12px; }
body.storefront-modern .sf-summary-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; color: #64717a; }
body.storefront-modern .sf-summary-line span { min-width: 0; overflow-wrap: anywhere; }
body.storefront-modern .sf-summary-line > strong { color: var(--cor_primaria); font-weight: 500; white-space: nowrap; }
body.storefront-modern .sf-summary-edit { margin-top: 22px; text-align: center; font-size: 13px; }
body.storefront-modern .sf-summary-edit a { color: var(--cor_primaria); text-decoration: underline; }
body.storefront-modern .sf-commerce-alert { padding: 16px; border: 1px solid #dce4e8; border-radius: 10px; background: #f5f7f8; margin-bottom: 16px; font-size: 13px; overflow-wrap: anywhere; }
body.storefront-modern .sf-payment-result { max-width: 780px; margin: 0 auto; }
body.storefront-modern .sf-payment-result h3 { margin-bottom: 22px; font-size: 23px; color: var(--cor_primaria); }
body.storefront-modern .sf-payment-result p { margin-bottom: 13px; overflow-wrap: anywhere; }
body.storefront-modern .sf-payment-result .sf-payment-qr { display: block; max-width: 100%; height: auto; border: 1px solid #e1e7e9; border-radius: 10px; padding: 12px; background: #fff; }
body.storefront-modern .sf-payment-result textarea { display: block; resize: vertical; }
body.storefront-modern .sf-payment-result .thm-btn { max-width: 100%; }
body.storefront-modern .sf-commerce :is(#checkout-msg, #pix-copy-msg, #cupom-msg, #frete-res) { font-size: 13px; overflow-wrap: anywhere; }

@media (min-width: 992px) and (max-width: 1199px) {
  body.storefront-modern .sf-cart-product { gap: 9px; }
  body.storefront-modern .sf-cart-product img { flex-basis: 50px; width: 50px; height: 65px; }
  body.storefront-modern .sf-cart .sf-cart-table-wrap { padding: 0 12px; }
  body.storefront-modern .sf-cart-table td { padding: 17px 5px; font-size: 12px; }
  body.storefront-modern .sf-cart-product strong { font-size: 13px; }
  body.storefront-modern .sf-commerce-summary { padding: 20px; }
  body.storefront-modern .sf-checkout-item { flex-wrap: wrap; }
  body.storefront-modern .sf-checkout-item-total { width: 100%; padding-left: 72px; }
}

@media (max-width: 991px) {
  body.storefront-modern .sf-cart-layout > div,
  body.storefront-modern .sf-cart-layout > aside,
  body.storefront-modern .sf-checkout-layout > div { width: 100%; }
  body.storefront-modern .sf-commerce-summary-column { margin-top: 22px; }
  body.storefront-modern .sf-commerce-summary { position: static; }
  body.storefront-modern .sf-shipping-button-cell { padding-top: 0; }
}

@media (max-width: 640px) {
  body.storefront-modern .sf-commerce .sf-panel { padding: 20px; }
  body.storefront-modern .sf-commerce-empty { padding: 26px !important; }
  body.storefront-modern .sf-commerce h2 { font-size: 20px; }
  body.storefront-modern .sf-cart .sf-cart-table-wrap { padding: 0 17px; }
  body.storefront-modern .sf-cart-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body.storefront-modern .sf-cart-table tbody { display: block; }
  body.storefront-modern .sf-cart-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; border-bottom: 1px solid #e1e7e9; padding: 20px 0; }
  body.storefront-modern .sf-cart-table tr:last-child { border-bottom: 0; }
  body.storefront-modern .sf-cart-table td { display: block; min-width: 0; padding: 0; border: 0; text-align: left; }
  body.storefront-modern .sf-cart-table .sf-cart-product-cell { grid-column: 1 / -1; }
  body.storefront-modern .sf-cart-table .preco,
  body.storefront-modern .sf-cart-table .linha-total { text-align: left; }
  body.storefront-modern .sf-cart-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #64717a; font-size: 11px; font-weight: 400; }
  body.storefront-modern .sf-cart-table .sf-cart-quantity-cell { grid-column: 2; grid-row: 2 / 4; text-align: right; }
  body.storefront-modern .sf-cart-product img { flex-basis: 76px; width: 76px; height: 86px; }
  body.storefront-modern .sf-cart-table .sf-cart-remove-cell { grid-column: 1 / -1; text-align: right; }
  body.storefront-modern .sf-cart .btn-remove { padding: 6px 12px; }
  body.storefront-modern .sf-cart-remove-label { display: inline; font-size: 12px; }
  body.storefront-modern .sf-cart .cart-qtd,
  body.storefront-modern .sf-checkout .form-control,
  body.storefront-modern .sf-checkout #cupom-codigo { font-size: 16px; }
  body.storefront-modern .sf-cart-actions { gap: 10px; }
  body.storefront-modern .sf-cart-actions #cart-msg { flex-basis: 100%; }
  body.storefront-modern .sf-checkout-item { flex-wrap: wrap; }
  body.storefront-modern .sf-checkout-item-info { flex-basis: calc(100% - 72px); }
  body.storefront-modern .sf-checkout-item-total { width: 100%; padding-left: 72px; margin-top: -6px; }
  body.storefront-modern .sf-commerce-total strong { font-size: 23px; }
  body.storefront-modern .sf-payment-result .thm-btn { width: 100%; }
}
