/* Colours sampled from the RGB fill operators in Mars_Wrigleys_2026_UI_V4.ai, so they match the
   design exactly rather than being eyeballed from a screenshot. */
:root {
    --extra-cyan: #02B1F1;
    --extra-pink: #FE208F;
    --extra-navy: #121830;
    --extra-star: #F6CB15;
    --fieldbackground: #CECECE;
    --popupbackground: #FFFFFF;
    --validationcolour: #C10F34;
}

body {
    max-height: 700px !important;
}

/* No background artwork was supplied and the design uses a flat cyan field, so this is a colour
   rather than a background-image. */
#gamezone {
    background-color: var(--extra-cyan);
}

/* Extra Plus lockup pinned to the bottom of every step */
#brands-logos {
    position: absolute;
    bottom: 0;
    max-width: 220px;
    padding-bottom: 20px;
}

/* Same lockup used large inside the step 1 popup */
#lockup {
    max-width: 260px;
    margin-bottom: 10px;
}

.popup {
    background-color: var(--popupbackground);
    border-radius: 20px;
    color: var(--extra-navy);
}

#step3 .popup {
    background-color: var(--popupbackground) !important;
}

h2 {
    color: var(--extra-navy) !important;
    font-size: 1.6em !important;
    font-weight: 700;
}

.step-validation {
    color: var(--validationcolour);
}

/* ---------------------------------------------------------------- form fields */

.asda-text-field {
    background-color: var(--fieldbackground);
    border: none;
    border-radius: 6px;
    color: var(--extra-navy);
    text-align: center;
}

    .asda-text-field::placeholder {
        color: #6b6b6b;
        opacity: 1;
    }

/* The "?" affordance sits inside the field's right-hand edge, as drawn on steps 8 and 9 of the
   design. The wrapper is what positions it, so the input keeps its own full-width sizing. */
.field-with-help {
    position: relative;
    display: block;
}

.field-help {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--extra-navy);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    cursor: pointer;
}

.field-with-help .asda-text-field {
    padding-right: 40px;
}

/* ---------------------------------------------------------------- buttons */

.asda-btn {
    --tw-border-opacity: 1;
    background-color: var(--extra-pink);
    border: 1px solid var(--extra-pink);
    border-radius: 30px;
    color: #ffffff;
    display: inline-block;
    font-family: Gibson-SemiBold, sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 24px !important;
    min-width: 200px;
    padding: 12px 16px;
    text-align: center;
    text-transform: uppercase;
    transition-duration: .5s;
    transition-property: all;
    transition-timing-function: linear;
    height: 50px;
}

    .asda-btn:hover {
        background-color: var(--extra-navy);
        border-color: var(--extra-navy);
        color: #ffffff;
        transition-duration: .5s;
        transition-property: all;
        transition-timing-function: linear;
    }

/* The design keeps the lose screen's shop-now button pink and sentence case, unlike the green
   treatment other campaigns use. */
.asda-btn.shop-now {
    background-color: var(--extra-pink) !important;
    border-color: var(--extra-pink) !important;
    text-transform: none;
}

    .asda-btn.shop-now:hover {
        background-color: var(--extra-navy) !important;
        border-color: var(--extra-navy) !important;
    }

/* ---------------------------------------------------------------- terms accordion */

/* The hosted wrapper — header, terms accordion, footer — is deliberately left to hosted.css.
   The design PDF draws it with a pink bar, but that is not how the hosted page is meant to look,
   so nothing here overrides it. */

.FullTermsTitle {
    font-weight: 700;
    margin: 16px 0 8px;
}

/* ---------------------------------------------------------------- flavour carousel */

.flavour-picker {
    position: relative;
    padding: 0 34px;
}

.flavour-prev,
.flavour-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--extra-pink);
    color: #ffffff;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.flavour-prev {
    left: 0;
}

.flavour-next {
    right: 0;
}

/* site.css pads every present-wrapper by 20px, which costs a lot of pack width once three of them
   share the popup. These packs are wide and flat rather than tall, so they also don't need the
   bottom-alignment trick other campaigns use for standing prize renders. */
.present-wrapper {
    cursor: pointer;
    padding: 6px !important;
}

    .present-wrapper img {
        max-height: 200px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: inline-block !important;
    }

/* ---------------------------------------------------------------- win / lose screens */

.win-prize-img {
    max-width: 260px;
    margin-bottom: 10px;
}

.win-star {
    max-width: 170px;
}

#loose-range {
    display: block;
    max-width: 400px;
    margin: 0 auto 10px;
}

/* ---------------------------------------------------------------- responsive */

@media only screen and (max-width: 768px) {
    #brands-logos {
        max-width: 170px;
    }

    #lockup {
        max-width: 100%;
    }

    .present-wrapper img {
        max-height: 200px;
    }

    .win-prize-img {
        max-width: 200px;
    }

    .win-star {
        max-width: 140px;
    }

    #loose-range {
        max-width: 100%;
    }
}

@media only screen and (max-width: 375px) {
    #step4-win-button {
        font-size: 15px !important;
    }
}
