/* Boxman Promos — brand palette: green #65c63c, blue #2790ff, dark grey #454748, pale green #dcf6d0 */
.bxp-slot:empty { display: none; }

/* Top bar (above the blue header bar) */
.bxp-topbar { position: relative; font-size: 0.95rem; font-weight: 600; line-height: 1.35; text-align: center; padding: 0.6rem 2.75rem 0.6rem 1rem; }
.bxp-topbar-inner { max-width: 1900px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.35rem 1rem; }
.bxp-topbar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bxp-topbar-sale b { font-weight: 800; }
.bxp-sep { opacity: 0.6; }

/* Buttons */
.bxp-btn { display: inline-block; font-weight: 700; text-decoration: none !important; border-radius: 9999px; padding: 0.45rem 1.1rem; line-height: 1.2; transition: opacity 0.15s, transform 0.15s; }
.bxp-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.bxp-btn-bar, .bxp-btn-banner { background: #fff; color: #454748; }
.bxp-btn-bar { padding: 0.3rem 0.85rem; font-size: 0.85rem; }
.bxp-btn-banner { margin-top: 0.85rem; }
.bxp-btn-modal { margin-top: 1rem; color: #fff; }

/* Close buttons */
.bxp-close { position: absolute; top: 50%; right: 0.6rem; transform: translateY(-50%); background: transparent; border: 0; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0.25rem 0.5rem; opacity: 0.8; }
.bxp-close:hover { opacity: 1; }

/* Homepage banner */
.bxp-banner { position: relative; display: flex; gap: 1.5rem; align-items: center; border-radius: 1rem; padding: 1.5rem 1.75rem; margin: 0 0 1.5rem; }
.bxp-banner .bxp-close { top: 0.75rem; transform: none; }
.bxp-banner-media img { display: block; max-width: 220px; height: auto; border-radius: 0.75rem; }
.bxp-banner-body { flex: 1; min-width: 0; }
.bxp-headline { margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: inherit; }
.bxp-text { font-size: 1rem; line-height: 1.5; }
.bxp-text p { margin: 0 0 0.5rem; }
.bxp-text p:last-child { margin-bottom: 0; }
.bxp-text a { color: inherit; text-decoration: underline; }

/* "Current sales" product grid (white cards whatever the promo colour) */
.bxp-sales { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.bxp-sale a { display: flex; flex-direction: column; gap: 0.25rem; height: 100%; background: #fff; color: #454748; border-radius: 0.75rem; padding: 0.75rem; text-decoration: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); transition: transform 0.15s; }
.bxp-sale a:hover { transform: translateY(-2px); }
.bxp-sale img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0.5rem; margin-bottom: 0.25rem; }
.bxp-sale-pct { align-self: flex-start; background: #65c63c; color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 9999px; padding: 0.2rem 0.55rem; }
.bxp-sale-name { font-size: 0.85rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bxp-sale-price { font-size: 0.95rem; font-weight: 800; color: #2790ff; }
.bxp-sale-price s { color: #8a8d8f; font-weight: 500; margin-right: 0.3rem; }
.bxp-sale-ends { font-size: 0.72rem; color: #6b6e70; }

/* Popup */
.bxp-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(69, 71, 72, 0.6); display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; transition: opacity 0.2s; }
.bxp-overlay.bxp-show { opacity: 1; }
.bxp-modal { position: relative; background: #fff; color: #454748; width: 100%; max-width: 560px; max-height: calc(100vh - 2rem); overflow: auto; border-radius: 1rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); transform: translateY(12px); transition: transform 0.2s; }
.bxp-show .bxp-modal { transform: none; }
.bxp-close-modal { top: 0.6rem; right: 0.6rem; transform: none; color: #fff; background: rgba(0, 0, 0, 0.4); border-radius: 9999px; width: 2rem; height: 2rem; padding: 0; z-index: 2; font-size: 1.4rem; }
.bxp-modal-media img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }
.bxp-modal-band { padding: 1.1rem 3.25rem 1.1rem 1.5rem; }
.bxp-modal-band .bxp-headline { font-size: 1.6rem; margin: 0; }
.bxp-ends { display: block; margin-top: 0.25rem; font-size: 0.85rem; font-weight: 600; opacity: 0.9; }
.bxp-modal-body { padding: 1.25rem 1.5rem 1.5rem; }
.bxp-modal-body .bxp-sales { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
body.bxp-open { overflow: hidden; }

@media (max-width: 640px) {
	.bxp-topbar { font-size: 0.85rem; padding-right: 2.5rem; }
	.bxp-banner { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
	.bxp-banner-media img { max-width: 100%; }
	.bxp-headline { font-size: 1.25rem; }
	.bxp-modal-band .bxp-headline { font-size: 1.3rem; }
	.bxp-sales, .bxp-modal-body .bxp-sales { grid-template-columns: repeat(2, 1fr); }
}

/* "On Sale" tab in the category bar (boxman-core) — green until it is the open tab */
.bmpp-catbar .bmpp-catbar-tab[data-pane="on-sale"]:not(.is-open) { color: #3e8420; font-weight: 700; }
.bmpp-catbar .bmpp-catbar-tab[data-pane="on-sale"]:not(.is-open):hover { color: #3e8420; background: #dcf6d0; }
.bmpp-catbar .bmpp-catbar-tab[data-pane="on-sale"].is-open { color: #fff; background: #65c63c; border-bottom-color: #65c63c; }

/* Mix & match nudge above the (Blocks) cart */
.bxp-mix-notice { max-width: 1280px; width: calc(100% - 32px); margin: 16px auto 0; padding: 0.8rem 1.1rem; border-radius: 0.6rem; font-weight: 600; font-size: 0.95rem; }
.bxp-mix-off { background: #cfe7ff; color: #2790ff; }
.bxp-mix-on { background: #dcf6d0; color: #3e8420; }
