:root {
  --ydc-primary: #0867f2;
  --ydc-primary-dark: #0756c9;
  --ydc-ink: #0b1735;
  --ydc-muted: #667085;
  --ydc-border: #dfe6ef;
  --ydc-soft: #f6f9fd;
  --ydc-success: #14804a;
  --ydc-shadow: 0 14px 40px rgba(15, 31, 60, .08);
}

body.yasaf-digital-checkout {
  background: #f8fafc;
}

body.yasaf-digital-checkout .woocommerce,
body.yasaf-digital-order-received .woocommerce {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

body.yasaf-digital-checkout .woocommerce > .woocommerce-notices-wrapper,
body.yasaf-digital-checkout .woocommerce-form-coupon-toggle,
body.yasaf-digital-checkout .woocommerce-form-login-toggle {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

body.yasaf-digital-checkout .woocommerce,
body.yasaf-digital-checkout .woocommerce > .woocommerce-notices-wrapper,
body.yasaf-digital-checkout .woocommerce-form-coupon-toggle,
body.yasaf-digital-checkout .woocommerce-form-login-toggle {
  box-sizing: border-box;
  padding-left: 18px;
  padding-right: 18px;
}

.ydc-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #0b1735 0%, #102753 58%, #0b64df 160%);
  color: #fff;
  border-radius: 18px;
  box-shadow: var(--ydc-shadow);
}

.ydc-hero-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
}

.ydc-eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .74;
}

.ydc-hero h2,
.ydc-thankyou-card h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  color: inherit;
}

.ydc-hero p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.ydc-security-pill {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 12px;
  font-weight: 700;
}

body.yasaf-digital-checkout form.checkout.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  column-gap: 24px;
  row-gap: 20px;
  align-items: start;
}

body.yasaf-digital-checkout form.checkout #customer_details {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--ydc-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ydc-shadow);
}

body.yasaf-digital-checkout form.checkout #customer_details .col-1 {
  float: none;
  width: 100%;
  padding: 0;
}

body.yasaf-digital-checkout form.checkout #customer_details .col-2,
body.yasaf-digital-checkout .woocommerce-billing-fields > h3,
body.yasaf-digital-checkout #order_review_heading,
body.yasaf-digital-checkout .woocommerce-additional-fields,
body.yasaf-digital-checkout .woocommerce-shipping-fields {
  display: none !important;
}

body.yasaf-digital-checkout form.checkout #order_review {
  display: contents;
}

body.yasaf-digital-checkout form.checkout #order_review > table.shop_table {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 24px;
  width: 100%;
  margin: 0;
  border: 1px solid var(--ydc-border);
  border-radius: 18px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--ydc-shadow);
}

body.yasaf-digital-checkout form.checkout #order_review > #payment {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ydc-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ydc-shadow);
  overflow: visible;
}

.ydc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #edf1f6;
}

.ydc-section-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ydc-section-head h2 {
  margin: 0;
  color: var(--ydc-ink);
  font-size: 20px;
  line-height: 1.2;
}

.ydc-section-head p {
  margin: 0;
  color: var(--ydc-muted);
  font-size: 12px;
  font-weight: 600;
}

.ydc-step-badge {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf2ff;
  color: var(--ydc-primary);
  font-weight: 900;
  font-size: 13px;
}

body.yasaf-digital-checkout .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

