/* ==========================================================================
   The gift card page a buyer prints or forwards and a recipient claims from.
   Sized for a phone first, then a laptop, then paper.
   The referral page is built on these styles too (referral.css adds its extras).
   ========================================================================== */

@font-face {
    font-family: 'GothamRounded-Book';
    src: url('../fonts/customer/GothamRounded-Book.woff') format('woff'),
         url('../fonts/customer/GothamRounded-Book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GothamRounded-Bold';
    src: url('../fonts/customer/GothamRounded-Bold.woff') format('woff'),
         url('../fonts/customer/GothamRounded-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 16px;
    background: #eef4f9;
    color: #444444;
    font-family: 'GothamRounded-Book', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
}

.gift {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(40, 90, 130, 0.12);
}

.gift a {
    color: #34b2ff;
}

.gift-highlight {
    color: #34b2ff;
}

/* The amount sits inside the crest's circle, above its ribbon */
.gift-crest {
    position: relative;
    width: 250px;
    max-width: 70%;
    margin: 0 auto 24px;
}

.gift-crest img {
    display: block;
    width: 100%;
    height: auto;
}

.gift-value {
    position: absolute;
    top: 38%;
    left: 0;
    width: 100%;
    margin: 0;
    transform: translateY(-50%);
    color: #ffffff;
    font-family: 'GothamRounded-Bold', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 44px;
    line-height: 1;
    text-align: center;
}

.gift-greeting {
    margin: 0 0 8px;
    color: #34b2ff;
    font-size: 40px;
    font-style: italic;
    font-weight: normal;
    line-height: 1.1;
    text-align: center;
    overflow-wrap: anywhere;
}

.gift-sub-greeting {
    margin: 0 0 24px;
    font-size: 26px;
    line-height: 1.2;
    text-align: center;
}

.gift-text {
    margin: 0 0 16px;
}

.gift-greeting + .gift-text {
    margin-top: 16px;
}

.gift-small {
    font-size: 15px;
    color: #6b7785;
}

.gift-code {
    font-family: 'GothamRounded-Bold', "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.gift-message {
    margin: 0 0 24px;
    padding: 12px 16px;
    border-left: 4px solid #34b2ff;
    background: #f4f9fd;
    font-style: italic;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.gift-note {
    margin: 0 0 24px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff7e0;
}

.gift-claim {
    margin: 0 0 24px;
    padding: 20px 16px;
    border-radius: 12px;
    background: #f4f9fd;
    text-align: center;
}

.gift-claim .gift-button {
    max-width: 340px;
    margin: 0 auto;
}

.gift-claim h2 {
    margin: 0 0 12px;
    font-family: 'GothamRounded-Bold', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: normal;
}

.gift-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gift-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 18px;
    border: 2px solid #34b2ff;
    border-radius: 8px;
    background: #34b2ff;
    color: #ffffff;
    font-family: 'GothamRounded-Bold', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.gift a.gift-button {
    color: #ffffff;
}

/* The display above would otherwise beat the hidden attribute that the page scripts set */
.gift-button[hidden] {
    display: none;
}

/* On the sample page the claim buttons are drawn but go nowhere */
.gift span.gift-button {
    cursor: default;
}

.gift-button-quiet,
.gift a.gift-button-quiet {
    background: #ffffff;
    color: #34b2ff;
}

.gift-actions {
    margin-top: 24px;
}

.gift-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e3ebf2;
    text-align: center;
}

.gift-footer img {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
}

.gift-footer p {
    margin: 0;
}

/* Laptop and up */
@media screen and (min-width: 700px) {
    body {
        padding: 40px 16px;
        font-size: 19px;
    }

    .gift {
        padding: 48px 56px;
    }

    .gift-greeting {
        font-size: 56px;
    }

    .gift-sub-greeting {
        font-size: 34px;
    }

    .gift-actions {
        flex-direction: row;
        justify-content: center;
    }

    .gift-actions .gift-button {
        flex: 0 1 250px;
    }
}

/* Paper: the card alone, without the buttons */
@media print {
    body {
        padding: 0;
        background: #ffffff;
    }

    .gift {
        max-width: none;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .gift-screen-only {
        display: none;
    }

    .gift-message {
        background: none;
    }
}
