/* Shared theme for the homepage, store pages and coupon collections. */
html body {
    --cyan: #0fc0e9;
    --green: #a0ce5b;
    --line: #e6e6e6;
    --muted: #58616a;
    --width: min(1180px, calc(100% - 40px));
    max-width: none;
    margin: 0;
    padding: 0;
    font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
    color: #1a1a1a;
    background: #f9f9f9;
}
body *, body *::before, body *::after { box-sizing: border-box; }
.pk-bar { background: var(--cyan); }
.pk-bar-inner, body > main, body > nav, body > footer { width: var(--width); margin-inline: auto; }
.pk-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.pk-brand, .pk-bar nav a { text-decoration: none; color: #093744; }
.pk-brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -.045em; }
.pk-ticket { display: grid; place-items: center; width: 2.35rem; height: 1.7rem; background: white; color: #123b48; font-size: 1.15rem; border-radius: 4px; transform: rotate(-8deg); }
.pk-bar nav { display: flex; align-items: center; flex-wrap: wrap; column-gap: 1.6rem; }
.pk-bar nav a { display: inline-block; padding-block: .5rem; font-size: .9rem; font-weight: 650; }
.pk-bar a:hover { text-decoration: underline; }
a { color: #086378; text-underline-offset: .15em; }
:where(a, summary):focus-visible { outline: 3px solid #155969; outline-offset: 3px; }
body > nav { margin-block: 1.25rem; color: var(--muted); font-size: .875rem; }
body > main { padding-bottom: 2.5rem; }
main > header { padding-block: 1rem; }
main > header img { background: white; border: 1px solid var(--line); border-radius: 3px; padding: 4px; }
main h1 { font-size: clamp(1.15rem, 3vw, 1.65rem); text-transform: uppercase; }
main h2 { font-size: clamp(1.15rem, 2.3vw, 1.55rem); }
main > section { margin-block: 1.6rem; }
main > section:not([aria-labelledby="offers"], [aria-labelledby="popular-coupons"], [aria-labelledby="collection-offers"]) { padding: 1.15rem 1.5rem; background: white; border: 1px solid var(--line); border-radius: 3px; }
main > section > :first-child { margin-top: 0; }
.pk-offer {
    background: white; border: 1px solid var(--line); border-radius: 3px;
    display: grid; grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr) minmax(10rem, 13rem);
    align-items: center; gap: 1.5rem; margin-bottom: 1rem; padding: 1.5rem; min-height: 126px;
}
.pk-benefit { align-self: stretch; display: grid; align-content: center; justify-items: center; border-right: 1px solid var(--line); padding-right: 1.2rem; text-align: center; }
.pk-benefit > span:first-child { text-transform: uppercase; letter-spacing: .09em; font-size: .7rem; font-weight: 700; color: var(--muted); }
.pk-benefit p { font-size: 0; margin: 0; }
.pk-benefit strong, .pk-benefit-icon { display: block; font-size: clamp(1.2rem, 2.4vw, 1.85rem); line-height: 1.25; font-weight: 750; }
.pk-store-link { font-size: .875rem; }
.pk-copy h3 { font-size: clamp(1rem, 1.8vw, 1.35rem); line-height: 1.28; margin: .15rem 0 .4rem; }
.pk-copy .coupon-label { display: inline-block; margin: 0 0 .35rem; padding: .12rem .5rem; background: #e6f8fc; color: #155465; font-size: .75rem; border-radius: 3px; }
.pk-terms summary { width: fit-content; cursor: pointer; color: #156578; font-size: .9rem; }
.pk-terms:not(:has(.article-text, .coupon-conditions)) { display: none; }
.pk-terms .article-text, .pk-terms dl { margin: .5rem 0; }
.pk-terms dt { font-weight: 650; }
.pk-terms dd { margin: 0 0 .4rem; }
.pk-date { color: var(--muted); font-size: .8rem; margin: .5rem 0 0; }
.pk-actions { display: grid; gap: .4rem; }
.pk-code summary, .pk-actions > a { padding: .7rem .6rem; text-align: center; cursor: pointer; border-radius: 3px; font-size: .82rem; font-weight: 750; color: #21330c; background: var(--green); text-decoration: none; }
.pk-code summary { list-style: none; }
.pk-code summary::-webkit-details-marker { display: none; }
.pk-code summary:hover, .pk-actions > a:hover { background: #b2da77; }
.pk-code + a { background: #eef0f1; color: #224250; }
.pk-code + a:hover { background: #dce9eb; }
.pk-code p { margin: .4rem 0 0; padding: .45rem; border: 1px dashed #82a44c; text-align: center; font-size: .85rem; }
.pk-code code { font-weight: 750; user-select: all; }
body > footer { padding-bottom: 2rem; }
@media (max-width: 700px) {
    html body { --width: calc(100% - 28px); }
    .pk-bar-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 0; padding-block: .6rem .3rem; }
    .pk-bar nav { column-gap: 1rem; }
    .pk-offer { padding: 1rem; grid-template-columns: 4.8rem minmax(0, 1fr); gap: .85rem; }
    .pk-benefit { padding-right: .65rem; }
    .pk-actions { grid-column: 1 / -1; }
    .pk-actions:empty { display: none; }
    main > section:not([aria-labelledby="offers"], [aria-labelledby="popular-coupons"], [aria-labelledby="collection-offers"]) { padding: 1rem; }
}
