/**
 * Highway Heroes campaign thank-you page.
 * Plugin version: 1.0.29
 */

.khh-thanks {
    --khh-navy: #001b40;
    --khh-blue: #0081f6;
    --khh-cyan: #20c7e8;
    --khh-orange: #d44a02;
    --khh-light: #f5f8fc;
    --khh-border: #dce5ef;
    --khh-text: #243447;

    max-width: 1080px;
    margin: 40px auto 70px;
    padding: 0 24px;
    color: var(--khh-text);
    font-size: 17px;
    line-height: 1.6;
}

.khh-thanks *,
.khh-thanks *::before,
.khh-thanks *::after {
    box-sizing: border-box;
}

.khh-thanks__hero {
    position: relative;
    overflow: hidden;
    padding: 52px 50px;
    border-radius: 24px;
    background: var(--khh-navy);
    color: #fff;
}

.khh-thanks__eyebrow {
    margin-bottom: 12px;
    color: var(--khh-cyan);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.khh-thanks__hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 800;
}

.khh-thanks__lead {
    max-width: 760px;
    margin: 0 0 30px;
    color: rgba(255,255,255,.9);
    font-size: 20px;
    line-height: 1.55;
}

.khh-thanks__status {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 12px;
    color: #fff;
    font-weight: 600;
}

.khh-thanks__tick {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--khh-cyan);
    color: var(--khh-navy);
    font-weight: 900;
    line-height: 1;
}

.khh-thanks__section,
.khh-thanks__receipt {
    margin-top: 34px;
}

.khh-thanks__section h2,
.khh-thanks__receipt h2 {
    margin: 0 0 20px;
    color: var(--khh-navy);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

.khh-thanks__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.khh-thanks__card {
    padding: 26px;
    border: 1px solid var(--khh-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(0,27,64,.07);
}

.khh-thanks__card h3 {
    margin: 0 0 10px;
    color: var(--khh-blue);
    font-size: 21px;
    font-weight: 800;
}

.khh-thanks__card p {
    margin: 0;
}

.khh-thanks__receipt {
    padding: 30px;
    border: 1px solid var(--khh-border);
    border-radius: 20px;
    background: var(--khh-light);
}

.khh-thanks__receipt .charitable-donation-receipt {
    margin-top: 10px;
}

.khh-thanks__footer {
    margin-top: 34px;
    padding: 30px;
    border-radius: 18px;
    background: var(--khh-navy);
    color: #fff;
    text-align: center;
}

.khh-thanks__footer strong {
    display: block;
    font-size: 20px;
}

.khh-thanks__footer p {
    margin: 18px 0 0;
}

.khh-thanks__footer a {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 8px;
    background: var(--khh-orange);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}

.khh-thanks__footer a:hover,
.khh-thanks__footer a:focus {
    color: #fff !important;
    text-decoration: none;
    opacity: .9;
}

.khh-thanks--invalid {
    padding: 40px 24px;
    text-align: center;
}

@media (max-width: 800px) {
    .khh-thanks {
        margin-top: 20px;
        padding: 0 16px;
    }

    .khh-thanks__hero {
        padding: 36px 26px;
        border-radius: 18px;
    }

    .khh-thanks__lead {
        font-size: 18px;
    }

    .khh-thanks__steps {
        grid-template-columns: 1fr;
    }

    .khh-thanks__receipt {
        padding: 22px 18px;
    }
}

/* Highway Heroes thank-you page: remove Divi sidebar */
#main-content .container:before {
    display: none !important;
}

#main-content #left-area {
    width: 100% !important;
    padding-right: 0 !important;
    float: none !important;
}

#main-content #sidebar {
    display: none !important;
}

.et_right_sidebar #left-area,
.et_left_sidebar #left-area {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* Highway Heroes thank-you page: hide default Divi page title */
#post-18298 > .entry-title.main_title {
    display: none !important;
}


/* =========================================================
   Highway Heroes thank-you page
   Social sharing, icons and mobile refinements
   ========================================================= */

/* Card icons */

.khh-thanks__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(0, 129, 246, 0.09);
    color: var(--khh-blue);
}

.khh-thanks__card-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.khh-thanks__card-icon svg path:last-child {
    fill: none;
}


/* Social sharing */

.khh-thanks__share {
    margin-top: 34px;
    padding: 32px;
    border-radius: 20px;
    background: #f5f8fc;
    border: 1px solid var(--khh-border);
}

.khh-thanks__share-heading {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.khh-thanks__share-symbol {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--khh-navy);
    color: #fff;
}

.khh-thanks__share-symbol svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.khh-thanks__share h2 {
    margin: 0 0 10px;
    color: var(--khh-navy);
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.khh-thanks__share-heading p {
    margin: 0;
    max-width: 720px;
}

.khh-thanks__share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 25px;
}