body.yasaf-digital-checkout .woocommerce-billing-fields__field-wrapper > .form-row {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

body.yasaf-digital-checkout .ydc-field-name,
body.yasaf-digital-checkout .ydc-field-email {
  grid-column: span 2;
}

body.yasaf-digital-checkout .ydc-hidden-field {
  display: none !important;
}

body.yasaf-digital-checkout .form-row label {
  display: block;
  margin: 0 0 7px;
  color: var(--ydc-ink);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 750;
}

body.yasaf-digital-checkout .form-row label .required {
  color: #e5484d;
  text-decoration: none;
}

body.yasaf-digital-checkout .form-row input.input-text,
body.yasaf-digital-checkout .form-row textarea,
body.yasaf-digital-checkout .form-row select,
body.yasaf-digital-checkout .select2-container .select2-selection--single {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d8e1ec;
  border-radius: 12px;
  background: #fff;
  color: var(--ydc-ink);
  font-size: 15px;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.yasaf-digital-checkout .form-row input.input-text:focus,
body.yasaf-digital-checkout .form-row textarea:focus,
body.yasaf-digital-checkout .form-row select:focus {
  outline: 0;
  border-color: var(--ydc-primary);
  box-shadow: 0 0 0 4px rgba(8,103,242,.10);
}

body.yasaf-digital-checkout .woocommerce-invalid input.input-text {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229,72,77,.08);
}

body.yasaf-digital-checkout #payment::before {
  content: "2  Pagamento";
  display: block;
  padding: 22px 24px 17px;
  color: var(--ydc-ink);
  font-size: 19px;
  font-weight: 850;
  border-bottom: 1px solid #edf1f6;
}

body.yasaf-digital-checkout #payment ul.payment_methods {
  margin: 0;
  padding: 18px 20px 4px;
  border: 0;
  background: transparent;
}

body.yasaf-digital-checkout #payment ul.payment_methods > li.wc_payment_method {
  position: relative;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid #dfe6ef;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 7px rgba(15, 31, 60, .025);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

body.yasaf-digital-checkout #payment ul.payment_methods > li.wc_payment_method:hover {
  border-color: #b9cce5;
  box-shadow: 0 7px 18px rgba(15, 31, 60, .07);
  transform: translateY(-1px);
}

body.yasaf-digital-checkout #payment ul.payment_methods > li.wc_payment_method.is-active {
  border-color: var(--ydc-primary);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 0 0 3px rgba(8,103,242,.08), 0 10px 24px rgba(8,103,242,.08);
}

body.yasaf-digital-checkout #payment ul.payment_methods > li.wc_payment_method.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ydc-primary);
}

body.yasaf-digital-checkout #payment ul.payment_methods > li.wc_payment_method > input[type="radio"] {
  float: none;
  display: inline-block;
  vertical-align: middle;
  width: 17px;
  height: 17px;
  margin: 0 0 0 15px;
  accent-color: var(--ydc-primary);
  cursor: pointer;
}

body.yasaf-digital-checkout #payment ul.payment_methods > li.wc_payment_method > label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  vertical-align: middle;
  width: calc(100% - 46px);
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 14px 15px 14px 8px;
  box-sizing: border-box;
  color: var(--ydc-ink);
  line-height: 1.3;
  font-weight: 750;
  cursor: pointer;
}

body.yasaf-digital-checkout #payment ul.payment_methods > li.wc_payment_method > label img {
  display: inline-block;
  width: auto;
  max-width: 112px;
  max-height: 26px;
  margin: 0 !important;
  padding: 3px 6px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  vertical-align: middle;
}

body.yasaf-digital-checkout #payment div.payment_box {
  width: auto !important;
  max-width: calc(100% - 28px) !important;
  margin: 0 14px 14px !important;
  padding: 16px;
  border: 1px solid #e8eef6;
  border-radius: 13px;
  background: linear-gradient(180deg, #f7faff 0%, #f4f8fc 100%);
  color: #344054;
  overflow-x: hidden;
  box-sizing: border-box;
}

body.yasaf-digital-checkout #payment div.payment_box::before {
  border-bottom-color: var(--ydc-soft);
}
body.yasaf-digital-checkout #payment div.payment_box *,
body.yasaf-digital-checkout #payment .wc_payment_method *,
body.yasaf-digital-checkout #payment .wc_payment_method iframe,
body.yasaf-digital-checkout #payment .wc_payment_method img,
body.yasaf-digital-checkout #payment .wc_payment_method input,
body.yasaf-digital-checkout #payment .wc_payment_method select,
body.yasaf-digital-checkout #payment .wc_payment_method textarea,
body.yasaf-digital-checkout #payment .wc_payment_method .form-row {
  max-width: 100%;
  box-sizing: border-box;
}

