/*
 * Sale campaign lines (inc/campaign.php). Loaded only while a campaign runs.
 * Every element here is printed only by a campaign, so none of it shows
 * outside a sale.
 */

/* Announcement bar: the campaign line is a link to the shop. */
.fy-announce a{color:inherit;text-decoration:none}
.fy-announce a:hover{text-decoration:underline}

/* Homepage and shop bundle section. */
.fy-campaign-sub{margin:8px 0 0;font-size:15px;color:var(--muted);line-height:1.5}
.fy-campaign-card{margin:14px 0 12px;padding:8px 12px;border-radius:10px;background:var(--blue-soft);border:1px solid #BFDBFE;color:#1E3A8A;font-size:13px;font-weight:600;line-height:1.45}

/* Shop page strip and small print. */
/* Same gutters as the shop header and sections (front-page.css). */
.fy-campaign-band{padding:0 40px}
@media(max-width:1024px){.fy-campaign-band{padding:0 24px}}
.fy-campaign-strip{margin:20px 0 0;padding:12px 16px;border-radius:12px;background:var(--blue-soft);border:1px solid #BFDBFE;color:#1E3A8A;font-size:14px;font-weight:600;line-height:1.5;text-align:center}
.fy-campaign-terms{margin:16px 0 0;font-size:12px;color:var(--muted);line-height:1.55}
.fy-shop-page .fy-campaign-terms{margin:8px 0 40px}

/* Product pages, under the price. */
.fy-campaign-price{margin:-4px 0 16px}
.fy-campaign-note{margin:0;padding:8px 12px;border-radius:10px;background:var(--blue-soft);border:1px solid #BFDBFE;color:#1E3A8A;font-size:14px;font-weight:600;line-height:1.45}
.fy-campaign-link{display:inline-block;margin-top:6px;font-size:13px;font-weight:600;color:var(--blue);text-decoration:none}
.fy-campaign-link:hover{text-decoration:underline}

/* The code wherever it appears outside a link: tap to copy. */
.fy-code-copy{position:relative;display:inline;margin:0;padding:1px 22px 1px 7px;border:1.5px dashed currentColor;border-radius:6px;background:rgba(255,255,255,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e90ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") no-repeat right 6px center/12px 12px;color:inherit;font:inherit;font-weight:700;letter-spacing:.02em;line-height:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.fy-code-copy:hover{background-color:#fff}
.fy-code-copy:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.fy-code-copy.is-copied::before{content:"Copied";position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:3px 8px;border-radius:6px;background:var(--text);color:#fff;font-size:11px;font-weight:600;letter-spacing:0;line-height:1.3;white-space:nowrap;pointer-events:none}
.fy-code-copy-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Cart, above the coupon field. */
/* Sits inside the cart card between the items and the coupon bar: same 20px
   inset as the coupon bar, or the text touches the card's border. No top
   padding: the cart table above already has a 24px bottom margin. */
.fy-campaign-cart{margin:0;padding:0 20px 20px;font-size:13px;line-height:1.5}
.fy-campaign-cart p{margin:0 0 4px}
.fy-campaign-cart p:last-child{margin-bottom:0}
.fy-campaign-cart-hint{font-weight:600;color:#1E3A8A}
.fy-campaign-cart-upsell a{color:var(--blue);font-weight:600;text-decoration:none}
.fy-campaign-cart-upsell a:hover{text-decoration:underline}