.khh-thanks__share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 54px;
    padding: 13px 20px;
    border-radius: 10px;
    color: #fff !important;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .15s ease, opacity .15s ease;
}

.khh-thanks__share-button:hover,
.khh-thanks__share-button:focus {
    color: #fff !important;
    opacity: .92;
    transform: translateY(-1px);
}

.khh-thanks__share-button--whatsapp {
    background: #128c4b;
}

.khh-thanks__share-button--facebook {
    background: #1877f2;
}

.khh-thanks__share-button svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.2;
}

.khh-thanks__share-note {
    margin: 15px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #627083;
    text-align: center;
}


/* Prevent Charitable tables from widening the page */

.khh-thanks__receipt {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.khh-thanks__receipt .charitable-donation-receipt {
    max-width: 100%;
}

.khh-thanks__receipt table {
    max-width: none;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 800px) {

    .khh-thanks {
        width: 100%;
        max-width: 100%;
        margin: 18px auto 42px;
        padding: 0 14px;
        font-size: 16px;
        line-height: 1.55;
    }

    .khh-thanks__hero {
        padding: 30px 21px;
        border-radius: 18px;
    }

    .khh-thanks__eyebrow {
        margin-bottom: 11px;
        font-size: 13px;
        letter-spacing: .11em;
    }

    .khh-thanks__hero h1 {
        margin-bottom: 18px;
        font-size: 34px;
        line-height: 1.06;
        letter-spacing: -0.02em;
    }

    .khh-thanks__lead {
        margin-bottom: 24px;
        font-size: 17px;
        line-height: 1.5;
    }

    .khh-thanks__status {
        gap: 10px;
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.45;
    }

    .khh-thanks__tick {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .khh-thanks__section,
    .khh-thanks__receipt,
    .khh-thanks__share {
        margin-top: 26px;
    }

    .khh-thanks__section h2,
    .khh-thanks__receipt h2 {
        margin-bottom: 17px;
        font-size: 29px;
        line-height: 1.08;
        letter-spacing: -0.02em;
    }

    .khh-thanks__steps {
        gap: 14px;
    }

    .khh-thanks__card {
        padding: 22px 20px;
        border-radius: 16px;
    }

    .khh-thanks__card-icon {
        width: 43px;
        height: 43px;
        margin-bottom: 14px;
    }

    .khh-thanks__card-icon svg {
        width: 23px;
        height: 23px;
    }

    .khh-thanks__card h3 {
        margin-bottom: 8px;
        font-size: 20px;
        line-height: 1.2;
    }

    .khh-thanks__card p {
        font-size: 16px;
        line-height: 1.55;
    }


    /* Sharing */

    .khh-thanks__share {
        padding: 23px 19px;
        border-radius: 17px;
    }

    .khh-thanks__share-heading {
        display: block;
    }

    .khh-thanks__share-symbol {
        width: 45px;
        height: 45px;
        margin-bottom: 15px;
    }

    .khh-thanks__share-symbol svg {
        width: 23px;
        height: 23px;
    }

    .khh-thanks__share h2 {
        margin-bottom: 10px;
        font-size: 25px;
        line-height: 1.12;
    }

    .khh-thanks__share-heading p {
        font-size: 15px;
        line-height: 1.5;
    }

    .khh-thanks__share-actions {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .khh-thanks__share-button {
        width: 100%;
        min-height: 52px;
        padding: 13px 15px;
        font-size: 15px;
    }

    .khh-thanks__share-note {
        margin-top: 13px;
        font-size: 12px;
    }


    /* Receipt */

    .khh-thanks__receipt {
        padding: 21px 15px;
        border-radius: 17px;
    }

    .khh-thanks__receipt h2 {
        font-size: 28px;
    }

    .khh-thanks__receipt .charitable-donation-receipt {
        font-size: 15px;
        line-height: 1.45;
    }

    .khh-thanks__receipt table {
        font-size: 14px;
    }

    .khh-thanks__receipt table th,
    .khh-thanks__receipt table td {
        padding: 10px 8px !important;
        vertical-align: top;
    }


    /* Closing panel */

    .khh-thanks__footer {
        margin-top: 27px;
        padding: 25px 19px;
        border-radius: 17px;
    }

    .khh-thanks__footer strong {
        font-size: 18px;
        line-height: 1.4;
    }

    .khh-thanks__footer a {
        width: 100%;
        max-width: 310px;
        padding: 12px 14px;
        font-size: 15px;
        line-height: 1.4;
    }

}


/* Extra-small phones */

@media (max-width: 390px) {

    .khh-thanks {
        padding-left: 11px;
        padding-right: 11px;
    }

    .khh-thanks__hero {
        padding: 27px 18px;
    }

    .khh-thanks__hero h1 {
        font-size: 31px;
    }

    .khh-thanks__section h2,
    .khh-thanks__receipt h2 {
        font-size: 27px;
    }

    .khh-thanks__card {
        padding: 20px 18px;
    }

}

/* =========================================================
   V1.0.29 campaign footer + final layout refinement
   ========================================================= */

/* Replace the normal Divi footer with the Highway Heroes footer. */
#main-footer,
footer.et-l--footer,
.et-l--footer {
    display: none !important;
}

/* Bring confirmation content closer to site header. */
#main-content > .container {
    padding-top: 28px !important;
}

.khh-thanks {
    margin-top: 0 !important;
}

/* Campaign footer. */
.khh-thanks__campaign-footer {
    width: 100%;
    margin-top: 48px;
}

/* Accessible keyboard focus. */
.khh-thanks__campaign-footer a:focus-visible {
    outline: 3px solid #60a8ed;
    outline-offset: 3px;
}

@media (max-width: 800px) {

    #main-content > .container {
        padding-top: 22px !important;
    }

    .khh-thanks__campaign-footer {
        margin-top: 36px;
    }

}

/* Compact post-donation sharing action. */

.khh-thanks__share {
    padding-top: 24px;
    padding-bottom: 22px;
}

.khh-thanks__share h2 {
    font-size: 27px;
}

@media (max-width: 800px) {

    .khh-thanks__share {
        padding: 20px 18px;
    }

    .khh-thanks__share h2 {
        font-size: 24px;
    }

    .khh-thanks__section h2,
    .khh-thanks__receipt h2 {
        font-size: 27px;
    }

}


/* =========================================================
   V1.0.29 recurring donation summary
   Mobile definition-list layout
   ========================================================= */

@media (max-width: 800px) {

    .khh-thanks__receipt dl.donation-summary {
        display: grid !important;
        grid-template-columns: minmax(105px, 0.72fr) minmax(0, 1.28fr);
        width: 100%;
        margin: 18px 0 6px !important;
        padding: 0 !important;
        overflow: hidden;
        border: 1px solid var(--khh-border);
        border-radius: 14px;
        background: #fff;
    }

    .khh-thanks__receipt dl.donation-summary > dt,
    .khh-thanks__receipt dl.donation-summary > dd {
        min-width: 0;
        margin: 0 !important;
        padding: 13px 14px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--khh-border) !important;
        line-height: 1.4;
    }

    .khh-thanks__receipt dl.donation-summary > dt {
        background: #f4f7fb;
        color: var(--khh-navy);
        font-size: 11px !important;
        font-weight: 800;
        letter-spacing: .045em;
        text-transform: uppercase;
    }

    .khh-thanks__receipt dl.donation-summary > dd {
        background: #fff;
        color: var(--khh-text);
        font-size: 14px !important;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

    .khh-thanks__receipt dl.donation-summary > dd:last-child,
    .khh-thanks__receipt dl.donation-summary > dt:last-of-type {
        border-bottom-color: transparent !important;
    }

    .khh-thanks__receipt dl.donation-summary .recurring-status-badge {
        display: inline-flex !important;
        align-items: center;
        min-height: 25px;
        padding: 4px 9px !important;
        border-radius: 999px !important;
        font-size: 10px !important;
        line-height: 1 !important;
        white-space: nowrap;
    }

    /* Cancellation/success notice spans the whole summary. */
    .khh-thanks__receipt dl.donation-summary > .charitable-notice {
        grid-column: 1 / -1;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    /* Any recurring-donation action links remain usable on phones. */
    .khh-thanks__receipt dl.donation-summary .donation-actions + dd a {
        display: inline-block;
        max-width: 100%;
        margin: 2px 8px 4px 0;
        overflow-wrap: anywhere;
    }

}


/* =========================================================
   V1.0.29 recurring donation summary
   Mobile definition-list layout
   ========================================================= */

@media (max-width: 800px) {

    .khh-thanks__receipt dl.donation-summary {
        display: grid !important;
        grid-template-columns: minmax(105px, 0.72fr) minmax(0, 1.28fr);
        width: 100%;
        margin: 18px 0 6px !important;
        padding: 0 !important;
        overflow: hidden;
        border: 1px solid var(--khh-border);
        border-radius: 14px;
        background: #fff;
    }

    .khh-thanks__receipt dl.donation-summary > dt,
    .khh-thanks__receipt dl.donation-summary > dd {
        min-width: 0;
        margin: 0 !important;
        padding: 13px 14px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--khh-border) !important;
        line-height: 1.4;
    }

    .khh-thanks__receipt dl.donation-summary > dt {
        background: #f4f7fb;
        color: var(--khh-navy);
        font-size: 11px !important;
        font-weight: 800;
        letter-spacing: .045em;
        text-transform: uppercase;
    }

    .khh-thanks__receipt dl.donation-summary > dd {
        background: #fff;
        color: var(--khh-text);
        font-size: 14px !important;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

    .khh-thanks__receipt dl.donation-summary > dd:last-child,
    .khh-thanks__receipt dl.donation-summary > dt:last-of-type {
        border-bottom-color: transparent !important;
    }

    .khh-thanks__receipt dl.donation-summary .recurring-status-badge {
        display: inline-flex !important;
        align-items: center;
        min-height: 25px;
        padding: 4px 9px !important;
        border-radius: 999px !important;
        font-size: 10px !important;
        line-height: 1 !important;
        white-space: nowrap;
    }

    /* Cancellation/success notice spans the whole summary. */
    .khh-thanks__receipt dl.donation-summary > .charitable-notice {
        grid-column: 1 / -1;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    /* Any recurring-donation action links remain usable on phones. */
    .khh-thanks__receipt dl.donation-summary .donation-actions + dd a {
        display: inline-block;
        max-width: 100%;
        margin: 2px 8px 4px 0;
        overflow-wrap: anywhere;
    }

}


/* =========================================================
   V1.0.29 recurring receipt
   Mobile stacked summary
   ========================================================= */

@media (max-width: 800px) {

    .khh-thanks__receipt table.recurring-donation-details {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 16px 0 4px !important;
        overflow: hidden !important;
        border: 1px solid var(--khh-border) !important;
        border-radius: 14px !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        background: #fff !important;
    }

    .khh-thanks__receipt table.recurring-donation-details thead {
        display: none !important;
    }

    .khh-thanks__receipt table.recurring-donation-details tbody,
    .khh-thanks__receipt table.recurring-donation-details tr {
        display: block !important;
        width: 100% !important;
    }

    .khh-thanks__receipt table.recurring-donation-details td {
        display: grid !important;
        grid-template-columns: minmax(105px, 40%) minmax(0, 60%);
        align-items: center;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--khh-border) !important;
        background: #fff !important;
        color: var(--khh-text) !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.45 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    .khh-thanks__receipt table.recurring-donation-details td::before {
        content: attr(data-title);
        align-self: stretch;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        min-width: 0;
        margin-right: 14px;
        padding: 13px 12px;
        background: #f4f7fb;
        color: var(--khh-navy);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .045em;
        line-height: 1.35;
        text-transform: uppercase;
    }

    .khh-thanks__receipt table.recurring-donation-details td {
        padding-right: 13px !important;
    }

    .khh-thanks__receipt table.recurring-donation-details td > *,
    .khh-thanks__receipt table.recurring-donation-details td br {
        max-width: 100%;
    }

    .khh-thanks__receipt table.recurring-donation-details .charitable-recurring-term-note {
        display: inline-block;
        margin-top: 2px;
        color: #667085;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.35;
    }

    /*
     * The receipt already shows the donation being viewed.
     * Hide Charitable's redundant "View" column on mobile.
     */
    .khh-thanks__receipt table.recurring-donation-details td.donation-link {
        display: none !important;
    }

    .khh-thanks__receipt table.recurring-donation-details td:nth-last-child(2) {
        border-bottom: 0 !important;
    }

}

/* V1.0.29 recurring amount term mobile refinement */
@media (max-width: 800px) {

    .khh-thanks__receipt table.recurring-donation-details td.donation-amount {
        display: block !important;
        position: relative !important;
        min-height: 64px !important;
        padding: 13px 13px 13px calc(40% + 14px) !important;
    }

    .khh-thanks__receipt table.recurring-donation-details td.donation-amount::before {
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 40% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 13px 12px !important;
    }

    .khh-thanks__receipt table.recurring-donation-details td.donation-amount br {
        display: none !important;
    }

    .khh-thanks__receipt table.recurring-donation-details td.donation-amount .charitable-recurring-term-note {
        display: inline !important;
        margin: 0 0 0 4px !important;
    }

}


/* V1.0.29 final recurring amount mobile alignment */
@media (max-width: 800px) {
    .khh-thanks__receipt table.recurring-donation-details td.donation-amount {
        white-space: nowrap !important;
        font-size: 13px !important;
    }

    .khh-thanks__receipt table.recurring-donation-details td.donation-amount .charitable-recurring-term-note {
        white-space: nowrap !important;
        font-size: 12px !important;
    }
}
