/*
 * Niko Neko Combo Manager — storefront layout (v1.1.1, theme-native).
 *
 * - Typography is NOT set here: the box inherits the theme's body font; the title is an <h3>
 *   (theme heading font/weight/case/letter-spacing) at a box-appropriate size; prices use
 *   WooCommerce's native .price/<del>/<ins> markup so the theme's price styles apply.
 * - The button carries the theme's `button alt` classes; no colours/fonts are set here.
 * - Box colours and any administrator overrides come from Appearance Settings
 *   (printed once per page as <style id="nncm-appearance-css">, scoped to .nncm-deals).
 * - Every selector is scoped to .nncm-* classes (enforced by a unit test).
 */
.nncm-deals { margin: 1.25em 0 1.5em; clear: both; max-width: 100%; }
.nncm-deals .nncm-deal { box-sizing: border-box; max-width: 100%; overflow-wrap: anywhere; padding: 1em 1.15em 1.15em; margin: 0 0 1em; border: 2px dashed #1f6b3a; border-radius: 6px; background: #f6fbf7; }
.nncm-deals .nncm-deal > :last-child { margin-bottom: 0; }

/* 1. Hero */
.nncm-deals .nncm-deal__hero { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: contain; margin: 0 0 .85em; border-radius: 4px; background: transparent; } /* Canvas colour/opacity is part of the image itself (Appearance → C). */

/* 2. Badges (plugin badges keep their own compact style) */
.nncm-deals .nncm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .5em; }
.nncm-deals .nncm-badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #1f6b3a; }
.nncm-deals .nncm-badge--eb { background: #d63638; }

/* 3. Title: theme heading styles, sized for a box (the theme's own h3 is 228%) */
.nncm-deals .nncm-deal h3.nncm-deal__title { margin: 0 0 .5em; padding: 0; font-size: 1.15em; line-height: 1.35; }

/* 4. Items */
.nncm-deals .nncm-deal__items { margin: 0 0 .75em; padding: 0; list-style: none; }
.nncm-deals .nncm-deal__items li { margin: 0 0 .25em; padding: 0; }
.nncm-deals .nncm-deal__qty { display: inline-block; min-width: 2.2em; opacity: .75; }
.nncm-deals .nncm-this { opacity: .65; font-size: .9em; }

/* 5. Prices (theme .price rules provide colour/size) */
.nncm-deals .nncm-deal .nncm-deal__price { margin: 0 0 .25em; line-height: 1.3; }
.nncm-deals .nncm-deal .nncm-deal__price del { margin-right: .35em; opacity: .6; }
.nncm-deals .nncm-deal .nncm-deal__price ins { text-decoration: none; }
.nncm-deals .nncm-deal__save { margin: 0 0 .35em; font-size: .9em; }

/* 6. Early Bird expiry */
.nncm-deals .nncm-deal__ends { margin: 0 0 .35em; font-size: .85em; opacity: .8; }

/* 7. Button: theme `button alt` styles apply; only layout here */
.nncm-deals .nncm-add-bundle-form { margin: .85em 0 0; }
.nncm-deals .nncm-add-bundle-form button.nncm-add-bundle { max-width: 100%; min-height: 44px; white-space: normal; cursor: pointer; }
.nncm-deals .nncm-add-bundle-form button.nncm-add-bundle--full { display: block; width: 100%; }
.nncm-deals .nncm-add-bundle-form button.nncm-add-bundle[disabled] { opacity: .65; cursor: wait; }
.nncm-deals .nncm-add-bundle-msg { margin: .6em 0 0; font-size: .92em; }
.nncm-deals .nncm-add-bundle-msg:empty { display: none; }
.nncm-deals .nncm-add-bundle-msg--ok { color: #1f6b3a; }
.nncm-deals .nncm-add-bundle-msg--info { color: #1d4f91; }
.nncm-deals .nncm-add-bundle-msg--error { color: #b32d2e; }
.nncm-deals .nncm-add-bundle-msg a { text-decoration: underline; margin-left: 6px; }
.nncm-deals .nncm-add-bundle-msg button.nncm-add-another { margin: 6px 0 0; padding: 6px 12px; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: inherit; font: inherit; font-size: 13px; text-transform: none; text-shadow: none; cursor: pointer; }

/* Cart/checkout summary */
.nncm-summary th .nncm-badge { margin-bottom: 4px; }
.nncm-summary__line { font-size: .92em; }

/* Mobile: compact, full-width tappable button, no horizontal overflow */
@media (max-width: 600px) {
	.nncm-deals .nncm-deal { padding: .8em .85em .9em; }
	.nncm-deals .nncm-deal__hero { margin-bottom: .6em; }
	.nncm-deals .nncm-add-bundle-form button.nncm-add-bundle { display: block; width: 100%; white-space: normal; }
}