body.yasaf-digital-checkout #payment .wc_payment_method .form-row input,
body.yasaf-digital-checkout #payment .wc_payment_method .form-row select,
body.yasaf-digital-checkout #payment .wc_payment_method .form-row textarea {
  min-height: 48px;
  border: 1px solid #d8e1ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

body.yasaf-digital-checkout #payment .wc_payment_method .form-row input:focus,
body.yasaf-digital-checkout #payment .wc_payment_method .form-row select:focus,
body.yasaf-digital-checkout #payment .wc_payment_method .form-row textarea:focus {
  outline: 0;
  border-color: var(--ydc-primary);
  box-shadow: 0 0 0 3px rgba(8,103,242,.09);
}


body.yasaf-digital-checkout #payment .place-order {
  margin: 0;
  padding: 18px 20px 20px;
  border-top: 1px solid #edf1f6;
  background: #fff;
  border-radius: 0 0 18px 18px;
}

body.yasaf-digital-checkout #payment #place_order,
body.yasaf-digital-checkout #payment .button.alt {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--ydc-primary);
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 10px 22px rgba(8,103,242,.22);
  letter-spacing: .01em;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.yasaf-digital-checkout #payment #place_order:hover,
body.yasaf-digital-checkout #payment .button.alt:hover {
  background: var(--ydc-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(8,103,242,.28);
}

body.yasaf-digital-checkout #payment #place_order.ydc-processing {
  opacity: .72;
  pointer-events: none;
}

body.yasaf-digital-checkout .woocommerce-privacy-policy-text,
body.yasaf-digital-checkout .woocommerce-terms-and-conditions-wrapper {
  color: var(--ydc-muted);
  font-size: 12px;
  line-height: 1.55;
}

body.yasaf-digital-checkout #order_review > table.shop_table thead {
  display: none;
}

body.yasaf-digital-checkout #order_review > table.shop_table th,
body.yasaf-digital-checkout #order_review > table.shop_table td {
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  vertical-align: middle;
  color: #344054;
  font-size: 13px;
}

body.yasaf-digital-checkout #order_review > table.shop_table .ydc-summary-title-row th {
  padding: 20px 18px 16px;
  background: #fff;
  color: var(--ydc-ink);
  border-bottom: 1px solid #edf1f6;
}

.ydc-summary-title-row th span,
.ydc-summary-title-row th small {
  display: block;
}

.ydc-summary-title-row th span {
  font-size: 17px;
  font-weight: 850;
}

.ydc-summary-title-row th small {
  margin-top: 3px;
  color: var(--ydc-muted);
  font-size: 11px;
  font-weight: 600;
}

.ydc-product-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ydc-product-thumb {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #edf1f6;
}

.ydc-product-copy {
  min-width: 0;
  color: var(--ydc-ink);
  font-weight: 700;
  line-height: 1.35;
}

body.yasaf-digital-checkout #order_review > table.shop_table tfoot tr.order-total th,
body.yasaf-digital-checkout #order_review > table.shop_table tfoot tr.order-total td {
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 0;
  color: var(--ydc-ink);
  font-size: 16px;
  font-weight: 900;
}

body.yasaf-digital-checkout #order_review > table.shop_table td:last-child,
body.yasaf-digital-checkout #order_review > table.shop_table th:last-child {
  text-align: right;
}

body.yasaf-digital-checkout .woocommerce-error,
body.yasaf-digital-checkout .woocommerce-message,
body.yasaf-digital-checkout .woocommerce-info {
  margin: 0 0 18px;
  border-radius: 12px;
  border: 1px solid var(--ydc-border);
  background: #fff;
  box-shadow: none;
}

.ydc-trust-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 0;
}

