/*
 * What the design's site.css doesn't have: loaders, form errors, the checkout extras,
 * text pages and pagination. Colours come from site.css's variables.
 */

[x-cloak] {
    display: none !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
}

.skip-link:focus {
    left: 8px;
}

/* Loading placeholders */
.skeleton {
    display: block;
    height: 14px;
    margin: 6px 0;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--line) 25%, var(--bg2) 50%, var(--line) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

.skeleton--short {
    width: 55%;
}

.skeleton--card {
    height: 320px;
    border-radius: var(--r);
}

.skeleton-lines {
    display: block;
    flex: 1;
}

.ci-thumb {
    width: 64px;
    height: 64px;
    margin: 0;
    border-radius: 10px;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

/* Forms */
.in.is-invalid {
    border-color: #c0392b;
}

small.err {
    display: block;
    margin-top: 4px;
}

.hp {
    position: absolute;
    left: -9999px;
}

.chk {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 4px;
    font-size: 14px;
    cursor: pointer;
}

.chk input {
    margin-top: 3px;
}

.df-buttons {
    display: grid;
    gap: 10px;
}

.emp-icon {
    width: 44px;
    height: 44px;
}

/* Footer */
.footer-logo {
    width: auto;
    height: 30px;
}

.footer-tagline {
    margin: 12px 0 4px;
    color: #fff;
    font-weight: 600;
}

.footer-about {
    max-width: 36ch;
    margin: 0;
}

/* Text pages made in Content Admin */
.wrap.narrow {
    max-width: 820px;
}

.prose {
    line-height: 1.7;
}

.prose h2 {
    margin: 28px 0 8px;
    font-size: 22px;
}

.prose a {
    color: var(--cu2);
}

/* Product list pages */
.pages {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
}

.pages a {
    min-width: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.pages a.is-active {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.stock.out {
    color: #c0392b;
}

/* Home hero: the receipt comes out of the printer in one smooth, quick motion instead of 14 steps */
.rc {
    animation: feed 1.2s cubic-bezier(.22, .8, .3, 1) .15s both;
    will-change: clip-path;
}

@media (prefers-reduced-motion: reduce) {
    .rc {
        animation: none;
    }
}

/* Category cards are links: the whole card is clickable, so no underline; the name turns copper on hover */
.cat {
    color: inherit;
    text-decoration: none;
}

.cat:hover b,
.cat:focus-visible b {
    color: var(--cu);
}

/* A logo uploaded in Super Admin settings, in place of the wordmark */
.logo-image {
    display: block;
    width: auto;
    height: 32px;
}

/* Google Translate switcher (top bar and phone menu), as in Agro. Google's own banner and tooltips are hidden. */
.lang-switcher {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / .4);
    border-radius: 20px;
}

.lang-switcher button {
    padding: 2px 9px;
    border: 0;
    background: transparent;
    color: rgb(255 255 255 / .85);
    font: inherit;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.lang-switcher button.lang-active {
    background: #fff;
    color: var(--navy);
}

.lang-switcher button.lang-inactive:hover {
    background: rgb(255 255 255 / .15);
}

.goog-te-banner-frame,
.skiptranslate > iframe,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* In the phone menu only; the top bar has its own on wide screens */
.mn-lang {
    display: none;
}

.mn.open .mn-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 10px;
    color: var(--mut);
}

.mn.open .mn-lang .lang-switcher {
    border-color: var(--line);
}

.mn.open .mn-lang .lang-switcher button {
    padding: 4px 14px;
    color: var(--ink);
    font-size: .85rem;
}

.mn.open .mn-lang .lang-switcher button.lang-active {
    background: var(--navy);
    color: #fff;
}

/* "By ordering you accept our terms…" under the order buttons */
.terms-note {
    margin-top: 10px;
    font-size: 12.5px;
}

.terms-note a {
    color: var(--cu2);
}

/* Social page links under the footer's contact details */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgb(255 255 255 / .2);
    border-radius: 50%;
}

.footer-social a:hover {
    border-color: var(--cu);
}
