/**
 * Theme Name:     Astra Child
 * Author:         Muhammad Zain
 * Template:       astra
 * Text Domain:	   astra-child
 * Description:    The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 5,700+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
 */
.hcwco-checkout { max-width: 720px; margin: 0 auto; padding: 12px 16px 120px; }
.hcwco-title { font-size: 24px; font-weight: 700; text-align: center; margin: 8px 0 18px; }
.hcwco-card { background:#fff; border-radius:14px; padding:16px; margin:14px 0; box-shadow:0 6px 18px rgba(0,0,0,.06); }
.hcwco-card h2 { font-size:18px; margin:0 0 10px; }
.hcwco-payment .wc_payment_methods { margin: 8px 0 0; }
.hcwco-summary table.shop_table { width:100%; border:0; }
.hcwco-summary table.shop_table th, 
.hcwco-summary table.shop_table td { border:0; padding:8px 0; }
.hcwco-summary .cart_item img { width:48px; height:48px; object-fit:cover; border-radius:8px; }

/* Sticky bottom pay bar */
.hcwco-stickybar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; border-top:1px solid #eee; padding: 12px 16px 18px;
  display:flex; flex-direction:column; gap:10px; z-index:1000;
}
.hcwco-total { display:flex; justify-content:space-between; align-items:center; font-size:16px; }
.hcwco-total-amount { font-size:18px; }
.hcwco-terms { font-size:12px; color:#666; }
.hcwco-pay-btn { width:100%; padding:14px 16px; border-radius:999px; font-size:16px; }

/* Tidy default Woo rows inside cards */
.hcwco-card .form-row { margin-bottom:10px; }
.hcwco-card .select2-container { width:100% !important; }
/* Container + header */
.mco, .mty { max-width: 720px; margin: 0 auto; padding: 8px 16px 128px; }
.mco-top { display:flex; align-items:center; justify-content:center; position:relative; padding:8px 0 12px; }
.mco-top h1 { font-size:20px; font-weight:700; margin:0; }
.mco-close { position:absolute; right:0; top:50%; transform:translateY(-50%); text-decoration:none; font-size:20px; color:#111; }

/* Card */
.mco-card { background:#fff; border-radius:14px; padding:16px; margin:14px 0; box-shadow:0 6px 18px rgba(0,0,0,.06); }
.mco-card h2 { font-size:18px; margin:0 0 10px; }
.mco-section .form-row { margin-bottom:10px; }
.mco-section .select2-container { width:100% !important; }

/* Summary table simplified */
.mco-summary table.shop_table { width:100%; border:0; }
.mco-summary table.shop_table tr, 
.mco-summary table.shop_table th,
.mco-summary table.shop_table td { border:0 !important; padding:8px 0 !important; }
.mco-summary .product-name img { width:44px; height:44px; object-fit:cover; border-radius:8px; margin-right:8px; }

/* Sticky pay bar (bottom) */
.mco-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background:#fff; border-top:1px solid #eee; padding: 12px 16px 18px;
  display:flex; flex-direction:column; gap:10px;
}
.mco-total { display:flex; justify-content:space-between; align-items:center; font-size:16px; }
.mco-total-amount { font-size:18px; }
.mco-terms { font-size:12px; color:#666; }
.mco-pay.button.alt { width:100%; padding:14px 16px; border-radius:999px; font-size:16px; background:#111; color:#fff; border:0; }
.mco-pay.button.alt:hover { filter:brightness(.95); }

/* Woo cleanup */
.woocommerce form .form-row label { font-weight:600; }
.woocommerce-checkout .col2-set, .woocommerce-checkout #customer_details { float:none; width:100%; }
.woocommerce .woocommerce-error, .woocommerce .woocommerce-info, .woocommerce .woocommerce-message { border-radius:12px; }

/* Thank you page tweaks */
.mty .mty-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.mty .mty-col { background:#f8f8f8; border-radius:12px; padding:12px; }
.mty .mty-col h3 { font-size:12px; margin:0 0 6px; color:#666; }
.mty .mty-col p { margin:0; font-weight:600; }

/* Mobile niceties */
@supports (padding: env(safe-area-inset-bottom)) {
  .mco, .mty { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  .mco-sticky { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* Optional: lighten separators like the mock */
.mco-card + .mco-card { margin-top:16px; }
