.dn-buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 18px;
  border: 1px solid #d5a15d;
  border-radius: 6px;
  appearance: none;
  background: #d5a15d;
  color: #21170d !important;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.dn-purchase-card .dn-purchase-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #d5a15d;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dn-purchase-card .dn-purchase-name {
  display: block;
  margin: 0;
  color: #f0e6d8;
  font-size: 22px;
  line-height: 1.35;
}

.dn-purchase-card .dn-purchase-scope {
  margin: 9px 0 0;
  color: #b7aa9a;
  font-size: 15px;
  line-height: 1.55;
}

.dn-purchase-card .dn-purchase-price {
  margin: 18px 0 0;
  color: #f0e6d8;
  font-size: 24px;
  font-weight: 750;
}

.dn-purchase-card .dn-purchase-price .amount {
  color: inherit;
}

body.dn-simple-checkout header.site-header,
body.dn-simple-checkout footer.site-footer,
body.dn-simple-checkout #masthead,
body.dn-simple-checkout #colophon,
body.dn-simple-checkout .site-header,
body.dn-simple-checkout .site-footer,
body.dn-simple-checkout .breadcrumbs,
body.dn-simple-checkout .breadcrumb,
body.dn-simple-checkout .woocommerce-breadcrumb,
body.dn-simple-checkout .page-title,
body.dn-simple-checkout .entry-title,
body.dn-simple-checkout .woocommerce-form-coupon-toggle {
  display: none !important;
}

body.dn-simple-checkout {
  min-height: 100dvh;
  background: #141210;
}

body.dn-simple-checkout .site,
body.dn-simple-checkout .site-content,
body.dn-simple-checkout .content-area,
body.dn-simple-checkout main {
  min-height: 100dvh;
  margin: 0 !important;
  padding: 0 !important;
}

body.dn-simple-checkout .woocommerce {
  width: min(100% - 32px, 780px);
  margin: 0 auto !important;
  padding: 32px 0 56px;
  color: #f0e6d8;
}

body.dn-simple-checkout form.checkout {
  display: block !important;
}

body.dn-simple-checkout form.checkout .col2-set,
body.dn-simple-checkout form.checkout .col-1,
body.dn-simple-checkout form.checkout .col-2,
body.dn-simple-checkout #order_review,
body.dn-simple-checkout #order_review_heading {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.dn-simple-checkout .woocommerce-billing-fields > h3,
body.dn-simple-checkout #order_review_heading,
body.dn-simple-checkout .woocommerce-additional-fields,
body.dn-simple-checkout .woocommerce-shipping-fields {
  display: none !important;
}

body.dn-simple-checkout .woocommerce-billing-fields__field-wrapper {
  margin: 0 0 20px;
}

body.dn-simple-checkout #billing_email_field {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.dn-simple-checkout #billing_email_field label {
  display: block;
  margin-bottom: 8px;
  color: #f0e6d8;
  font-weight: 700;
}

body.dn-simple-checkout #billing_email_field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #44382d;
  border-radius: 6px;
  background: #1d1915;
  color: #f0e6d8;
  font-size: 16px;
}

body.dn-simple-checkout #order_review {
  padding: 20px;
  border: 1px solid #332b24;
  border-radius: 8px;
  background: #1d1915;
}

body.dn-simple-checkout table.shop_table {
  margin: 0 0 18px;
  border-color: #44382d;
  background: transparent;
  color: #f0e6d8;
}

body.dn-simple-checkout table.shop_table th,
body.dn-simple-checkout table.shop_table td {
  padding: 12px;
  border-color: #44382d;
  color: #f0e6d8;
}

body.dn-simple-checkout .product-quantity {
  display: none;
}

body.dn-simple-checkout #payment {
  background: transparent;
  color: #f0e6d8;
}

body.dn-simple-checkout #payment ul.payment_methods {
  padding: 16px 0;
  border-color: #44382d;
}