.ydc-mercadopago-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px auto 0;
  padding: 0 18px;
  box-sizing: border-box;
}

.ydc-mercadopago-trust img {
  display: block;
  width: auto;
  width: 260px !important;
  max-width: calc(100vw - 48px) !important;
  height: auto;
  object-fit: contain;
}

.ydc-license-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 0;
  padding: 16px 18px;
  border: 1px solid #d7ecd9;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fdf8 0%, #f1fbf3 100%);
}

.ydc-license-note__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  background: #e7f8eb;
  color: #116a33;
  font-size: 12px;
  font-weight: 800;
}

.ydc-online-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

.ydc-license-note__copy strong {
  display: block;
  color: var(--ydc-ink);
  font-size: 14px;
}

.ydc-license-note__copy p {
  margin: 4px 0 0;
  color: var(--ydc-muted);
  font-size: 12px;
  line-height: 1.5;
}

body.yasaf-digital-order-received .ydc-license-note--order {
  max-width: 100%;
  margin: -6px 0 20px;
  box-shadow: 0 8px 24px rgba(17,106,51,.06);
}

.ydc-trust-footer > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--ydc-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15,31,60,.035);
}

.ydc-trust-footer > div > span {
  grid-row: 1 / span 2;
  font-size: 21px;
}

.ydc-trust-footer strong,
.ydc-trust-footer small {
  display: block;
}

.ydc-trust-footer strong {
  color: var(--ydc-ink);
  font-size: 12px;
}

.ydc-trust-footer small {
  margin-top: 2px;
  color: var(--ydc-muted);
  font-size: 10px;
  line-height: 1.35;
}

body.yasaf-digital-order-received .ydc-thankyou-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid #cce8d7;
  border-radius: 18px;
  background: #f3fbf6;
}

.ydc-thankyou-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ydc-success);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

body.yasaf-digital-order-received .ydc-thankyou-card h2 {
  color: #103d27;
}

body.yasaf-digital-order-received .ydc-thankyou-card p {
  margin: 7px 0 0;
  color: #38614a;
}

@media (max-width: 900px) {
  .ydc-hero {
    grid-template-columns: auto 1fr;
  }

  .ydc-security-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body.yasaf-digital-checkout form.checkout.woocommerce-checkout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  body.yasaf-digital-checkout form.checkout #customer_details,
  body.yasaf-digital-checkout form.checkout #order_review > table.shop_table,
  body.yasaf-digital-checkout form.checkout #order_review > #payment {
    width: 100%;
    position: static;
  }

  body.yasaf-digital-checkout form.checkout #customer_details { order: 1; }
  body.yasaf-digital-checkout form.checkout #order_review > table.shop_table { order: 2; }
  body.yasaf-digital-checkout form.checkout #order_review > #payment { order: 3; }

  .ydc-trust-footer {
    grid-template-columns: 1fr;
  }

  .ydc-mercadopago-trust {
    margin-top: 18px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .ydc-mercadopago-trust img {
    width: 260px !important;
    max-width: calc(100vw - 32px) !important;
  }
}

