/* Ezee Notes on WordPress: what WordPress and WooCommerce add on top of ez-theme.css (shared with Shopify). */

/* The admin bar sits above the sticky header when you are signed in */
.admin-bar .ez-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .ez-header { top: 32px; } }

/* Header on small phones (under ~390px wide): the logo shrinks so the menu, logo, search and cart fit without cutting off */
.ez-header__in { grid-template-columns: 88px minmax(0, 1fr) 88px; }
.ez-header__logo { min-width: 0; }
@media (max-width: 389px) {
  .ez-header__in { padding: 8px 4px; }
  .ez-header__logo { --s: 30px; }
}
@media (max-width: 339px) {
  .ez-header__in { grid-template-columns: 80px minmax(0, 1fr) 80px; }
  .ez-header .ez-iconbtn { width: 40px; }
  .ez-header__logo { --s: 26px; }
}

/* Sample PDF buttons: up to four in one row, equal widths; a long name goes onto two lines inside its button */
.ez-samples .ez-chips--fit { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.ez-samples .ez-chips--fit .ez-pdf { min-width: 0; justify-content: center; text-align: center; padding: 4px 8px; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 419px) { .ez-samples .ez-chips--fit .ez-pdf .ez-ic { display: none; } }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The class picker: one column per class on wider screens (there may be fewer than six) */
@media (min-width: 750px) {
  .ez-picker__tiles { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
}

/* Page numbers */
.ez-pager .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 10px; padding: 0 12px; text-decoration: none; color: var(--ink); font-weight: 700; background: #fff; }
.ez-pager .page-numbers.current { background: var(--ink); color: #fff; }
.ez-pager .page-numbers.dots { border-color: transparent; background: none; }

/* WooCommerce messages (added to cart, coupon applied, errors) */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; border: 0; font-weight: 600; font-size: 15px; background: var(--green-soft); color: #0B5A39;
}
.woocommerce-info { background: var(--lilac); color: var(--deep); }
.woocommerce-error, .wc-block-components-notice-banner.is-error { background: #FFE1DC; color: #8A1C0B; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { float: none; margin-left: 8px; }
.ez-template-product .woocommerce-notices-wrapper { max-width: 1200px; margin: 0 auto; padding: 12px var(--pad) 0; }

/* Checkout and account pages: WooCommerce's own forms in the theme's look */
.ez-woo { font-family: var(--f-body); }
.ez-woo h2, .ez-woo h3 { font-family: var(--f-head); font-weight: 800; line-height: 1.1; margin: 18px 0 10px; }
.ez-woo h3 { font-size: 22px; }
.ez-woo label { font-size: 14px; font-weight: 700; }
.ez-woo .input-text, .ez-woo input[type="text"], .ez-woo input[type="email"], .ez-woo input[type="tel"], .ez-woo input[type="password"], .ez-woo input[type="number"], .ez-woo select, .ez-woo textarea,
.ez-woo .select2-container .select2-selection--single {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; box-shadow: none;
}
.ez-woo .select2-container .select2-selection--single { display: flex; align-items: center; }
.ez-woo .select2-container .select2-selection--single .select2-selection__arrow { top: 12px; right: 8px; }
.ez-woo textarea { min-height: 96px; }
.ez-woo .form-row { margin: 0 0 12px; padding: 0; }
.ez-woo .button, .ez-woo button.button, .ez-woo input.button, .ez-woo #place_order,
.ez-woo .wc-block-components-button:not(.is-link) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 4px 22px; border-radius: 12px;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font-family: var(--f-body); font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
}
.ez-woo #place_order, .ez-woo .checkout-button, .ez-woo .wc-block-components-checkout-place-order-button {
  width: 100%; min-height: 58px; background: var(--cta); font-size: 18px; box-shadow: 0 4px 0 var(--ink); margin-bottom: 4px;
}
.ez-woo #place_order:hover, .ez-woo .wc-block-components-checkout-place-order-button:hover { background: #FFE04A; color: var(--ink); }
.ez-woo table.shop_table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.ez-woo table.shop_table th, .ez-woo table.shop_table td { padding: 10px 14px; border-top: 1px solid var(--line); text-align: left; }
.ez-woo table.shop_table tfoot .order-total { font-weight: 800; font-size: 18px; }
.ez-woo #payment, .ez-woo .woocommerce-checkout-payment { background: var(--paper); border-radius: 18px; border: 1px solid var(--line); padding: 4px 14px 14px; }
.ez-woo #payment ul.payment_methods { list-style: none; padding: 0; margin: 10px 0; }
.ez-woo #payment ul.payment_methods li { padding: 10px 0; border-bottom: 1px dashed var(--dash); }
.ez-woo #payment div.payment_box { background: #fff; border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 14px; color: var(--soft); }
.ez-woo #payment div.payment_box::before { display: none; }
.ez-woo .woocommerce-form-coupon-toggle .woocommerce-info { background: var(--marker); color: var(--ink); }
.ez-woo .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.ez-woo .woocommerce-MyAccount-navigation a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.ez-woo .woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; }
@media (min-width: 990px) {
  .ez-woo form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
  .ez-woo form.checkout > .woocommerce-NoticeGroup, .ez-woo form.checkout > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
  .ez-woo form.checkout #customer_details { grid-column: 1; }
  .ez-woo form.checkout #order_review_heading, .ez-woo form.checkout #order_review { grid-column: 2; }
  .ez-woo form.checkout #order_review_heading { margin-top: 0; }
  .ez-woo .col2-set .col-1, .ez-woo .col2-set .col-2 { width: 100%; float: none; }
}

