/* CheapPinz shopping header. Scoped to avoid changing checkout and content styles. */
#masthead.cpz-header {
    --cpz-header-ink: #131921;
    --cpz-nav-ink: #232f3e;
    --cpz-header-accent: #ffbd69;
    position: relative;
    z-index: 100;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #fff;
    background: var(--cpz-header-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: 0 1px 3px #0002;
}
.cpz-header .cpz-header-main {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto;
    align-items: center;
    gap: clamp(14px, 2vw, 32px);
    max-width: 1680px;
    min-height: 82px;
    margin: 0 auto;
    padding: 14px 28px;
}
.cpz-header a { color: #fff; text-decoration: none; text-underline-offset: 4px; }
.cpz-header a:hover { color: #fff; text-decoration: none; }
.cpz-header .cpz-branding { min-width: 0; }
.cpz-header .cpz-wordmark {
    display: inline-block;
    padding: 8px 0;
    color: #fff;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1.4px;
    white-space: nowrap;
}
.cpz-header .cpz-wordmark > span { color: var(--cpz-header-accent); }
.cpz-header .cpz-wordmark .cpz-brand-dot { color: #fff; }
.cpz-header .cpz-logo { max-width: 150px; line-height: 0; }
.cpz-header .cpz-logo a { display: block; }
.cpz-header .cpz-logo img { width: auto; max-width: 150px; max-height: 52px; object-fit: contain; }
.cpz-header .cpz-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0;
    gap: 0;
    background: #fff;
    border: 0;
    border-radius: 7px;
    box-shadow: 0 0 0 1px #0001;
}
.cpz-header .cpz-search:focus-within { outline: 3px solid var(--cpz-header-accent); outline-offset: 2px; }
.cpz-header .cpz-search select {
    flex: 0 0 120px;
    width: 120px;
    min-width: 0;
    max-width: 120px;
    height: 48px;
    margin: 0;
    padding: 0 27px 0 12px;
    border: 0;
    border-right: 1px solid #d5d9d9;
    border-radius: 7px 0 0 7px;
    background-color: #f0f2f2;
    color: #374151;
    font: 13px Arial, sans-serif;
    cursor: pointer;
    text-overflow: ellipsis;
}
.cpz-header .cpz-search input[type="search"] {
    flex: 1 1 0%;
    width: 0;
    min-width: 0;
    max-width: none;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: #0f1111;
    font: 16px Arial, sans-serif;
    box-shadow: none;
}
.cpz-header .cpz-search input::placeholder { color: #647078; opacity: 1; }
.cpz-header .cpz-search select:focus, .cpz-header .cpz-search input:focus { outline: 2px solid #146eb0; outline-offset: -3px; }
#masthead.cpz-header .cpz-search-submit,
#masthead.cpz-header .cpz-search-submit:hover,
#masthead.cpz-header .cpz-search-submit:active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    min-width: 44px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 7px 7px 0;
    background: var(--cpz-header-accent);
    color: #131921 !important;
    cursor: pointer;
}
#masthead.cpz-header .cpz-search-submit:hover { background: #f3a847; }
#masthead.cpz-header .cpz-search-submit .cpz-icon { width: 25px; height: 25px; }
.cpz-header .cpz-header-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cpz-header .cpz-header-link, .cpz-header .cart-contents {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #fff;
    white-space: nowrap;
}
.cpz-header .cpz-header-link:hover, .cpz-header .cart-contents:hover { border-color: #8b96a3; opacity: 1; }
.cpz-header .cpz-link-copy { display: flex; flex-direction: column; min-width: 0; }
.cpz-header .cpz-link-eyebrow { display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; color: #e0e5eb; font-size: 12px; line-height: 1.4; }
.cpz-header .cpz-link-copy strong, .cpz-header .cpz-cart-label { color: #fff; font-size: 14px; font-weight: 700; }
.cpz-header .cpz-account > .cpz-icon { display: none; }
.cpz-header .cart-contents::before { display: none; }
.cpz-header .cpz-cart-icon { position: relative; display: flex; align-items: flex-end; height: 35px; width: 38px; }
.cpz-header .cpz-cart-icon > .cpz-icon { width: 32px; height: 32px; }
.cpz-header .cart-contents-count {
    position: absolute;
    top: -7px;
    right: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    width: auto;
    height: 21px;
    padding: 0 4px;
    border: 2px solid var(--cpz-header-ink);
    border-radius: 12px;
    background: var(--cpz-header-accent);
    color: #131921;
    font: 700 12px/1 Arial, sans-serif;
}
.cpz-header .cpz-nav-bar { background: var(--cpz-nav-ink); }
.cpz-header .cpz-nav-inner { position: relative; display: flex; align-items: center; gap: 12px; max-width: 1680px; margin: 0 auto; padding: 0 24px; }
.cpz-header .cpz-departments { flex: 0 0 auto; margin: 0; padding: 0; border: 0; }
.cpz-header .cpz-departments summary { display: flex; align-items: center; gap: 8px; min-height: 46px; margin: 0; padding: 0 10px; border: 1px solid transparent; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.cpz-header .cpz-departments summary::-webkit-details-marker { display: none; }
.cpz-header .cpz-departments summary::before, .cpz-header .cpz-departments summary::after { display: none; }
.cpz-header .cpz-departments summary .cpz-icon:last-child { width: 13px; height: 13px; }
.cpz-header .cpz-departments[open] summary { background: #344559; }
.cpz-header .cpz-departments[open] summary .cpz-icon:last-child { transform: rotate(180deg); }
.cpz-header .cpz-departments-panel { position: absolute; z-index: 10; top: 100%; left: 24px; width: min(360px, calc(100% - 48px)); max-height: 65vh; max-height: 65dvh; overflow-y: auto; overscroll-behavior: contain; padding: 20px 0 12px; border: 1px solid #d5d9d9; border-top: 3px solid var(--cpz-header-accent); border-radius: 0 0 8px 8px; background: #fff; color: #0f1111; box-shadow: 0 12px 28px #0003; }
.cpz-header .cpz-departments-panel a { display: flex; align-items: center; min-height: 44px; padding: 10px 22px; color: #172535; font-size: 14px; line-height: 1.4; white-space: normal; }
.cpz-header .cpz-departments-panel a:hover { background: #f0f2f2; color: #0f1111; }
.cpz-header .cpz-departments-panel .cpz-menu-heading { margin: 0 22px 12px; color: #0f1111; font-size: 18px; font-weight: 700; }
.cpz-header .cpz-shop-all { font-weight: 700; }
.cpz-header .cpz-department-links, .cpz-header .cpz-department-links li { display: block; width: auto; margin: 0; padding: 0; list-style: none; }
.cpz-header .cpz-department-links .sub-menu { position: static; display: block; margin: 0 0 0 18px; padding: 0; border: 0; list-style: none; }
.cpz-header .cpz-department-links .menu-item-description { display: none; }
.cpz-header .cpz-menu-account { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e3e6e6; }
.cpz-header .cpz-quick-nav { min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #708090 transparent; }
.cpz-header .cpz-quick-nav ul { display: flex; align-items: center; width: max-content; margin: 0; padding: 0; gap: 4px; list-style: none; }
.cpz-header .cpz-quick-nav li { margin: 0; padding: 0; list-style: none; }
.cpz-header .cpz-quick-nav a { display: flex; align-items: center; min-height: 46px; padding: 0 12px; border: 1px solid transparent; font-size: 14px; font-weight: 500; white-space: nowrap; }
.cpz-header .cpz-quick-nav a:hover, .cpz-header .cpz-departments summary:hover { border-color: #8b96a3; }
.cpz-header a:focus-visible, .cpz-header button:focus-visible, .cpz-header summary:focus-visible { outline: 2px solid var(--cpz-header-accent); outline-offset: -3px; }
.cpz-header .cpz-departments-panel a:focus-visible { outline-color: #146eb0; }
@media (max-width: 1100px) {
    .cpz-header .cpz-header-main { gap: 14px; padding: 12px 20px; }
    .cpz-header .cpz-orders { display: none; }
    .cpz-header .cpz-header-actions { gap: 4px; }
}
@media (max-width: 800px) {
    .cpz-header .cpz-header-main { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 10px 16px 12px; }
    .cpz-header .cpz-search { grid-column: 1 / -1; grid-row: 2; }
    .cpz-header .cpz-header-actions { grid-column: 2; grid-row: 1; }
    .cpz-header .cpz-wordmark { font-size: 27px; }
    .cpz-header .cpz-nav-inner { padding: 0 8px; gap: 4px; }
    .cpz-header .cpz-departments-panel { left: 8px; width: min(360px, calc(100% - 16px)); }
    .cpz-header .cpz-quick-nav a { padding: 0 10px; font-size: 13px; }
}
@media (max-width: 480px) {
    .cpz-header .cpz-header-main { padding: 8px 12px 12px; gap: 8px; }
    .cpz-header .cpz-wordmark { font-size: 25px; }
    .cpz-header .cpz-logo, .cpz-header .cpz-logo img { max-width: 125px; max-height: 44px; }
    .cpz-header .cpz-header-link, .cpz-header .cart-contents { padding: 5px; gap: 5px; }
    .cpz-header .cpz-account > .cpz-icon { display: block; width: 21px; height: 21px; }
    .cpz-header .cpz-link-eyebrow { max-width: 95px; font-size: 11px; }
    .cpz-header .cpz-link-copy strong { font-size: 12px; }
    .cpz-header .cpz-cart-label { display: none; }
    .cpz-header .cpz-search select { flex-basis: 86px; max-width: 86px; width: 86px; padding-left: 9px; padding-right: 20px; font-size: 12px; }
    .cpz-header .cpz-search input[type="search"] { padding: 0 10px; }
    #masthead.cpz-header .cpz-search-submit { flex-basis: 48px; width: 48px; }
    .cpz-header .cpz-departments summary { padding: 0 6px; gap: 5px; }
    .cpz-header .cpz-departments summary .cpz-icon:last-child { display: none; }
}
@media (max-width: 359px) {
    .cpz-header .cpz-account > .cpz-icon { display: none; }
    .cpz-header .cpz-wordmark { font-size: 23px; }
    .cpz-header .cpz-link-eyebrow { max-width: 80px; }
}
