/* Home page hero: inline postcode field that leads straight into the meal builder */
.nb-hero .nb-hero-postcode {
    width: 100%;
    padding: 4px 0 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid #ECEAE1;
    text-align: left;
}

.nb-hero .nb-hero-postcode--mobile {
    max-width: 400px;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.nb-hero .nb-hero-postcode .nb-deliver-title {
    display: block;
    margin-bottom: 8px;
}

.nb-hero .nb-hero-postcode__row {
    display: flex;
    gap: 8px;
}

.nb-hero .nb-hero-postcode__input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    border: 1.5px solid #D9D6CC;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 16px; /* 16px stops iOS from zooming in on focus */
    letter-spacing: .04em;
}

.nb-hero .nb-hero-postcode__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(18, 122, 94, .15);
}

.nb-hero .nb-hero-postcode__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: filter .15s;
}

.nb-hero .nb-hero-postcode__btn:hover,
.nb-hero .nb-hero-postcode__btn:focus-visible {
    filter: brightness(.92);
    color: #fff;
    background: var(--accent);
}

.nb-hero .nb-hero-postcode__btn[disabled] {
    opacity: .75;
    cursor: wait;
}

.nb-hero .nb-hero-postcode__btn svg {
    width: 16px;
    height: 16px;
}

.nb-hero .nb-hero-postcode__msg {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #B91C1C;
}

.nb-hero .nb-hero-postcode__msg.is-success {
    color: #127A5E;
    font-weight: 500;
}

.nb-hero .nb-hero-postcode__msg:empty {
    display: none;
}

/* ---------- postcode result popup (added by assets/js/hero-postcode.js) ---------- */
body.nbpc-modal-open {
    overflow: hidden;
}

.nbpc-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(31, 36, 33, .45);
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    color: #1F2421;
}

.nbpc-modal[hidden] {
    display: none;
}

.nbpc-modal__box {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 32px;
    background: #FFFFFF;
    border: 1px solid #E4E0D6;
    border-radius: 8px;
    text-align: left;
}

.nbpc-modal .nbpc-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #5B625E;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.nbpc-modal .nbpc-modal__close:hover,
.nbpc-modal .nbpc-modal__close:focus-visible {
    background: #F1F4F0;
    color: #1F2421;
}

.nbpc-modal__box p {
    margin: 0;
}

.nbpc-modal .nbpc-modal__label {
    margin-bottom: 16px;
    font-size: 14px;
    color: #2F6B55;
}

.nbpc-modal .nbpc-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 50%;
    font-size: 19px;
    line-height: 1;
}

.nbpc-modal.is-yes .nbpc-modal__icon {
    background: #E9EEE8;
    color: #2F4F43;
}

.nbpc-modal.is-no .nbpc-modal__icon {
    background: #FBF3F1;
    color: #A23B2A;
}

.nbpc-modal .nbpc-modal__title {
    margin: 0 0 8px;
    padding: 0;
    font-family: inherit;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #1F2421;
}

.nbpc-modal .nbpc-modal__text {
    font-size: 16px;
    line-height: 1.5;
    color: #5B625E;
}

.nbpc-modal__yes,
.nbpc-modal__no {
    margin-top: 22px;
}

.nbpc-modal.is-yes .nbpc-modal__no,
.nbpc-modal.is-no .nbpc-modal__yes {
    display: none;
}

.nbpc-modal .nbpc-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 22px;
    background: #2F4F43;
    border: none;
    border-radius: 6px;
    color: #F7F5F0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}

.nbpc-modal .nbpc-modal__btn:hover,
.nbpc-modal .nbpc-modal__btn:focus-visible {
    background: #243E34;
    color: #F7F5F0;
}

.nbpc-modal .nbpc-modal__btn[disabled] {
    opacity: .75;
    cursor: wait;
}

.nbpc-modal .nbpc-modal__menu {
    width: 100%;
}

.nbpc-modal .nbpc-modal__foot {
    margin-top: 14px;
    font-size: 14px;
    color: #5B625E;
}

.nbpc-modal .nbpc-modal__field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #1F2421;
}

.nbpc-modal__row {
    display: flex;
    gap: 8px;
}

.nbpc-modal .nbpc-modal__input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    background: #FFFFFF;
    border: 1px solid #D4CFC3;
    border-radius: 6px;
    box-shadow: none;
    color: #1F2421;
    font-family: inherit;
    font-size: 16px; /* 16px stops iOS from zooming in on focus */
}

.nbpc-modal .nbpc-modal__input:focus {
    outline: none;
    border-color: #2F4F43;
    box-shadow: 0 0 0 3px rgba(47, 79, 67, .12);
}

.nbpc-modal .nbpc-modal__error {
    margin-top: 8px;
    font-size: 14px;
    color: #A23B2A;
}

.nbpc-modal .nbpc-modal__error:empty {
    display: none;
}

@media (max-width: 480px) {
    .nbpc-modal__box {
        padding: 28px 20px 24px;
    }

    .nbpc-modal .nbpc-modal__title {
        font-size: 23px;
    }

    .nbpc-modal .nbpc-modal__check {
        padding: 0 16px;
    }
}
