/* App links only. The booking form, hero buttons and contact details are untouched. */
.site-header .bcc-app-store-link,
.footer .bcc-app-store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-sizing: border-box;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 7px 12px;
    color: #111111;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-family: Lato, -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: left;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    line-height: 1;
}

.site-header .bcc-app-store-link:hover,
.footer .bcc-app-store-link:hover {
    color: #111111;
    border-color: #dfbf78;
    background: #f5f2ea;
    text-decoration: none;
}

.site-header .bcc-app-store-link:focus-visible,
.footer .bcc-app-store-link:focus-visible {
    outline: 2px solid #dfbf78;
    outline-offset: 4px;
}

.bcc-app-store-icon {
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    width: 18px;
    height: 24px;
    flex: 0 0 18px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
}

.bcc-app-store-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 5px;
    height: 1.5px;
    margin-left: -2.5px;
    border-radius: 1px;
    background: currentColor;
}

.bcc-app-store-wording {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bcc-app-store-prompt {
    font-size: 10px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.1px;
}

.bcc-app-store-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.2px;
}

.footer .bcc-footer-app-download {
    margin: 19px 0 22px;
}

.footer .bcc-app-store-link--footer {
    gap: 10px;
    min-height: 48px;
    padding: 8px 16px;
}

.footer .bcc-app-store-title {
    font-size: 17px;
}

/* Only the brand column containing this plugin's entry may shrink and wrap
 * its long email on narrow screens; no contact text or other columns change. */
footer.footer.bcc-app-downloads-footer-enabled .footer-grid > div:first-child {
    min-width: 0;
}

footer.footer.bcc-app-downloads-footer-enabled .footer-grid > div:first-child a[href^="mailto:"] {
    overflow-wrap: anywhere;
}

/* Align to the theme's compact header; nav visibility stays under theme control. */
@media (max-width: 900px) {
    .site-header.bcc-app-downloads-enabled .header-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .site-header.bcc-app-downloads-enabled .header-row > .brand {
        order: 1;
        flex: 1 1 0;
        min-width: 0;
        gap: 7px;
    }

    .site-header.bcc-app-downloads-enabled .header-row > .bcc-app-store-link--header {
        order: 2;
        min-height: 42px;
        gap: 7px;
        padding: 6px 8px;
    }

    .site-header.bcc-app-downloads-enabled .header-row > .menu-toggle {
        order: 3;
        flex: 0 0 auto;
        min-height: 42px;
    }

    .site-header.bcc-app-downloads-enabled .header-row > .nav {
        order: 4;
        flex: 0 0 100%;
        width: 100%;
    }

    .site-header.bcc-app-downloads-enabled .header-row > .button {
        order: 5;
    }

    .site-header .bcc-app-store-link--header .bcc-app-store-icon {
        width: 16px;
        height: 22px;
        flex-basis: 16px;
    }

    .site-header .bcc-app-store-link--header .bcc-app-store-title {
        font-size: 14px;
    }

    .site-header .bcc-app-store-link--header .bcc-app-store-prompt {
        font-size: 9px;
    }
}

@media (max-width: 420px) {
    .site-header.bcc-app-downloads-enabled .header-row {
        gap: 8px;
    }

    .site-header.bcc-app-downloads-enabled .brand-mark,
    .site-header.bcc-app-downloads-enabled .brand-mark-image {
        width: 29px;
        height: 29px;
        flex: 0 0 29px;
    }

    .site-header.bcc-app-downloads-enabled .brand-copy strong {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .site-header.bcc-app-downloads-enabled .brand-subtitle {
        font-size: 8px;
        letter-spacing: 0.75px;
    }

    .site-header.bcc-app-downloads-enabled .menu-toggle {
        padding-right: 8px;
        padding-left: 8px;
    }
}

/* Narrow phones need room for the whole wordmark, not a clipped flex item. */
@media (max-width: 360px) {
    .site-header.bcc-app-downloads-enabled .container.header-row {
        width: calc(100% - 24px);
        gap: 6px;
    }

    .site-header.bcc-app-downloads-enabled .header-row > .brand {
        gap: 6px;
    }

    .site-header.bcc-app-downloads-enabled .brand-mark,
    .site-header.bcc-app-downloads-enabled .brand-mark-image {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .site-header.bcc-app-downloads-enabled .brand-copy strong {
        font-size: 16px;
        letter-spacing: 0.6px;
    }

    .site-header.bcc-app-downloads-enabled .brand-subtitle {
        font-size: 6.8px;
        letter-spacing: 0.5px;
    }

    .site-header.bcc-app-downloads-enabled .header-row > .bcc-app-store-link--header {
        min-height: 44px;
        gap: 5px;
        padding: 6px;
    }

    .site-header .bcc-app-store-link--header .bcc-app-store-icon {
        width: 14px;
        height: 20px;
        flex-basis: 14px;
    }

    .site-header .bcc-app-store-link--header .bcc-app-store-title {
        font-size: 13px;
    }

    .site-header .bcc-app-store-link--header .bcc-app-store-prompt {
        font-size: 8px;
    }

    .site-header.bcc-app-downloads-enabled .header-row > .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 6px;
        font-size: 11px;
    }
}
