/* Return to the nationwide catalogue: visible at the TOP of the viewport,
   including on small mobile screens. No checkout or catalogue styling is changed. */
.gbns-return-pill {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top, 0px));
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99980;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100vw - 24px);
    min-height: 52px;
    background: #23783e;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
    font: 700 15px/1.3 Arial, Helvetica, sans-serif;
    overflow: hidden;
}
.gbns-return-pill *, .gbns-return-pill *::before, .gbns-return-pill *::after {
    box-sizing: border-box;
}
.gbns-return-pill-link {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 52px;
    padding: 12px 13px 12px 16px;
    color: #fff !important;
    text-decoration: none !important;
    white-space: normal;
    overflow-wrap: break-word;
}
.gbns-return-pill-link:hover,
.gbns-return-pill-link:focus-visible {
    color: #fff !important;
    text-decoration: underline !important;
}
.gbns-return-pill-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    min-width: 44px;
    min-height: 52px;
    padding: 0;
    font: normal 26px/1 Arial, Helvetica, sans-serif;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
}
.gbns-return-pill-close:hover,
.gbns-return-pill-close:focus-visible {
    color: #fff !important;
    background: rgba(255,255,255,.12) !important;
}
/* Respect the WordPress toolbar while logged in; public visitors are unchanged. */
body.admin-bar .gbns-return-pill { top: calc(56px + env(safe-area-inset-top, 0px)); }
@media (min-width: 783px) {
    body.admin-bar .gbns-return-pill { top: 48px; }
}
@media (min-width: 769px) {
    .gbns-return-pill {
        top: 16px;
        right: 18px;
        left: auto;
        transform: none;
        max-width: min(420px, calc(100vw - 36px));
        min-height: 50px;
        font-size: 15px;
    }
}
@media (max-width: 359px) {
    .gbns-return-pill { font-size: 14px; }
    .gbns-return-pill-link { padding-left: 11px; padding-right: 7px; }
}