@media (max-width: 600px) {
  body.yasaf-digital-checkout .woocommerce {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  body.yasaf-digital-checkout .woocommerce > .woocommerce-notices-wrapper,
  body.yasaf-digital-checkout .woocommerce-form-coupon-toggle,
  body.yasaf-digital-checkout .woocommerce-form-login-toggle {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ydc-hero {
    margin-bottom: 14px;
    padding: 17px;
    border-radius: 15px;
  }

  .ydc-hero-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .ydc-hero h2 {
    font-size: 20px;
  }

  .ydc-hero p {
    font-size: 12px;
  }

  body.yasaf-digital-checkout form.checkout #customer_details {
    padding: 18px 16px;
    border-radius: 15px;
  }

  .ydc-section-head {
    align-items: flex-start;
  }

  .ydc-section-head p {
    display: none;
  }

  body.yasaf-digital-checkout .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.yasaf-digital-checkout .ydc-field-name,
  body.yasaf-digital-checkout .ydc-field-email {
    grid-column: span 1;
  }

  body.yasaf-digital-checkout #payment::before {
    padding: 18px 16px 14px;
    font-size: 17px;
  }

  body.yasaf-digital-checkout #payment ul.payment_methods {
    padding: 14px 14px 2px;
  }
  body.yasaf-digital-checkout #payment ul.payment_methods > li.wc_payment_method > label {
    width: calc(100% - 40px);
    padding-right: 12px;
  }

  body.yasaf-digital-checkout #payment div.payment_box {
    max-width: calc(100% - 20px) !important;
    margin: 0 10px 10px !important;
    padding: 12px;
  }


  body.yasaf-digital-checkout #payment .place-order {
    padding: 16px 14px;
  }

  body.yasaf-digital-checkout #order_review > table.shop_table th,
  body.yasaf-digital-checkout #order_review > table.shop_table td {
    padding: 12px 14px;
  }

  .ydc-product-thumb {
    width: 48px !important;
    height: 48px !important;
    flex-basis: 48px;
  }
}

/* Remove o cabeçalho/título duplicado da página e encosta o checkout no topo. */
body.yasaf-digital-checkout .entry-header,
body.yasaf-digital-checkout h1.entry-title,
body.yasaf-digital-checkout .page-header .page-title,
body.yasaf-digital-checkout .yasaf-page-header,
body.yasaf-digital-checkout .yasaf-content > h2:first-child {
  display: none !important;
}

body.yasaf-digital-checkout .entry-content,
body.yasaf-digital-checkout .site-main,
body.yasaf-digital-checkout main,
body.yasaf-digital-checkout .yasaf-content,
body.yasaf-digital-checkout .yasaf-container,
body.yasaf-digital-checkout .yasaf-page-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.yasaf-digital-checkout .yasaf-content,
body.yasaf-digital-checkout .yasaf-container,
body.yasaf-digital-checkout .yasaf-page-content {
  padding-bottom: 0 !important;
}


/* ==========================================================
   Checkout shell próprio da Yasaf - sem header/footer do tema
   ========================================================== */
body.yasaf-digital-checkout,
body.yasaf-digital-order-received {
  min-height: 100vh;
  background: #f8fafc;
}

/* Esconde qualquer header/footer original do tema no fluxo do checkout. */
body.yasaf-digital-checkout header:not(.ydc-shell-header),
body.yasaf-digital-order-received header:not(.ydc-shell-header),
body.yasaf-digital-checkout footer:not(.ydc-shell-footer),
body.yasaf-digital-order-received footer:not(.ydc-shell-footer),
body.yasaf-digital-checkout #masthead,
body.yasaf-digital-order-received #masthead,
body.yasaf-digital-checkout #colophon,
body.yasaf-digital-order-received #colophon,
body.yasaf-digital-checkout .site-header,
body.yasaf-digital-order-received .site-header,
body.yasaf-digital-checkout .site-footer,
body.yasaf-digital-order-received .site-footer,
body.yasaf-digital-checkout .yasaf-header,
body.yasaf-digital-order-received .yasaf-header,
body.yasaf-digital-checkout .yasaf-footer,
body.yasaf-digital-order-received .yasaf-footer {
  display: none !important;
}

.ydc-shell-header {
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #e7edf5;
  box-shadow: 0 2px 12px rgba(15, 31, 60, .04);
}