/* Blog post content and plain pages */
.ez-prose a { font-weight: 600; }
.ez-prose figure { margin: 14px 0; }
.ez-prose .wp-block-image img { border-radius: 12px; }

/* Sample PDFs drawn in the page (the store's Firebase files): every page fits the viewer's width */
.ez-pdfview { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px; display: flex; flex-direction: column; gap: 8px; background: #E7E8F1; }
.ez-pdfpage { flex: none; width: 100%; aspect-ratio: 1 / 1.4142; background: #fff; box-shadow: 0 1px 3px rgba(20, 22, 60, .18); }
.ez-pdfpage canvas { display: block; width: 100%; height: auto; }
.ez-pdfview__msg { margin: auto; padding: 16px; text-align: center; font-weight: 600; color: var(--ink); }

/* Line above the product title: tighter letters and words ("CLASS 12 CBSE · FULL SET OF 3 BOOKS") */
.ez-pdp__kicker { letter-spacing: 0.03em; word-spacing: -0.06em; }
/* Product page photos fill the 4:3 frame on every screen size: no empty bands when a photo has another shape */
.ez-slide img { object-fit: cover; object-position: center; }
/* Order placed (WooCommerce order-received) */
.ez-woo .woocommerce-thankyou-order-received:empty, .ez-woo .woocommerce-order-overview { display: none; }
.ez-ty { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.ez-ty__hero { display: flex; gap: 14px; align-items: center; }
.ez-ty__hero .ez-h2 { margin: 0 0 2px; }
.ez-ty__tick { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--mint, #BDF2D5); color: var(--ink); border: 2px solid var(--ink); }
.ez-ty__facts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.ez-ty__facts > div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; line-height: 1.35; }
.ez-ty__facts .ez-ic { flex: none; margin-top: 1px; }
.ez-ty__steps { list-style: none; margin: 0; padding: 0; counter-reset: ty; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.ez-ty__steps li { counter-increment: ty; position: relative; padding: 12px 14px 12px 50px; border-radius: 14px; background: var(--lilac); line-height: 1.35; }
.ez-ty__steps li::before { content: counter(ty); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.ez-ty__steps b, .ez-ty__card b { display: block; }
.ez-ty__steps span, .ez-ty__card span span { font-size: 14px; color: var(--soft, #55567A); }
.ez-ty__help { display: grid; gap: 10px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.ez-ty__card { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--ink); min-height: 44px; }
.ez-ty__card .ez-ic { flex: none; margin-top: 2px; }

/* Samples page */
.ez-sampgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.ez-sampcard { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.ez-sampcard__head { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.ez-sampcard__head img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--lilac); flex: none; }
.ez-sampcard__name { display: block; font-weight: 700; line-height: 1.25; }
.ez-sampcard__price { display: block; font-size: 14px; color: var(--soft, #55567A); }
.ez-sampcard__more { display: inline-flex; gap: 4px; align-items: center; align-self: flex-start; min-height: 32px; }