/* Keep the guide in the hero's layout so a long translation can grow the banner. */
.brand-strip.has-hero-guide {
    position: relative;
    isolation: isolate;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 238px;
    gap: 22px;
    align-items: center;
    min-height: 226px;
    height: auto;
    box-sizing: border-box;
    padding: 27px 28px 16px;
    margin-top: 13px;
}
.has-hero-guide:has(.catalog-lineup, .brand-lineup) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 238px; }
.has-hero-guide::before, .has-hero-guide :is(.catalog-workstation, .apex-workstation) { border-radius: inherit; }
.brand-strip.has-hero-guide .brand-copy { width: auto; min-width: 0; max-width: none; padding: 0; }
.has-hero-guide .brand-name { flex-wrap: wrap; }
.has-hero-guide :is(.catalog-workstation, .apex-workstation) { position: absolute; inset: 0 0 0 auto; width: 70%; height: 100%; z-index: -1; object-fit: cover; }
.brand-strip.has-hero-guide :is(.catalog-lineup, .brand-lineup) { position: relative; inset: auto; z-index: 1; width: 100%; height: 150px; padding: 0; margin: 0; align-self: center; }
.brand-strip.has-hero-guide .catalog-lineup { align-items: center; }
.brand-strip.has-hero-guide .hero-guide {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    padding: 43px 16px 12px;
    margin: 0;
    text-align: center;
    border: 1px solid #ffe0f486;
    border-top-color: #ffebfbd6;
    border-radius: 18px;
    color: #fff8fc;
    background: linear-gradient(122deg, #ffecf727, transparent 22%, #fff3fb11 23%, transparent 49%), linear-gradient(150deg, #67415a99, #2d192b93 65%, #2e1a29a8);
    -webkit-backdrop-filter: blur(3px) saturate(1.15) brightness(.88);
    backdrop-filter: blur(3px) saturate(1.15) brightness(.88);
    box-shadow: inset 1px 1px 2px #fff6, inset -1px -1px 2px #ffd5ec36, 0 3px 0 #98708970, 0 9px 18px #0c040c5c;
}
.hero-guide::before { content: ''; position: absolute; top: 28px; left: 50%; width: 70px; height: 10px; border-radius: 50%; transform: translateX(-50%); background: #1f101969; filter: blur(5px); }
.hero-guide .hero-husky { position: absolute; left: 50%; top: -48px; width: 88px; height: 88px; transform: translateX(-50%); object-fit: contain; pointer-events: none; filter: drop-shadow(1px 5px 4px #160b155c); }
.hero-guide .hero-bark { position: absolute; left: calc(50% + 34px); top: -21px; transform: rotate(6deg); padding: 5px 10px; border-radius: 54% 51% 48% 45%; color: #40132e; background: linear-gradient(155deg,#fff1f8,#ffd0e7); font-family: inherit; font-size: 15px; font-style: italic; font-weight: 800; line-height: 1; box-shadow: 0 2px 2px #27122142; }
.hero-bark::after { content: ''; position: absolute; left: 6px; bottom: -4px; width: 11px; height: 8px; background: #ffdaec; clip-path: polygon(34% 0,100% 0,0 100%); }
.hero-guide .hero-guide-label { display: block; font-size: 10px; line-height: 1.3; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: #ffc2e2; }
.brand-strip .hero-guide h2 { font-size: 21px; line-height: 1.12; font-weight: 720; letter-spacing: -.035em; color: inherit; margin: 4px 0; }
.brand-strip .hero-guide p { color: inherit; font-size: 13px; line-height: 1.35; margin: 0 auto 9px; max-width: 32ch; }
.brand-strip .hero-guide .hero-guide-action { display: block; box-sizing: border-box; width: 100%; padding: 9px 12px; min-height: 39px; border: 1px solid #ff74ba; border-radius: 8px; background: #ff208f; color: #1c0613; font: inherit; font-weight: 750; font-size: 14px; line-height: 1.25; text-align: center; cursor: pointer; text-decoration: none; box-shadow: inset 0 1px 0 #ffd2e894; }
.hero-guide-action:hover { filter: brightness(1.07); }
[data-theme="light"] .brand-strip .hero-guide { color: #30112a; background: linear-gradient(120deg,#fff9,transparent 42%),linear-gradient(145deg,#fff4fad9,#f6dcebd6); border-color: #b38b9f; border-top-color: #fff; }
[data-theme="light"] .hero-guide .hero-guide-label { color: #83214f; }
@media (min-width: 681px) and (max-width: 1020px) {
    .brand-strip.has-hero-guide { gap: 16px; padding-inline: 16px; grid-template-columns: minmax(0,1fr) 206px; }
    .has-hero-guide:has(.catalog-lineup, .brand-lineup) { grid-template-columns: minmax(0,1fr) minmax(0,.83fr) 206px; }
}
@media (max-width: 680px) {
    .brand-strip.has-hero-guide, .brand-strip.has-hero-guide:has(.catalog-lineup, .brand-lineup) {
        grid-template-columns: minmax(0,1fr); gap: 0; padding: 16px; margin-top: 4px;
    }
    .brand-strip.has-hero-guide :is(.brand-lineup, .catalog-lineup) { height: 96px; margin-top: 4px; }
    .brand-strip.has-hero-guide .hero-guide { width: min(100%, 300px); justify-self: center; margin-top: 43px; }
    .brand-strip.has-hero-guide :is(.apex-workstation, .catalog-workstation) { width: 100%; height: 67%; inset: auto 0 0; mask-image: linear-gradient(180deg, transparent, #000 38%); }
    .brand-strip.has-hero-guide::before { inset: 22% 0 0; height: auto; }
}

/* A perforated stub groups the redeemable code with the merchant destination. */
.profile-coupons, .ip .ip-sections > section.profile-coupons { margin-block: 12px; padding: 0; border: 0; background: transparent; }
.coupon-list { display: grid; gap: 14px; }
.coupon-ticket {
    --ticket-accent: var(--pink-ink, #ff6dbb);
    --ticket-line: color-mix(in srgb, var(--pink) 29%, var(--line));
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(164px,23%);
    overflow: hidden;
    border: 1px solid var(--ticket-line);
    border-radius: 12px;
    background: linear-gradient(106deg,color-mix(in srgb,var(--pink) 8%,var(--surface)),var(--surface) 66%);
    color: var(--text);
}
.coupon-ticket[hidden] { display: none; }
.coupon-main { min-width: 0; padding: 16px 22px; }
.coupon-id { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--heading); }
.coupon-seal { flex: none; width: 34px; height: 27px; display: grid; place-items: center; background: #f9f5f8; color: #80244e; border-radius: 5px; }
.coupon-seal:has(svg) { background: color-mix(in srgb, var(--pink) 12%, transparent); color: var(--ticket-accent); }
.coupon-seal svg { width: 20px; height: 20px; }
.coupon-seal img { width: 26px; height: 20px; object-fit: contain; }
.coupon-kind { font-size: 11px; line-height: 1.25; padding: 3px 7px; border-radius: 5px; background: color-mix(in srgb,var(--pink) 12%,transparent); color: var(--ticket-accent); }
.coupon-ticket .coupon-main h3 { font-size: clamp(18px,2vw,23px); letter-spacing: -.03em; line-height: 1.18; margin: 8px 0 3px; color: var(--heading); }
.coupon-ticket .coupon-main p, .coupon-ticket details { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.coupon-ticket summary, .coupon-more { cursor: pointer; font-size: 13px; color: var(--ticket-accent, var(--pink-ink)); font-weight: 650; }
.coupon-ticket details { margin-top: 8px; }
.coupon-stub { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 6px; border-inline-start: 1px dashed var(--ticket-line); padding: 16px clamp(12px,2vw,25px); background: color-mix(in srgb, var(--pink) 4%,transparent); }
.coupon-ticket .coupon-code { display: flex; width: 100%; align-items: stretch; min-height: 42px; padding: 0; font: inherit; border: 1px dashed var(--ticket-accent); color: var(--heading); background: var(--surface); border-radius: 7px; cursor: pointer; }
.coupon-code code { align-self: center; flex: 1; padding: 8px; font: 700 15px/1.25 ui-monospace,monospace; letter-spacing: .07em; overflow-wrap: anywhere; user-select: all; }
.coupon-copy-icon { width: 38px; flex: none; display: grid; place-items: center; color: var(--ticket-accent); background: color-mix(in srgb, var(--pink) 9%, transparent); border-inline-start: 1px dashed var(--ticket-line); }
.coupon-copy-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.coupon-code .copied-icon, .coupon-code[data-copied] .copy-icon { display: none; }
.coupon-code[data-copied] .copied-icon { display: block; }
.coupon-ticket .coupon-destination { display: block; text-align: center; font-size: 14px; font-weight: 700; color: var(--ticket-accent); padding: 7px; text-decoration: underline; text-underline-offset: 3px; }
.coupon-destination:only-child { border: 1px solid var(--ticket-line); border-radius: 7px; text-decoration: none; background: var(--surface); }
.coupon-feedback:not(.needs-manual-copy) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.coupon-feedback.needs-manual-copy { font-size: 12px; }
.coupon-more { display: block; margin: 8px 0; }
.coupon-more .coupon-ticket { margin-top: 8px; }
@media (max-width: 620px) {
    .coupon-ticket { grid-template-columns: minmax(0,1fr); }
    .coupon-main { padding: 14px 16px; }
    .coupon-stub { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; border-inline-start: 0; border-top: 1px dashed var(--ticket-line); padding: 10px 16px; }
    .coupon-ticket .coupon-code { width: auto; max-width: 100%; min-width: 124px; }
}
.coupon-seal:has(img[src*="native-apex-trader-funding"]) { background: #2b202c; }
.coupon-stub { position: relative; }
.coupon-stub::before, .coupon-stub::after {
    content: ''; position: absolute; left: -7px; width: 12px; height: 12px; border: 1px solid var(--ticket-line);
    border-radius: 100%; background: var(--bg); pointer-events: none;
}
.coupon-stub::before { top: -8px; }
.coupon-stub::after { bottom: -8px; }
@media (max-width: 620px) {
    .coupon-stub::before, .coupon-stub::after { top: -7px; bottom: auto; }
    .coupon-stub::after { left: auto; right: -7px; }
}