body.dn-simple-checkout #payment div.payment_box {
  background: #141210;
  color: #f0e6d8;
}

body.dn-simple-checkout #payment div.form-row {
  padding: 14px 0 0;
}

body.dn-simple-checkout #place_order {
  float: none;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: #d5a15d;
  color: #21170d;
  font-size: 17px;
  font-weight: 800;
}

body.dn-simple-checkout .woocommerce-message {
  display: none !important;
}

.dn-payment-return {
  position: fixed;
  z-index: 2147483500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #141210;
  color: #f0e6d8;
  font: 700 18px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

.dn-payment-return[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  body.dn-simple-checkout .woocommerce {
    width: min(100% - 24px, 780px);
    padding: 18px 0 32px;
  }

  body.dn-simple-checkout #order_review {
    padding: 14px;
  }
}


/* v0.8.2 — Smart Cart: 2+ sản phẩm được đưa qua giỏ hàng trước Checkout. */
body.dn-smart-cart .woocommerce {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 64px;
}
body.dn-smart-cart .woocommerce-cart-form,
body.dn-smart-cart .cart-collaterals {
  padding: 22px;
  border: 1px solid rgba(181,107,111,.24);
  border-radius: 20px;
  background: var(--dn-panel, #fff);
}
body.dn-smart-cart .cart-collaterals { margin-top: 18px; }
body.dn-smart-cart table.shop_table { border-collapse: separate; border-spacing: 0; border-radius: 16px; overflow: hidden; }
body.dn-smart-cart table.shop_table th,
body.dn-smart-cart table.shop_table td { padding: 16px 14px; }
body.dn-smart-cart a.remove {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #b45f66 !important;
  background: rgba(181,107,111,.12);
}
body.dn-smart-cart .wc-proceed-to-checkout a.checkout-button {
  border-radius: 14px;
  background: #b56b6f;
  color: #fff;
  font-weight: 800;
}
.dn-smart-cart-message {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 18px;
  padding: 15px 18px;
  border: 1px solid rgba(181,107,111,.28);
  border-radius: 16px;
  background: rgba(181,107,111,.10);
}
.dn-smart-cart-message span { opacity: .78; }
@media (max-width: 680px) {
  body.dn-smart-cart .woocommerce { width: min(100% - 20px, 1120px); margin-top: 18px; }
  body.dn-smart-cart .woocommerce-cart-form,
  body.dn-smart-cart .cart-collaterals { padding: 13px; border-radius: 16px; }
}


/* v0.8.3 — Giá khóa học + thời hạn truy cập. */
.fyd-course-offer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  flex-wrap: wrap;
  vertical-align: middle;
}
.fyd-offer-price {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--primary, #b56b6f) 28%, transparent);
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary, #b56b6f) 13%, transparent), color-mix(in srgb, var(--panel, #fff) 94%, transparent));
  box-shadow: 0 7px 18px color-mix(in srgb, var(--primary, #b56b6f) 10%, transparent);
}
.fyd-price-old {
  color: var(--muted, #8b7d7f);
  font-size: 12px;
  font-weight: 650;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  opacity: .72;
}
.fyd-price-new {
  color: var(--primary, #b45f66);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}
.fyd-price-new .woocommerce-Price-currencySymbol,
.fyd-price-new .amount { color: inherit; }
.fyd-save-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--primary, #b56b6f);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.fyd-access-term {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--border, #eadcda) 86%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel, #fff) 94%, transparent);
  color: var(--text, #302729);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.course-card .meta-chip.is-price,
.course-detail-shell .meta-chip.is-price {
  max-width: 100%;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.dn-purchase-price .fyd-course-offer { margin-top: 2px; }
@media (max-width: 520px) {
  .fyd-course-offer { gap: 6px; }
  .fyd-price-new { font-size: 17px; }
  .fyd-save-badge { font-size: 9px; }
  .fyd-access-term { min-height: 34px; padding: 6px 9px; }
}
