/* CP Wholesale — frontend styles */

/* Theme bridge: pick up the site's look & feel (--cp-* variables from the site CSS), with built-in fallbacks. */
:root {
	--cpw-ink: var(--cp-ink, #0f2746);
	--cpw-primary: var(--cp-teal2, #0f4e63);
	--cpw-primary-2: var(--cp-teal, #0f5a73);
	--cpw-accent: var(--cp-mint, #02b7a8);
	--cpw-btn-radius: var(--cp-radius-pill, 999px);
	--cpw-heading-font: var(--wp--preset--font-family--montserrat, "Montserrat", system-ui, sans-serif);
}
.cpw-wrap h1, .cpw-wrap h2, .cpw-wrap h3, .cpw-gate h2, .cpw-gate h3, .cpw-btn, .cpw-auth-step { font-family: var(--cpw-heading-font); }
.cpw-wrap h1, .cpw-wrap h2 { color: var(--cpw-ink); }
.cpw-hero h1, .cpw-lhero h1, .cpw-co-head h1, .cpw-co-head h2, .cpw-auth-side h2 { color: #fff; }

.cpw-wrap { max-width: 1200px; margin: 0 auto; }

.cpw-btn {
	display: inline-block; background: var(--cpw-primary); color: #fff !important;
	padding: 10px 22px; border-radius: var(--cpw-btn-radius); text-decoration: none;
	font-weight: 700; border: 0; cursor: pointer; font-size: 15px;
}
.cpw-btn:hover { background: var(--cpw-primary-2); color: #fff; }
.cpw-btn-outline { background: transparent; color: var(--cpw-primary) !important; border: 2px solid var(--cpw-primary); }

/* Gate */
.cpw-gate {
	max-width: 560px; margin: 40px auto; padding: 40px; text-align: center;
	background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* Hero */
.cpw-hero {
	background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-2)); color: #fff;
	padding: 48px 40px; border-radius: 12px; margin-bottom: 32px;
}
.cpw-hero h1 { color: #fff; margin: 0 0 8px; }
.cpw-hero p { margin: 0 0 16px; opacity: .9; }

.cpw-h2 { margin: 32px 0 16px; }

/* Category tiles (home) */
.cpw-cat-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px; margin-bottom: 8px;
}
.cpw-cat-tile {
	display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
	overflow: hidden; text-decoration: none; color: #111; transition: box-shadow .15s;
}
.cpw-cat-tile:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.cpw-cat-img img { width: 100%; height: auto; display: block; }
.cpw-cat-name { display: block; padding: 10px 12px; font-weight: 600; }
.cpw-cat-name em { color: #6b7280; font-style: normal; font-weight: 400; }

/* Shop layout */
.cpw-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.cpw-sidebar { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 20px; }
.cpw-sidebar h3 { margin: 0 0 10px; }
.cpw-cat-nav { list-style: none; margin: 0; padding: 0; }
.cpw-cat-nav li { margin: 0 0 4px; }
.cpw-cat-nav a { display: block; padding: 6px 8px; border-radius: 6px; text-decoration: none; color: #374151; }
.cpw-cat-nav a:hover { background: #f3f4f6; }
.cpw-cat-nav a.active { background: var(--cpw-primary); color: #fff; }
.cpw-cat-nav em { font-style: normal; opacity: .65; font-size: .85em; }

/* Search */
.cpw-search { display: flex; gap: 8px; margin-bottom: 16px; }
.cpw-search input[type="search"] {
	flex: 1; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 15px;
}
.cpw-results { color: #6b7280; margin: 0 0 14px; }

/* Product grid + cards */
.cpw-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
}
.cpw-card {
	background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden;
	display: flex; flex-direction: column; transition: box-shadow .15s;
}
.cpw-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); }
.cpw-card-img img { width: 100%; height: auto; display: block; }
.cpw-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cpw-card-title { font-weight: 600; color: #111; text-decoration: none; line-height: 1.35; }
.cpw-sku { font-size: 12px; color: #9ca3af; }
.cpw-price { font-size: 18px; font-weight: 700; color: #0a7d2c; }
.cpw-price-tag {
	font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
	background: #e6f6ec; color: #0a7d2c; border-radius: 4px; padding: 2px 6px; vertical-align: middle;
}
.cpw-price-regular { color: #374151; font-size: 15px; }
.cpw-atc { margin-top: auto; }
.cpw-atc .button, .cpw-atc a.add_to_cart_button {
	display: block; text-align: center; width: 100%; box-sizing: border-box;
}

/* Pagination */
.cpw-pagination { margin-top: 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.cpw-pagination .page-numbers {
	padding: 8px 14px; border: 1px solid #d1d5db; border-radius: 6px;
	text-decoration: none; color: #374151; background: #fff;
}
.cpw-pagination .page-numbers.current { background: var(--cpw-primary); color: #fff; border-color: var(--cpw-primary); }

/* Application form */
.cpw-apply { max-width: 640px; }
.cpw-form { display: flex; flex-direction: column; gap: 14px; }
.cpw-label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: #111; }
.cpw-label input, .cpw-label textarea {
	padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px;
	font-size: 15px; font-weight: 400; width: 100%; box-sizing: border-box;
}
.cpw-logged-in { background: #f3f4f6; padding: 10px 14px; border-radius: 6px; }

/* Notices */
.cpw-notice {
	padding: 14px 18px; border-radius: 8px; margin-bottom: 18px;
	background: #f3f4f6; border-left: 4px solid #6b7280;
}
.cpw-notice-success { background: #e6f6ec; border-left-color: #0a7d2c; }
.cpw-notice-error { background: #fdeaea; border-left-color: #c0392b; }

/* Admin status badges */
.cpw-status { text-transform: capitalize; }
.cpw-status-pending { color: #b7791f; }
.cpw-status-approved { color: #0a7d2c; }
.cpw-status-denied { color: #c0392b; }
.cpw-status-revoked { color: #6b7280; }
.cpw-notes-row td { background: #fafafa; }

@media (max-width: 782px) {
	.cpw-layout { grid-template-columns: 1fr; }
	.cpw-hero { padding: 32px 24px; }
}

/* Analytics */
.cpw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 16px 0 8px; }
.cpw-stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 20px; }
.cpw-stat-value { font-size: 24px; font-weight: 700; color: var(--cpw-primary); }
.cpw-stat-label { color: #6b7280; font-size: 13px; margin-top: 4px; }
.cpw-bar-wrap { position: relative; background: #f3f4f6; border-radius: 4px; height: 18px; min-width: 120px; }
.cpw-bar { background: var(--cpw-primary); height: 100%; border-radius: 4px; }
.cpw-bar-wrap span { position: absolute; right: 6px; top: 0; font-size: 11px; line-height: 18px; color: #374151; }

/* Honeypot (keep invisible but in the DOM) */
.cpw-hp { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* v1.3 additions */
.cpw-coa-link { font-size: 12px; color: #6b7280; text-decoration: none; }
.cpw-coa-link:hover { color: var(--cpw-primary); text-decoration: underline; }
.cpw-po { margin-top: 20px; }

/* Minimum order banner */
.cpw-min-order { background: #fff8e5; border: 2px solid #f0b429; border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; }
.cpw-min-order-amount { font-size: 20px; color: #5f370e; }
.cpw-min-order-note { color: #7c5e10; font-size: 14px; margin-top: 4px; }
.cpw-min-order-cart { margin-top: 8px; font-weight: 600; color: #b32d2e; }
.cpw-min-order-cart.cpw-min-ok { color: #0a7d2c; }
.cpw-min-order-inline { background: #f3f4f6; border-radius: 6px; padding: 10px 14px; margin: 0; }

/* Wholesale product page */
.cpw-crumbs { color: #6b7280; font-size: 14px; }
.cpw-pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 760px) { .cpw-pdp-grid { grid-template-columns: 1fr; } }
.cpw-pdp-main { width: 100%; height: auto; border: 1px solid #e5e7eb; border-radius: 10px; }
.cpw-pdp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cpw-pdp-thumb img { width: 72px; height: 72px; object-fit: cover; border: 1px solid #e5e7eb; border-radius: 6px; }
.cpw-pdp-title { margin: 0 0 8px; }
.cpw-pdp-info .cpw-price { font-size: 28px; margin: 12px 0; }
.cpw-buy { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cpw-qty { width: 80px; padding: 9px; border: 1px solid #d1d5db; border-radius: 6px; }
.cpw-var-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.cpw-var-table th, .cpw-var-table td { text-align: left; padding: 10px; border-bottom: 1px solid #e5e7eb; vertical-align: middle; }
.cpw-oos { color: #b91c1c; font-weight: 600; }
.cpw-pdp-desc, .cpw-pdp-reviews { margin-top: 32px; }
.cpw-review { border-top: 1px solid #e5e7eb; padding: 10px 0; }
.cpw-stars { color: #f59e0b; }

/* Wholesale cart */
.cpw-cart-totals { margin-top: 18px; text-align: right; }
.cpw-btn-disabled { opacity: .55; cursor: not-allowed; display: inline-block; }

/* Image lightbox */
.cpw-pdp-main[data-full], .cpw-pdp-thumb { cursor: zoom-in; }
.cpw-lightbox { display: none; position: fixed; inset: 0; z-index: 999999; background: rgba(0,0,0,.88); align-items: center; justify-content: center; }
.cpw-lightbox.cpw-lb-open { display: flex; }
.cpw-lb-stage { max-width: 92vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; }
.cpw-lb-img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.cpw-lb-close { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 32px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.cpw-lb-close:hover, .cpw-lb-close:focus { background: #e5e7eb; }
.cpw-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 8px; background: rgba(255,255,255,.85); color: #111; font-size: 40px; line-height: 1; cursor: pointer; }
.cpw-lb-prev { left: 14px; } .cpw-lb-next { right: 14px; }
.cpw-lb-single .cpw-lb-nav { display: none; }
.cpw-lb-hint { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #d1d5db; font-size: 13px; }
html.cpw-lb-lock { overflow: hidden; }

/* Landing page (/wholesale) */
.cpw-center { text-align: center; }
.cpw-lhero {
	background-color: #04161c; background-size: cover; background-position: center right;
	border-radius: 14px; overflow: hidden; margin-bottom: 18px; color: #fff;
}
.cpw-lhero-inner { max-width: 42%; padding: 72px 40px 72px 48px; }
.cpw-lhero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.1; margin: 8px 0 14px; }
.cpw-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--cpw-accent); }
.cpw-lead { font-size: 17px; line-height: 1.55; opacity: .92; margin: 0 0 22px; }
.cpw-cta-row .cpw-btn { margin: 0 8px 8px 0; padding: 13px 26px; font-size: 16px; }
.cpw-btn-light { background: #fff; color: var(--cpw-primary) !important; }
.cpw-btn-light:hover { background: #e6f6f3; color: var(--cpw-primary) !important; }
.cpw-btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.7); }
.cpw-btn-ghost:hover { background: rgba(255,255,255,.12); }
.cpw-pending-pill { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.5); padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.cpw-trust { list-style: none; margin: 0 0 12px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; background: #f1f8f7; border-radius: 10px; font-weight: 600; color: var(--cpw-primary); }
.cpw-trust li { margin: 0; }
.cpw-trust li:before { content: "\2713"; color: var(--cpw-accent); margin-right: 8px; }
.cpw-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cpw-benefit { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 26px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.cpw-benefit h3 { margin: 12px 0 6px; }
.cpw-benefit p { margin: 0; color: #4b5563; }
.cpw-ico { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--cpw-primary); color: var(--cpw-accent); font-weight: 700; font-size: 20px; }
.cpw-split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin: 44px 0; }
.cpw-split-img img { width: 100%; height: auto; display: block; border-radius: 14px; }
.cpw-split-copy h2 { margin-top: 0; }
.cpw-checks { list-style: none; padding: 0; margin: 16px 0 0; }
.cpw-checks li { padding-left: 28px; position: relative; margin: 0 0 8px; }
.cpw-checks li:before { content: "\2713"; position: absolute; left: 0; color: var(--cpw-accent); font-weight: 700; }
.cpw-steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: none; }
.cpw-steps li { text-align: center; padding: 10px 18px; margin: 0; }
.cpw-steps b { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: var(--cpw-accent); color: #fff; align-items: center; justify-content: center; font-size: 20px; }
.cpw-steps h3 { margin: 12px 0 4px; }
.cpw-steps p { margin: 0; color: #4b5563; }
.cpw-minbox { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; background: var(--cpw-primary); color: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 40px; padding-right: 32px; }
.cpw-minbox h2 { color: #fff; margin: 0 0 8px; }
.cpw-minbox p { margin: 0; opacity: .9; }
.cpw-minbox-img img { border-radius: 0; height: 100%; object-fit: cover; }
.cpw-band { background-color: #0b3a40; background-size: cover; background-position: center; color: #fff; text-align: center; padding: 56px 24px; border-radius: 14px; margin: 40px 0 8px; }
.cpw-band h2 { color: #fff; margin: 0 0 8px; }
.cpw-band p { margin: 0 0 16px; opacity: .92; }
@media (max-width: 782px) {
	.cpw-lhero { background-position: 70% center; }
	.cpw-lhero-inner { max-width: none; padding: 44px 24px; background: linear-gradient(90deg, rgba(3,20,26,.82), rgba(3,20,26,.55)); }
	.cpw-split, .cpw-minbox { grid-template-columns: 1fr; }
	.cpw-minbox { padding-right: 0; } .cpw-minbox > div:last-child { padding: 0 24px 24px; }
}

/* 1.11.1 polish */
.cpw-wrap a.cpw-btn, .cpw-wrap .cpw-btn:hover, .cpw-cat-grid a, .cpw-wrap .cpw-card a, .cpw-wrap .cpw-card a:hover, .cpw-cta-row a { text-decoration: none; }
.cpw-co-head { background: var(--cpw-primary); color: #fff; border-radius: 14px; padding: 28px 32px; margin-bottom: 22px; }
.cpw-co-head h1 { color: #fff; margin: 6px 0 14px; font-size: clamp(24px, 3.5vw, 36px); }
.cpw-co-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; padding: 0; }
.cpw-co-steps li { margin: 0; opacity: .6; font-weight: 600; }
.cpw-co-steps li:before { content: attr(data-n); }
.cpw-co-steps li.done, .cpw-co-steps li.on { opacity: 1; }
.cpw-co-steps li.done:before { content: "\2713 "; color: var(--cpw-accent); }
.cpw-co-steps li.on { color: var(--cpw-accent); }
.cpw-co-head .cpw-min-order { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; margin: 0; }
.cpw-checkout > .woocommerce { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
@media (max-width: 782px) {
	.cpw-wrap { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
	.cpw-co-head { padding: 22px 18px; }
	.cpw-checkout > .woocommerce { padding: 14px; }
}
/* No underlines on any plugin button/link-button, in every state (beats theme link styles) */
.cpw-wrap a.cpw-btn, .cpw-wrap a.cpw-btn:link, .cpw-wrap a.cpw-btn:visited, .cpw-wrap a.cpw-btn:hover, .cpw-wrap a.cpw-btn:focus, .cpw-wrap a.cpw-btn:active,
.cpw-cta-row a, .cpw-cta-row a:hover, .cpw-cta-row a:focus, .cpw-lhero a, .cpw-band a, .cpw-gate a.cpw-btn { text-decoration: none !important; }
/* Outrank the theme's "underline links in page content" rule (needs !important + higher specificity) */
html body .entry-content.wp-block-post-content .cpw-wrap a.cpw-btn:not(.wp-block-button__link),
html body .entry-content.wp-block-post-content .cpw-wrap .cpw-cta-row a:not(.wp-block-button__link),
html body .entry-content.wp-block-post-content .cpw-wrap a.cpw-cat-tile:not(.wp-block-button__link),
html body .entry-content.wp-block-post-content .cpw-wrap .cpw-card a:not(.wp-block-button__link),
html body .entry-content.wp-block-post-content .cpw-wrap a.button:not(.wp-block-button__link),
html body .entry-content.wp-block-post-content .cpw-wrap button:not(.wp-block-button__link),
html body .entry-content.wp-block-post-content .cpw-wrap a.add_to_cart_button:not(.wp-block-button__link),
html body .entry-content.wp-block-post-content .cpw-wrap .cpw-lhero a:not(.wp-block-button__link),
html body .entry-content.wp-block-post-content .cpw-wrap .cpw-band a:not(.wp-block-button__link),
html body .entry-content.wp-block-post-content .cpw-wrap .cpw-gate a.cpw-btn:not(.wp-block-button__link) {
	text-decoration: none !important; text-decoration-line: none !important;
}

/* Wholesale checkout: no coupon entry (also hidden here in case a theme prints its own) */
.cpw-checkout .woocommerce-form-coupon-toggle, .cpw-checkout form.checkout_coupon, .cpw-checkout .showcoupon, .cpw-checkout .wc-block-components-totals-coupon, .cpw-cart .coupon { display: none !important; }

/* ===== Auth pages: login / register / forgot / reset ===== */
.cpw-auth { max-width: 1000px; padding: 32px 0; }
.cpw-auth-wide { max-width: 1120px; }
.cpw-auth-card {
	display: grid; grid-template-columns: 5fr 7fr; background: #fff; border-radius: 22px; overflow: hidden;
	border: 1px solid rgba(15,39,70,.08); box-shadow: 0 30px 70px -20px rgba(15,39,70,.35), 0 6px 18px rgba(15,39,70,.08);
	animation: cpw-rise .5s ease both;
}
@keyframes cpw-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cpw-auth-card { animation: none; } }

/* Brand panel */
.cpw-auth-side {
	background-color: var(--cpw-ink);
	background-image: linear-gradient(160deg, var(--cpw-ink), var(--cpw-primary)), var(--cpw-side-img, none);
	background-image: linear-gradient(160deg, color-mix(in srgb, var(--cpw-ink) 95%, transparent), color-mix(in srgb, var(--cpw-primary) 88%, transparent)), var(--cpw-side-img, none);
	position: relative; overflow: hidden; background-size: cover; background-position: center; color: #fff;
	padding: 52px 40px; display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.cpw-auth-orb { position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.cpw-auth-orb-a { width: 260px; height: 260px; background: rgba(123,224,207,.35); top: -90px; right: -80px; }
.cpw-auth-orb-b { width: 220px; height: 220px; background: rgba(76,130,255,.28); bottom: -90px; left: -70px; }
.cpw-auth-brand { position: relative; display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; color: var(--cpw-accent); }
.cpw-auth-side h2 { position: relative; color: #fff; margin: 0; font-size: 32px; line-height: 1.18; font-weight: 800; }
.cpw-perks { position: relative; list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.cpw-perks li { display: flex; gap: 14px; align-items: flex-start; padding: 0; margin: 0; }
.cpw-perks li:before { content: none; }
.cpw-perk-ico { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: var(--cpw-accent); }
.cpw-perks strong { display: block; font-size: 15px; }
.cpw-perks em { display: block; font-style: normal; font-size: 13px; opacity: .75; margin-top: 2px; }

/* Form panel */
.cpw-auth-main { padding: 52px 48px; align-self: center; }
.cpw-auth-head { margin-bottom: 26px; }
.cpw-auth-main h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; color: var(--cpw-primary); font-weight: 800; }
.cpw-auth-sub { margin: 0; color: #6b7280; font-size: 15px; }
.cpw-auth-form { gap: 18px; }
.cpw-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cpw-span2 { grid-column: 1 / -1; }
.cpw-auth-step { display: flex; align-items: center; gap: 10px; margin: 6px 0 -2px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cpw-primary-2); }
.cpw-auth-step span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cpw-primary); color: #fff; font-size: 12px; letter-spacing: 0; }

.cpw-auth .cpw-label { gap: 8px; font-size: 14px; color: #1f2937; }
.cpw-label-text em { font-weight: 400; font-style: normal; color: #9ca3af; }
.cpw-pw { position: relative; display: block; }
.cpw-pw .cpw-ico-svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; transition: color .15s; }
.cpw-pw:focus-within .cpw-ico-svg { color: var(--cpw-primary-2); }
.cpw-auth .cpw-pw input:not([type="checkbox"]) {
	width: 100%; box-sizing: border-box; padding: 14px 16px 14px 44px; border: 1.5px solid #e5e7eb; border-radius: 12px;
	background: #f9fafb; font-size: 15px; font-weight: 400; color: #111827; transition: border-color .15s, box-shadow .15s, background .15s;
}
.cpw-auth .cpw-pw input:not([type="checkbox"]):hover { border-color: #cbd5e1; }
.cpw-auth .cpw-pw input:not([type="checkbox"]):focus { outline: 0; background: #fff; border-color: var(--cpw-primary-2); box-shadow: 0 0 0 4px rgba(15,90,115,.14); }
.cpw-auth input[type="password"] { padding-right: 72px !important; }
.cpw-textarea { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1.5px solid #e5e7eb; border-radius: 12px; background: #f9fafb; font-size: 15px; font-weight: 400; font-family: inherit; resize: vertical; transition: border-color .15s, box-shadow .15s, background .15s; }
.cpw-textarea:focus { outline: 0; background: #fff; border-color: var(--cpw-primary-2); box-shadow: 0 0 0 4px rgba(15,90,115,.14); }
.cpw-pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: #eef2f7 !important; border: 0; border-radius: 999px; color: var(--cpw-primary-2) !important; font-weight: 600; font-size: 12px; cursor: pointer; padding: 6px 10px; }
.cpw-pw-toggle:hover { background: #e2e8f0 !important; }

.cpw-auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.cpw-check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; cursor: pointer; color: #4b5563; }
.cpw-check input { width: 16px; height: 16px; accent-color: var(--cpw-primary); }
.cpw-auth-row a, .cpw-auth-links a { color: var(--cpw-primary-2); font-weight: 600; text-decoration: none; }
.cpw-auth-row a:hover, .cpw-auth-links a:hover { text-decoration: underline; }
.cpw-auth .cpw-auth-btn, .cpw-auth a.cpw-auth-btn {
	display: block; width: 100%; box-sizing: border-box; text-align: center; padding: 15px 22px; border-radius: var(--cpw-btn-radius); font-size: 16px; font-weight: 800;
	background-color: var(--cpw-primary) !important; background-image: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-2)) !important; color: #fff !important; border: 0; box-shadow: 0 10px 22px -8px rgba(15,39,70,.55); transition: transform .15s, box-shadow .15s, filter .15s;
}
.cpw-auth .cpw-auth-btn:hover, .cpw-auth .cpw-auth-btn:focus { background-color: var(--cpw-primary-2) !important; color: #fff !important; transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 14px 26px -8px rgba(15,39,70,.6); }
.cpw-auth .cpw-auth-btn:active { transform: none; }
.cpw-auth .cpw-auth-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.cpw-auth-links { margin: 22px 0 0; text-align: center; color: #6b7280; font-size: 14px; }
.cpw-auth .cpw-notice { border-radius: 12px; }
.cpw-auth .cpw-min-order { margin-bottom: 4px; }
.cpw-recaptcha-note { margin: 0; font-size: 12px; color: #9ca3af; line-height: 1.5; text-align: center; }
.cpw-recaptcha-note a { color: inherit; text-decoration: underline; }

@media (max-width: 900px) {
	.cpw-auth-card { grid-template-columns: 1fr; }
	.cpw-auth-side { padding: 30px 24px; gap: 14px; }
	.cpw-auth-side h2 { font-size: 24px; }
	.cpw-perks { display: none; }
	.cpw-auth-main { padding: 30px 22px; }
}
@media (max-width: 560px) {
	.cpw-auth-grid { grid-template-columns: 1fr; }
}

/* ===== Mobile product listing: 2 products per row (shop, home best sellers) ===== */
@media (max-width: 640px) {
	.cpw-wrap .cpw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cpw-wrap .cpw-card { min-width: 0; border-radius: 10px; }
	.cpw-wrap .cpw-card-body { padding: 10px 10px 12px; gap: 4px; }
	.cpw-wrap .cpw-card-title { font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
	.cpw-wrap .cpw-card .cpw-sku { font-size: 11px; overflow-wrap: anywhere; }
	.cpw-wrap .cpw-card .cpw-price { font-size: 15px; }
	.cpw-wrap .cpw-card .cpw-price-tag { display: none; }
	.cpw-wrap .cpw-card .cpw-coa-link { font-size: 11px; line-height: 1.3; }
	.cpw-wrap .cpw-card .cpw-atc .button, .cpw-wrap .cpw-card .cpw-atc a.add_to_cart_button, .cpw-wrap .cpw-card a.button {
		padding: 9px 8px !important; font-size: 12.5px !important; line-height: 1.2 !important; white-space: normal;
	}
}

/* Mobile: let the single column shrink to the screen (1fr alone grows to its widest child) */
@media (max-width: 782px) {
	.cpw-wrap .cpw-layout { grid-template-columns: minmax(0, 1fr); }
	.cpw-wrap .cpw-main, .cpw-wrap .cpw-sidebar { min-width: 0; }
	.cpw-wrap .cpw-search { min-width: 0; }
	.cpw-wrap .cpw-search input[type="search"] { min-width: 0; width: 100%; }
	.cpw-wrap .cpw-search .cpw-btn { flex: 0 0 auto; }
}

/* Mobile cart: stacked rows so the quantity box is always visible */
.cpw-cart-table .cpw-qty { min-width: 64px; }
@media (max-width: 640px) {
	.cpw-wrap .cpw-cart-table, .cpw-wrap .cpw-cart-table tbody, .cpw-wrap .cpw-cart-table tr, .cpw-wrap .cpw-cart-table td { display: block; width: 100%; box-sizing: border-box; }
	.cpw-wrap .cpw-cart-table thead { display: none; }
	.cpw-wrap .cpw-cart-table tr { border: 1px solid #e5e7eb; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; background: #fff; }
	.cpw-wrap .cpw-cart-table td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
	.cpw-wrap .cpw-cart-table td::before { content: attr(data-label); font-weight: 600; color: #6b7280; text-align: left; }
	.cpw-wrap .cpw-cart-table td.cpw-c-name { display: block; text-align: left; font-weight: 700; }
	.cpw-wrap .cpw-cart-table td.cpw-c-name::before, .cpw-wrap .cpw-cart-table td.cpw-c-rm::before { content: none; }
	.cpw-wrap .cpw-cart-table td.cpw-c-rm { justify-content: flex-end; }
	.cpw-wrap .cpw-cart-table .cpw-qty { width: 90px !important; min-width: 90px; text-align: center; color: #111 !important; background: #fff !important; opacity: 1 !important; }
}

/* Card quantity stepper */
.cpw-wrap .cpw-atc { display: flex; flex-direction: column; gap: 8px; }
.cpw-qty-step { display: flex; align-items: stretch; width: 100%; max-width: 150px; border: 1px solid #d1d5db; border-radius: var(--cp-radius-pill, 999px); overflow: hidden; background: #fff; }
.cpw-qty-step .cpw-qty-btn { flex: 0 0 38px; border: 0 !important; background: #f3f7f8 !important; color: var(--cp-teal2, #0f4e63) !important; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.cpw-qty-step .cpw-qty-btn:hover, .cpw-qty-step .cpw-qty-btn:focus-visible { background: #e3eef1 !important; }
.cpw-qty-step .cpw-card-qty { flex: 1 1 auto; min-width: 0; width: 100%; border: 0 !important; border-left: 1px solid #e5e7eb !important; border-right: 1px solid #e5e7eb !important; border-radius: 0 !important; text-align: center; padding: 8px 2px !important; font-weight: 600; color: #111 !important; background: #fff !important; box-shadow: none !important; -moz-appearance: textfield; appearance: textfield; }
.cpw-qty-step .cpw-card-qty::-webkit-outer-spin-button, .cpw-qty-step .cpw-card-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 640px) {
	.cpw-qty-step { max-width: none; }
	.cpw-qty-step .cpw-qty-btn { flex-basis: 34px; }
}

/* Product page back button */
.cpw-back { margin: 0 0 8px; }
.cpw-back-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 1px solid #d1d5db; border-radius: var(--cp-radius-pill, 999px); background: #fff; color: var(--cp-teal2, #0f4e63) !important; font-weight: 600; text-decoration: none !important; }
.cpw-back-link:hover, .cpw-back-link:focus-visible { background: #f3f7f8; border-color: var(--cp-teal2, #0f4e63); }
@media (max-width: 360px) {
	.cpw-qty-step .cpw-qty-btn { flex-basis: 26px; font-size: 16px; }
	.cpw-qty-step .cpw-card-qty { font-size: 14px; padding: 8px 0 !important; }
}

/* Center the card quantity selector */
.cpw-wrap .cpw-atc .cpw-qty-step { align-self: center; margin-left: auto; margin-right: auto; }
.cpw-wrap .cpw-atc .cpw-qty-step { box-sizing: border-box; max-width: min(150px, 100%); }
@media (max-width: 640px) { .cpw-wrap .cpw-atc .cpw-qty-step { max-width: 100%; } }