.ydc-shell-header__inner {
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.ydc-shell-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ydc-shell-logo {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 50px;
  object-fit: contain;
}

.ydc-shell-footer {
  display: block !important;
  width: 100%;
  min-height: 84px;
  margin: 34px 0 0;
  padding: 20px 18px;
  box-sizing: border-box;
  background: #fff;
  border-top: 1px solid #e7edf5;
}

.ydc-shell-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ydc-shell-footer__brand strong,
.ydc-shell-footer__brand small {
  display: block;
}

.ydc-shell-footer__brand strong {
  color: var(--ydc-ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}

.ydc-shell-footer__brand small {
  margin-top: 4px;
  color: var(--ydc-muted);
  font-size: 11px;
}

.ydc-shell-footer__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ydc-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #cfead5;
  border-radius: 999px;
  background: linear-gradient(180deg, #effcf2 0%, #e6f8ea 100%);
  color: #116a33;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 4px 12px rgba(17,106,51,.06);
}

.ydc-shell-footer a {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ydc-shell-footer a:hover {
  color: var(--ydc-primary);
  text-decoration: underline;
}

/* O hero fica mais compacto agora que o texto explicativo foi removido. */
.ydc-hero {
  margin-top: 18px;
}

.ydc-hero-copy {
  align-self: center;
}

.ydc-section-head {
  justify-content: flex-start;
}

/* ==========================================================
   Página de pedido / Pix gerado
   ========================================================== */
body.yasaf-digital-order-received .woocommerce {
  box-sizing: border-box;
  padding-left: 18px;
  padding-right: 18px;
}

body.yasaf-digital-order-received .woocommerce-order {
  max-width: 860px;
  margin: 24px auto 0;
}

body.yasaf-digital-order-received .woocommerce-customer-details,
body.yasaf-digital-order-received .woocommerce-columns--addresses,
body.yasaf-digital-order-received .woocommerce-column--billing-address,
body.yasaf-digital-order-received .woocommerce-column--shipping-address,
body.yasaf-digital-order-received h2.woocommerce-column__title,
body.yasaf-digital-order-received address {
  display: none !important;
}

body.yasaf-digital-order-received .ydc-thankyou-card {
  margin-top: 0;
  box-shadow: 0 10px 30px rgba(15, 31, 60, .06);
}

body.yasaf-digital-order-received .woocommerce-notice--success,
body.yasaf-digital-order-received .woocommerce-thankyou-order-received {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #fff;
  color: #344054;
}

body.yasaf-digital-order-received .woocommerce-order-details {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--ydc-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ydc-shadow);
}

body.yasaf-digital-order-received .woocommerce-order-details__title {
  margin: 0 0 16px;
  color: var(--ydc-ink);
  font-size: 20px;
}

body.yasaf-digital-order-received table.woocommerce-table--order-details {
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

body.yasaf-digital-order-received table.woocommerce-table--order-details th,
body.yasaf-digital-order-received table.woocommerce-table--order-details td {
  padding: 12px 14px;
  border-color: #edf1f6;
  font-size: 13px;
}

body.yasaf-digital-order-received .woocommerce-order > p,
body.yasaf-digital-order-received .woocommerce-order > div:not(.ydc-thankyou-card),
body.yasaf-digital-order-received .woocommerce-order > section:not(.woocommerce-order-details) {
  max-width: 100%;
}

/* Preserva os componentes do gateway Pix, mas os enquadra melhor na página. */
body.yasaf-digital-order-received .woocommerce-order > div:not(.ydc-thankyou-card),
body.yasaf-digital-order-received .woocommerce-order > section:not(.woocommerce-order-details) {
  border-radius: 16px;
}

@media (max-width: 600px) {
  .ydc-shell-header__inner {
    min-height: 62px;
    padding: 8px 12px;
    gap: 12px;
  }

  .ydc-shell-logo {
    max-width: 118px;
    max-height: 42px;
  }

  .ydc-shell-separator {
    height: 26px;
  }

  .ydc-shell-title {
    font-size: 15px;
  }

  .ydc-hero {
    margin-top: 12px;
  }

  .ydc-shell-footer {
    min-height: 62px;
    margin-top: 24px;
  }

  body.yasaf-digital-order-received .woocommerce {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.yasaf-digital-order-received .woocommerce-order {
    margin-top: 14px;
  }

  body.yasaf-digital-order-received .woocommerce-order-details {
    padding: 16px;
    border-radius: 14px;
  }
}


@media (max-width: 700px) {
  .ydc-license-note,
  .ydc-shell-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ydc-shell-footer__meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .ydc-license-note__badge {
    white-space: normal;
  }
}


/* ==========================================================
   Página de Pix / order-received - layout mais forte
   ========================================================== */
body.yasaf-digital-order-received .woocommerce-order {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.yasaf-digital-order-received .woocommerce-order > * {
  order: 20;
}

body.yasaf-digital-order-received .woocommerce-order > .ydc-pix-container {
  order: 5;
}

body.yasaf-digital-order-received .woocommerce-order > .ydc-thankyou-card {
  order: 30;
}

body.yasaf-digital-order-received .woocommerce-order > .ydc-license-note--order {
  order: 31;
}

body.yasaf-digital-order-received .woocommerce-order > .woocommerce-notice--success,
body.yasaf-digital-order-received .woocommerce-order > .woocommerce-thankyou-order-received,
body.yasaf-digital-order-received .woocommerce-order > p {
  order: 32;
}

body.yasaf-digital-order-received .woocommerce-order > .woocommerce-order-details {
  order: 40;
}

body.yasaf-digital-order-received .ydc-pix-container {
  margin: 0;
  padding: 24px 22px;
  border: 1px solid var(--ydc-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ydc-shadow);
  text-align: center;
}

body.yasaf-digital-order-received .ydc-pix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  text-align: left;
}

body.yasaf-digital-order-received .ydc-pix-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #0b64df;
  font-size: 12px;
  font-weight: 800;
}

body.yasaf-digital-order-received .ydc-pix-badge::before {
  content: '•';
  font-size: 16px;
  line-height: 1;
}

body.yasaf-digital-order-received .ydc-pix-countdown-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e6edf5;
}

body.yasaf-digital-order-received .ydc-pix-countdown-label {
  color: var(--ydc-muted);
  font-size: 12px;
  font-weight: 700;
}

body.yasaf-digital-order-received .ydc-pix-countdown {
  color: var(--ydc-ink);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .04em;
}

body.yasaf-digital-order-received .ydc-pix-title {
  margin: 0 0 6px;
  color: var(--ydc-ink);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

body.yasaf-digital-order-received .ydc-pix-subtitle {
  max-width: 620px;
  margin: 0 auto 18px;
  color: var(--ydc-muted);
  font-size: 14px;
  line-height: 1.55;
}

body.yasaf-digital-order-received .ydc-pix-container > p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

body.yasaf-digital-order-received .ydc-pix-container img {
  display: block;
  max-width: 180px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

body.yasaf-digital-order-received .ydc-pix-container input[type='text'],
body.yasaf-digital-order-received .ydc-pix-container input[type='search'],
body.yasaf-digital-order-received .ydc-pix-container textarea {
  max-width: 100%;
}

body.yasaf-digital-order-received .ydc-pix-container a,
body.yasaf-digital-order-received .ydc-pix-container button,
body.yasaf-digital-order-received .ydc-pix-container .button {
  margin-left: auto;
  margin-right: auto;
}

body.yasaf-digital-order-received .ydc-pix-container > div,
body.yasaf-digital-order-received .ydc-pix-container > section {
  max-width: 100%;
}

@media (max-width: 700px) {
  body.yasaf-digital-order-received .ydc-pix-container {
    padding: 18px 16px;
    border-radius: 18px;
  }

  body.yasaf-digital-order-received .ydc-pix-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  body.yasaf-digital-order-received .ydc-pix-badge,
  body.yasaf-digital-order-received .ydc-pix-countdown-wrap {
    justify-content: center;
  }

  body.yasaf-digital-order-received .ydc-pix-subtitle,
  body.yasaf-digital-order-received .ydc-pix-container > p {
    font-size: 13px;
  }
}
