/* C&K Locations — header bar, store picker (inline + dialog), store box, product note.
   Colours come from the Kadence palette so the brand pink is never re-shaded here. */

.cakl-bar {
    background: var(--global-palette8, #fdf2f7);
    color: var(--global-palette3, #402c23);
    border-bottom: 1px solid var(--global-palette2, #f0cddc);
    font-size: 0.9rem;
}
.cakl-bar__inner {
    max-width: var(--global-content-width, 1290px);
    margin: 0 auto;
    padding: 6px var(--global-content-edge-padding, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    flex-wrap: wrap;
}
.cakl-bar__pin { color: var(--global-palette1, #cb4288); flex: none; }
.cakl-bar__btn,
.cakl-bar__btn:visited {
    color: var(--global-palette3, #402c23);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 4px 2px; /* comfortable tap target without growing the bar */
}
.cakl-bar__btn:hover, .cakl-bar__btn:focus-visible { color: var(--global-palette1, #cb4288); }

/* "Choose your store to see prices" in place of a price */
.cakl-noprice, a.cakl-noprice {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--global-palette3, #402c23);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------------------------------------------------------------- picker */

.cakl-picker { --cakl-pink: var(--global-palette1, #cb4288); --cakl-ink: var(--global-palette3, #402c23); color: var(--cakl-ink); }
.cakl-search { display: grid; gap: 8px; margin: 0 0 8px; }
.cakl-search__label { font-weight: 700; }
.cakl-search__row { display: flex; gap: 8px; }
.cakl-search__input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #8a7a72;
    border-radius: 8px;
    font-size: 1rem;
}
.cakl-search__btn, .cakl-shop__choose, .cakl-pop__choose {
    min-height: 44px;
    padding: 8px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--cakl-pink);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.cakl-pop__choose { min-height: 36px; margin-top: 8px; padding: 6px 12px; }
/* White on the brand pink is 4.49:1 — under 4.5 for normal text, fine (3:1) for large text, so these are 19px bold. */
.cakl-search__btn, .cakl-shop__choose, .cakl-pop__choose { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.cakl-search__btn:hover, .cakl-shop__choose:hover { filter: brightness(0.92); }
.cakl-locate {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--cakl-pink);
    border-radius: 999px;
    background: #fff;
    color: var(--cakl-ink);
    font-weight: 600;
    cursor: pointer;
}
.cakl-locate svg { color: var(--cakl-pink); }
.cakl-status { min-height: 1.4em; margin: 4px 0 10px; font-size: 0.95rem; }

.cakl-body { display: grid; gap: 12px; grid-template-columns: 1fr; }
.cakl-map { order: -1; height: 240px; border-radius: 10px; background: #efe9e6; z-index: 0; }
.cakl-map.is-failed { display: none; }
.cakl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cakl-shop {
    border: 1px solid #e3d6dc;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
    cursor: pointer;
}
.cakl-shop.is-current { border-color: var(--cakl-pink); box-shadow: inset 4px 0 0 var(--cakl-pink); }
.cakl-shop.is-focus { outline: 3px solid var(--global-palette2, #f0cddc); }
.cakl-shop__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cakl-shop__name { font-size: 1.1rem; font-weight: 700; }
.cakl-shop__dist { font-weight: 600; color: #5c4b44; }
.cakl-shop__tag {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--global-palette8, #fdf2f7);
    color: var(--cakl-ink);
    border: 1px solid var(--cakl-pink);
    font-size: 0.75rem;
    font-weight: 700;
}
.cakl-shop__tag--near { background: var(--global-palette8, #fdf2f7); color: var(--cakl-ink); border: 1px solid var(--cakl-pink); }
.cakl-shop__addr { margin-top: 4px; font-size: 0.95rem; line-height: 1.4; }
.cakl-shop__hours { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 0.85rem; color: #5c4b44; }
.cakl-shop__actions { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.cakl-shop__link, .cakl-shop__link:visited { color: var(--cakl-ink); font-weight: 600; text-decoration: underline; padding: 8px 0; }
.cakl-empty { padding: 12px; }
.cakl-noscript { margin: 1em 0; }

/* map pins in brand pink */
.cakl-pin span {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    background: var(--global-palette1, #cb4288);
    border: 3px solid #fff;
    transform: rotate(-45deg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (min-width: 900px) {
    .cakl-body { grid-template-columns: minmax(320px, 2fr) 3fr; align-items: start; }
    .cakl-map { order: 0; height: 460px; position: sticky; top: 12px; }
    .cakl-list { max-height: 460px; overflow-y: auto; padding-right: 4px; }
    .cakl-search { grid-template-columns: 1fr auto; align-items: end; }
    .cakl-search__label { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- dialog */

.cakl-dialog {
    width: min(1040px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 18px 20px 20px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    color: var(--global-palette3, #402c23);
}
.cakl-dialog::backdrop { background: rgba(40, 20, 30, 0.55); }
.cakl-dialog { overflow-y: auto; overscroll-behavior: contain; }
body:has(.cakl-dialog[open]) { overflow: hidden; }
.cakl-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cakl-dialog__title { margin: 0; font-size: 1.4rem; color: var(--global-palette3, #402c23); } /* theme headings are brand pink: 4.49:1 at this size */
.cakl-dialog__close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--global-palette8, #fdf2f7);
    color: var(--global-palette3, #402c23);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}
.cakl-dialog__lead { margin: 4px 0 12px; }
@media (max-width: 600px) {
    .cakl-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; padding: 14px 16px; }
}

/* ---------------------------------------------------------------- shop page, cart, product */

.cakl-gate { margin-bottom: 2em; }
.cakl-gate__lead { max-width: 60ch; }
.cakl-gate__error { padding: 12px 14px; border-left: 4px solid #b42318; background: #fef3f2; }
.cakl-shopline { margin: 0.25em 0 1em; }
.cakl-shopline a { font-weight: 600; }

.cakl-storebox {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0 0 1.5em;
    padding: 12px 16px;
    border: 1px solid var(--global-palette2, #f0cddc);
    border-radius: 10px;
    background: var(--global-palette8, #fdf2f7);
}
.cakl-storebox__label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.cakl-storebox__addr { color: #5c4b44; }
.cakl-storebox__change { margin-left: auto; font-weight: 700; }

.cakl-productnote {
    margin: 1em 0 1.5em;
    padding: 14px 16px;
    border: 1px solid var(--global-palette2, #f0cddc);
    border-radius: 10px;
    background: var(--global-palette8, #fdf2f7);
}
.cakl-productnote p { margin: 0 0 10px; }

/* cak-pickup at checkout: the store is fixed by the location choice */
.cakp-fixed-store { margin: 0 0 12px; }
.cakp-fixed-store a { font-weight: 600; margin-left: 6px; }
.cakl-shop__link:hover, .cakl-shop__link:focus-visible, .cakl-storebox a:hover, .cakl-shopline a:hover { color: var(--global-palette1, #cb4288); }

/* ---------------------------------------------------------------- [cak_store] pill in Kadence's pink top bar */
.cakl-pill, .cakl-pill:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 4px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--global-palette3, #402c23);
    font-size: 0.875rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.cakl-pill:hover, .cakl-pill:focus-visible { color: var(--global-palette3, #402c23); background: var(--global-palette8, #fdf2f7); }
.cakl-pill:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cakl-pill__pin { color: var(--global-palette1, #cb4288); flex: none; }
.cakl-pill__change { margin-left: 4px; padding-left: 8px; border-left: 1px solid #e3cbd6; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.site-header-item-html .cakl-pill, .site-header-item-mobile-html .cakl-pill { margin: 0; }
.header-html-inner p:has(> .cakl-pill), .mobile-html-inner p:has(> .cakl-pill) { margin: 0; }
@media (max-width: 480px) {
    .cakl-pill { font-size: 0.8125rem; padding: 4px 12px; }
    .cakl-pill__label { display: none; }
}
/* Kadence underlines links in header HTML elements; only "Change" should look like a link. */
#masthead .cakl-pill, #mobile-header .cakl-pill, .site-header .cakl-pill { text-decoration: none; }
.site-header .cakl-pill .cakl-pill__change, #mobile-header .cakl-pill .cakl-pill__change { text-decoration: underline; }
.site-header .cakl-pill--none strong { text-decoration: underline; text-underline-offset: 2px; }
