/*!
 * rkrcp-front — front office styles.
 *
 * No colour, radius, shadow or font is hard-coded: everything is read from the
 * --rkrcp-* custom properties published by front/media.tpl from the active
 * theme, so the theme studio drives the shop appearance. The values below are
 * only the fallback used before the theme block is applied.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 *
 * @author    Achegatec S.L. (Rekire.com) <info@rekire.com>
 * @copyright 2006-2026 Achegatec S.L. - CIF B27340801
 * @license   http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 */

/* ==========================================================================
   1. Fallback tokens
   ========================================================================== */

.rkrcp-widget,
.rkrcp-petbar,
.rkrcp-filterbar,
.rkrcp-account-tile,
.rkrcp-picks,
#rkrcp-front {
    --rkrcp-bg: #ffffff;
    --rkrcp-surface: #f7f8f9;
    --rkrcp-primary: #77a632;
    --rkrcp-primary-dark: #5d8426;
    --rkrcp-accent: #d68910;
    --rkrcp-text: #2b2f33;
    --rkrcp-muted: #6b7280;
    --rkrcp-border: #e2e5e8;
    --rkrcp-radius: 12px;
    --rkrcp-shadow: 0 6px 20px rgba(17, 20, 23, 0.1);
    --rkrcp-font: inherit;
    --rkrcp-font-size: 14px;
    --rkrcp-badge-bg: #eaf3dc;
    --rkrcp-badge-text: #5d8426;
    --rkrcp-button-bg: #77a632;
    --rkrcp-button-text: #ffffff;
    --rkrcp-danger: #c0392b;
    --rkrcp-cols: 4;
}

.rkrcp-widget,
.rkrcp-petbar,
.rkrcp-filterbar,
.rkrcp-account-tile,
.rkrcp-picks,
#rkrcp-front {
    font-family: var(--rkrcp-font);
    font-size: var(--rkrcp-font-size);
    color: var(--rkrcp-text);
}

.rkrcp-widget *,
.rkrcp-petbar *,
.rkrcp-filterbar *,
.rkrcp-account-tile *,
.rkrcp-picks *,
#rkrcp-front * {
    box-sizing: border-box;
}

#rkrcp-front .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   2. Buttons, alerts and pills
   ========================================================================== */

.rkrcp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: calc(var(--rkrcp-radius) - 4px);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.rkrcp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.rkrcp-btn:active { transform: translateY(0); }

.rkrcp-btn-primary {
    background: var(--rkrcp-button-bg);
    border-color: var(--rkrcp-button-bg);
    color: var(--rkrcp-button-text);
}

.rkrcp-btn-primary:hover { background: var(--rkrcp-primary-dark); border-color: var(--rkrcp-primary-dark); color: #fff; }

.rkrcp-btn-ghost {
    background: var(--rkrcp-bg);
    border-color: var(--rkrcp-border);
    color: var(--rkrcp-text);
}

.rkrcp-btn-ghost:hover { border-color: var(--rkrcp-primary); color: var(--rkrcp-primary-dark); }

.rkrcp-btn-link {
    background: none;
    border-color: transparent;
    color: var(--rkrcp-muted);
    padding: 6px 8px;
    text-decoration: underline;
    font-weight: 500;
    font-size: 13px;
}

.rkrcp-btn-link:hover { color: var(--rkrcp-primary-dark); }
.rkrcp-btn-danger-text { color: var(--rkrcp-danger); }
.rkrcp-btn-danger-text:hover { color: #8d2b20; }

.rkrcp-alert {
    padding: 12px 15px;
    margin-bottom: 14px;
    border-radius: calc(var(--rkrcp-radius) - 4px);
    border: 1px solid var(--rkrcp-border);
    border-left-width: 4px;
    background: var(--rkrcp-surface);
    font-size: 14px;
}

.rkrcp-alert-success { border-left-color: var(--rkrcp-primary); background: var(--rkrcp-badge-bg); color: var(--rkrcp-badge-text); }
.rkrcp-alert-error { border-left-color: var(--rkrcp-danger); background: #fbeae8; color: #8d2b20; }
.rkrcp-alert-warning { border-left-color: var(--rkrcp-accent); background: #fdf3e0; color: #8a5a09; }
.rkrcp-alert-info { border-left-color: #2f80c4; background: #e8f2fb; color: #1f5680; }

.rkrcp-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.rkrcp-pill-on { background: var(--rkrcp-badge-bg); color: var(--rkrcp-badge-text); }
.rkrcp-pill-off { background: var(--rkrcp-surface); color: var(--rkrcp-muted); }

/* ==========================================================================
   3. Account tile
   ========================================================================== */

.rkrcp-account-tile {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    margin: 8px 0;
    background: var(--rkrcp-bg);
    border: 1px solid var(--rkrcp-border);
    border-radius: var(--rkrcp-radius);
    box-shadow: var(--rkrcp-shadow);
    text-decoration: none;
    color: var(--rkrcp-text);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rkrcp-account-tile:hover,
.rkrcp-account-tile:focus {
    transform: translateY(-2px);
    border-color: var(--rkrcp-primary);
    text-decoration: none;
    color: var(--rkrcp-text);
}

.rkrcp-account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: calc(var(--rkrcp-radius) - 2px);
    background: var(--rkrcp-badge-bg);
    color: var(--rkrcp-primary-dark);
    fill: currentColor;
}

.rkrcp-account-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.rkrcp-account-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }

.rkrcp-account-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--rkrcp-primary);
    color: var(--rkrcp-button-text);
    font-size: 11px;
    font-weight: 700;
}

.rkrcp-account-hint { font-size: 12.5px; color: var(--rkrcp-muted); }
.rkrcp-account-arrow { font-size: 22px; color: var(--rkrcp-muted); line-height: 1; }

/* ==========================================================================
   4. Header switcher and filter bar
   ========================================================================== */

.rkrcp-petbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 10px;
    margin: 2px 0;
    background: var(--rkrcp-bg);
    border: 1px solid var(--rkrcp-border);
    border-radius: 999px;
    font-size: 12.5px;
    vertical-align: middle;
}

.rkrcp-petbar-label { display: inline-flex; align-items: center; gap: 6px; color: var(--rkrcp-muted); font-weight: 500; }
.rkrcp-petbar-icon { display: inline-flex; color: var(--rkrcp-primary); fill: currentColor; }

.rkrcp-petbar-select {
    padding: 3px 6px;
    border: 1px solid var(--rkrcp-border);
    border-radius: 999px;
    background: var(--rkrcp-surface);
    color: var(--rkrcp-text);
    font-size: 12.5px;
    max-width: 150px;
    cursor: pointer;
}

.rkrcp-petbar-link {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--rkrcp-button-bg);
    color: var(--rkrcp-button-text);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.rkrcp-petbar-link:hover { background: var(--rkrcp-primary-dark); color: #fff; text-decoration: none; }
.rkrcp-petbar-manage { display: inline-flex; color: var(--rkrcp-muted); padding: 2px; }
.rkrcp-petbar-manage:hover { color: var(--rkrcp-primary-dark); }

.rkrcp-filterbar {
    margin: 0 0 22px;
    background: var(--rkrcp-bg);
    border: 1px solid var(--rkrcp-border);
    border-left: 4px solid var(--rkrcp-primary);
    border-radius: var(--rkrcp-radius);
    box-shadow: var(--rkrcp-shadow);
}

/* Hummingbird prints displayTop as a bare child of the header flex row, next to the logo: take a full
   line of its own at the end of the row instead of squeezing over the logo. Classic wraps the hook in a
   column, so this does not apply there. */
.row > .rkrcp-filterbar {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    order: 100;
    margin: 8px 0 12px;
}

.rkrcp-filterbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
}

.rkrcp-filterbar-icon { display: inline-flex; color: var(--rkrcp-primary); }
.rkrcp-filterbar-text { font-size: 14px; font-weight: 600; }
.rkrcp-filterbar-pets { display: flex; flex-wrap: wrap; gap: 6px; }

.rkrcp-filterbar-pet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 4px;
    border: 1px solid var(--rkrcp-border);
    border-radius: 999px;
    background: var(--rkrcp-surface);
    color: var(--rkrcp-text);
    font-size: 12px;
    text-decoration: none;
}

.rkrcp-filterbar-pet img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.rkrcp-filterbar-pet.is-active { border-color: var(--rkrcp-primary); background: var(--rkrcp-badge-bg); color: var(--rkrcp-badge-text); font-weight: 600; }

.rkrcp-filterbar-cta {
    margin-left: auto;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--rkrcp-button-bg);
    color: var(--rkrcp-button-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.rkrcp-filterbar-cta:hover { background: var(--rkrcp-primary-dark); color: #fff; text-decoration: none; }
.rkrcp-filterbar-clear { font-size: 12.5px; color: var(--rkrcp-muted); text-decoration: underline; }

/* ==========================================================================
   5. Recommendation widget
   ========================================================================== */

.rkrcp-widget {
    padding: 20px;
    /* The hook sits outside the theme container on several themes (full-bleed
       sections of hummingbird/classic): cap the block to the same width as the
       core container so the recommendations never span the whole viewport. */
    width: 100%;
    max-width: 1140px;
    margin: 24px auto;
    background: var(--rkrcp-bg);
    border: 1px solid var(--rkrcp-border);
    border-radius: var(--rkrcp-radius);
    box-shadow: var(--rkrcp-shadow);
}

.rkrcp-widget-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--rkrcp-border);
}

.rkrcp-widget-title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.rkrcp-widget-intro { margin-top: 5px; font-size: 13px; color: var(--rkrcp-muted); }
.rkrcp-widget-intro p { margin: 0; }

.rkrcp-widget-pet { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }

.rkrcp-widget-pet img,
.rkrcp-widget-pet-fallback {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rkrcp-primary);
}

.rkrcp-widget-pet-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rkrcp-badge-bg);
    color: var(--rkrcp-primary-dark);
    fill: currentColor;
}

.rkrcp-widget-pet strong { font-weight: 600; }

.rkrcp-widget-list {
    display: grid;
    /* Tracks capped at 340px: with few configured columns (or a very wide
       container) the cards never grow into giant tiles, and the gap always
       absorbs the hover/effect transform without cards touching. */
    grid-template-columns: repeat(var(--rkrcp-cols), minmax(0, 340px));
    justify-content: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rkrcp-widget--list .rkrcp-widget-list { grid-template-columns: minmax(0, 1fr); }

.rkrcp-widget--carousel .rkrcp-widget-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.rkrcp-widget--carousel .rkrcp-widget-card {
    flex: 0 0 min(240px, 78%);
    scroll-snap-align: start;
}

.rkrcp-widget-card {
    position: relative;
    background: var(--rkrcp-surface);
    border: 1px solid var(--rkrcp-border);
    border-radius: calc(var(--rkrcp-radius) - 3px);
    overflow: hidden;
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, border-color 200ms ease;
}

/* The lift must paint over the neighbours instead of visually colliding with
   them while the hover/effect transform is running. */
.rkrcp-widget-card:hover {
    transform: translateY(-4px);
    border-color: var(--rkrcp-primary);
    box-shadow: var(--rkrcp-shadow);
    z-index: 2;
}

.rkrcp-widget-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.rkrcp-widget-link:hover { text-decoration: none; color: inherit; }

.rkrcp-widget-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: var(--rkrcp-bg);
    border-bottom: 1px solid var(--rkrcp-border);
    overflow: hidden;
}

.rkrcp-widget-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.rkrcp-widget-card:hover .rkrcp-widget-thumb img { transform: scale(1.06); }
.rkrcp-widget-thumb-empty { color: var(--rkrcp-border); }

.rkrcp-widget-flag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--rkrcp-accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.rkrcp-widget-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 13px 14px; flex: 1 1 auto; }
.rkrcp-widget-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.rkrcp-widget-desc { font-size: 12px; color: var(--rkrcp-muted); line-height: 1.5; }

.rkrcp-widget-reasons { display: flex; flex-wrap: wrap; gap: 4px; }

.rkrcp-widget-reason {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--rkrcp-badge-bg);
    color: var(--rkrcp-badge-text);
    font-size: 10.5px;
    font-weight: 600;
}

.rkrcp-widget-price { display: flex; align-items: baseline; gap: 6px; }
.rkrcp-widget-price s { font-size: 12px; color: var(--rkrcp-muted); }
.rkrcp-widget-price b { font-size: 17px; color: var(--rkrcp-primary-dark); }

.rkrcp-widget-cta {
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--rkrcp-button-bg);
    color: var(--rkrcp-button-text);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.rkrcp-widget-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--rkrcp-button-bg);
    color: var(--rkrcp-button-text);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.rkrcp-widget-all:hover { background: var(--rkrcp-primary-dark); color: #fff; text-decoration: none; }

.rkrcp-widget-foot { display: flex; justify-content: flex-end; margin-top: 4px; }

.rkrcp-widget-empty { padding: 14px 2px; text-align: center; }
.rkrcp-widget-empty p { margin: 0 0 14px; color: var(--rkrcp-muted); font-size: 14px; }
.rkrcp-widget-empty-html { margin-bottom: 14px; }

/* ==========================================================================
   6. Product page picks
   ========================================================================== */

.rkrcp-picks { margin: 18px 0; }

.rkrcp-picks-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--rkrcp-badge-bg);
    color: var(--rkrcp-badge-text);
    font-size: 13px;
    font-weight: 600;
}

.rkrcp-picks-badge.is-excluded { background: #fbeae8; color: #8d2b20; }
.rkrcp-picks-badge-icon { display: inline-flex; }

.rkrcp-picks-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.rkrcp-picks-reasons li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--rkrcp-surface);
    border: 1px solid var(--rkrcp-border);
    font-size: 11.5px;
    color: var(--rkrcp-muted);
}

.rkrcp-picks-reasons li em { font-style: normal; font-weight: 700; color: var(--rkrcp-primary-dark); }
.rkrcp-picks-reasons li.is-penalty { border-color: #eecac5; background: #fbeae8; }
.rkrcp-picks-reasons li.is-penalty em { color: var(--rkrcp-danger); }

.rkrcp-picks-block { margin-top: 20px; }

.rkrcp-picks-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.rkrcp-picks-pet { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--rkrcp-muted); }
.rkrcp-picks-pet img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

.rkrcp-picks-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rkrcp-picks-card {
    background: var(--rkrcp-surface);
    border: 1px solid var(--rkrcp-border);
    border-radius: calc(var(--rkrcp-radius) - 3px);
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.rkrcp-picks-card:hover { transform: translateY(-3px); box-shadow: var(--rkrcp-shadow); }
.rkrcp-picks-card a { display: flex; flex-direction: column; text-decoration: none; color: inherit; }

.rkrcp-picks-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--rkrcp-bg);
    border-bottom: 1px solid var(--rkrcp-border);
}

.rkrcp-picks-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rkrcp-picks-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 11px 12px; }
.rkrcp-picks-body strong { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--rkrcp-text); }
.rkrcp-picks-price { display: flex; align-items: baseline; gap: 6px; }
.rkrcp-picks-price s { font-size: 11.5px; color: var(--rkrcp-muted); }
.rkrcp-picks-price b { font-size: 15px; color: var(--rkrcp-primary-dark); }

.rkrcp-picks-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rkrcp-primary-dark);
    text-decoration: none;
}

.rkrcp-picks-all:hover { text-decoration: underline; }
.rkrcp-picks-empty { margin: 14px 0; color: var(--rkrcp-muted); font-size: 13.5px; }

/* ==========================================================================
   7. My pets page
   ========================================================================== */

.rkrcp-page { padding: 6px 0 24px; }

.rkrcp-page-intro {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--rkrcp-muted);
}

.rkrcp-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rkrcp-page-counter { margin: 0; font-size: 13px; color: var(--rkrcp-muted); font-variant-numeric: tabular-nums; }

.rkrcp-petlist { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }

.rkrcp-petcard {
    padding: 18px;
    background: var(--rkrcp-bg);
    border: 1px solid var(--rkrcp-border);
    border-radius: var(--rkrcp-radius);
    box-shadow: var(--rkrcp-shadow);
    transition: border-color 200ms ease;
}

.rkrcp-petcard.is-active { border-color: var(--rkrcp-primary); border-width: 2px; padding: 17px; }

.rkrcp-petcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; }

.rkrcp-petcard-photo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--rkrcp-surface);
    border: 2px solid var(--rkrcp-border);
    color: var(--rkrcp-border);
    fill: currentColor;
}

.rkrcp-petcard.is-active .rkrcp-petcard-photo { border-color: var(--rkrcp-primary); }
.rkrcp-petcard-photo img { width: 100%; height: 100%; object-fit: cover; }

.rkrcp-petcard-title { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.rkrcp-petcard-title h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.rkrcp-petcard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rkrcp-inline-form { display: inline; margin: 0; }

.rkrcp-petcard-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 0 0 14px;
    padding: 13px 0;
    border-top: 1px solid var(--rkrcp-border);
    border-bottom: 1px solid var(--rkrcp-border);
}

.rkrcp-petcard-facts dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--rkrcp-muted); }
.rkrcp-petcard-facts dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; }
.rkrcp-petcard-allergies dd { color: var(--rkrcp-danger); font-weight: 500; }

.rkrcp-petcard-picks,
.rkrcp-petcard-reminders,
.rkrcp-petcard-coupons { margin-top: 14px; }

.rkrcp-petcard-picks h3,
.rkrcp-petcard-reminders h3,
.rkrcp-petcard-coupons h3 {
    margin: 0 0 9px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--rkrcp-muted);
}

.rkrcp-petcard-picks ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 9px; list-style: none; margin: 0; padding: 0; }

.rkrcp-petcard-picks a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--rkrcp-border);
    border-radius: calc(var(--rkrcp-radius) - 4px);
    background: var(--rkrcp-surface);
    text-decoration: none;
    transition: border-color 180ms ease, transform 180ms ease;
}

.rkrcp-petcard-picks a:hover { border-color: var(--rkrcp-primary); transform: translateX(2px); }
.rkrcp-petcard-picks strong { font-size: 13px; font-weight: 500; color: var(--rkrcp-text); }
.rkrcp-petcard-picks span { font-size: 13px; font-weight: 700; color: var(--rkrcp-primary-dark); white-space: nowrap; }

.rkrcp-petcard-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rkrcp-primary-dark);
    text-decoration: none;
}

.rkrcp-petcard-more:hover { text-decoration: underline; }

.rkrcp-petcard-reminders ul,
.rkrcp-petcard-coupons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.rkrcp-petcard-reminders li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 9px;
    padding: 8px 12px;
    border-left: 3px solid var(--rkrcp-primary);
    background: var(--rkrcp-surface);
    border-radius: 0 calc(var(--rkrcp-radius) - 6px) calc(var(--rkrcp-radius) - 6px) 0;
    font-size: 13px;
}

.rkrcp-petcard-reminders a { color: var(--rkrcp-text); font-weight: 600; text-decoration: none; }
.rkrcp-petcard-reminders a:hover { color: var(--rkrcp-primary-dark); text-decoration: underline; }
.rkrcp-petcard-reminders time { color: var(--rkrcp-muted); font-size: 12.5px; }
.rkrcp-petcard-reminders em { font-style: normal; color: var(--rkrcp-muted); font-size: 12px; }

.rkrcp-petcard-coupons li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px dashed var(--rkrcp-primary);
    border-radius: calc(var(--rkrcp-radius) - 4px);
    background: var(--rkrcp-badge-bg);
    font-size: 13px;
}

.rkrcp-petcard-coupons code {
    padding: 3px 9px;
    border-radius: 5px;
    background: var(--rkrcp-bg);
    color: var(--rkrcp-badge-text);
    font-weight: 700;
    letter-spacing: 0.6px;
    cursor: pointer;
}

.rkrcp-petcard-coupons span { font-weight: 700; color: var(--rkrcp-primary-dark); }
.rkrcp-petcard-coupons em { font-style: normal; color: var(--rkrcp-muted); font-size: 12px; margin-left: auto; }

.rkrcp-empty-state {
    padding: 44px 20px;
    text-align: center;
    background: var(--rkrcp-bg);
    border: 1px dashed var(--rkrcp-border);
    border-radius: var(--rkrcp-radius);
    color: var(--rkrcp-muted);
}

.rkrcp-empty-state svg { fill: var(--rkrcp-border); margin-bottom: 12px; }
.rkrcp-empty-state p { margin: 0 0 16px; font-size: 14.5px; }
.rkrcp-page-back { margin: 22px 0 0; font-size: 13.5px; }
.rkrcp-page-back a { color: var(--rkrcp-muted); text-decoration: none; }
.rkrcp-page-back a:hover { color: var(--rkrcp-primary-dark); }

/* ==========================================================================
   8. Filtered catalogue
   ========================================================================== */

.rkrcp-catalog-grid {
    display: grid;
    grid-template-columns: repeat(var(--rkrcp-cols), minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rkrcp-catalog-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.rkrcp-catalog-head h1 { margin: 0; font-size: 22px; font-weight: 700; }
.rkrcp-catalog-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--rkrcp-muted); }
.rkrcp-catalog-count { font-size: 13px; color: var(--rkrcp-muted); }

.rkrcp-widget-foot-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

.rkrcp-catalog-pets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--rkrcp-border);
}

.rkrcp-catalog-score {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--rkrcp-badge-bg);
    color: var(--rkrcp-badge-text);
    font-size: 11px;
    font-weight: 700;
}

.rkrcp-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0 0; padding: 0; list-style: none; }

.rkrcp-pager a,
.rkrcp-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--rkrcp-border);
    border-radius: calc(var(--rkrcp-radius) - 4px);
    background: var(--rkrcp-bg);
    color: var(--rkrcp-text);
    font-size: 13px;
    text-decoration: none;
}

.rkrcp-pager a:hover { border-color: var(--rkrcp-primary); color: var(--rkrcp-primary-dark); }
.rkrcp-pager .is-current { background: var(--rkrcp-primary); border-color: var(--rkrcp-primary); color: var(--rkrcp-button-text); font-weight: 700; }

/* ==========================================================================
   9. Pet form
   ========================================================================== */

.rkrcp-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }

.rkrcp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rkrcp-field-full { grid-column: 1 / -1; }
.rkrcp-field-name { grid-column: 1 / -1; max-width: 420px; }
.rkrcp-field-pair { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.rkrcp-field-pair > div { display: flex; flex-direction: column; gap: 6px; }

.rkrcp-field label,
.rkrcp-field-label { font-size: 13px; font-weight: 600; color: var(--rkrcp-text); }

.rkrcp-field label abbr { color: var(--rkrcp-danger); text-decoration: none; margin-left: 2px; }

.rkrcp-field input[type="text"],
.rkrcp-field input[type="number"],
.rkrcp-field input[type="date"],
.rkrcp-field input[type="email"],
.rkrcp-field select,
.rkrcp-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rkrcp-border);
    border-radius: calc(var(--rkrcp-radius) - 5px);
    background: var(--rkrcp-bg);
    color: var(--rkrcp-text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rkrcp-field input:focus,
.rkrcp-field select:focus,
.rkrcp-field textarea:focus {
    border-color: var(--rkrcp-primary);
    box-shadow: 0 0 0 3px var(--rkrcp-badge-bg);
    outline: none;
}

.rkrcp-field small { font-size: 12px; color: var(--rkrcp-muted); }
.rkrcp-field textarea { resize: vertical; min-height: 84px; }

.rkrcp-field-check label,
.rkrcp-field-consent label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 400;
    font-size: 13.5px;
    cursor: pointer;
}

.rkrcp-field-check input,
.rkrcp-field-consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--rkrcp-primary); }

.rkrcp-field-photo { grid-column: 1 / -1; }
.rkrcp-photo-current { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rkrcp-photo-current img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rkrcp-border); }
.rkrcp-photo-remove { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--rkrcp-muted); cursor: pointer; }

.rkrcp-photo-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 20px;
    border: 2px dashed var(--rkrcp-border);
    border-radius: var(--rkrcp-radius);
    background: var(--rkrcp-surface);
    color: var(--rkrcp-muted);
    font-size: 13.5px;
    text-align: center;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease;
}

.rkrcp-photo-drop:hover,
.rkrcp-photo-drop.is-over { border-color: var(--rkrcp-primary); background: var(--rkrcp-badge-bg); color: var(--rkrcp-primary-dark); }

.rkrcp-photo-drop-icon { color: var(--rkrcp-primary); }
.rkrcp-photo-drop em { font-style: normal; font-size: 11.5px; opacity: 0.8; }
.rkrcp-photo-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rkrcp-photo-preview { display: block; margin-top: 10px; }
.rkrcp-photo-preview[hidden] { display: none; }
.rkrcp-photo-preview img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rkrcp-primary); }

.rkrcp-tag-groups { display: flex; flex-direction: column; gap: 12px; }

.rkrcp-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--rkrcp-border);
    border-radius: calc(var(--rkrcp-radius) - 4px);
    background: var(--rkrcp-surface);
}

.rkrcp-tag-group legend {
    flex: 0 0 100%;
    padding: 0 7px;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rkrcp-muted);
    width: auto;
}

.rkrcp-tag-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid var(--rkrcp-border);
    border-radius: 999px;
    background: var(--rkrcp-bg);
    font-size: 12.5px;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.rkrcp-tag-option:hover { border-color: var(--rkrcp-primary); }
.rkrcp-tag-option input { accent-color: var(--rkrcp-primary); margin: 0; }

.rkrcp-tag-option:has(input:checked),
.rkrcp-tag-option.is-checked {
    background: var(--rkrcp-badge-bg);
    border-color: var(--rkrcp-primary);
    color: var(--rkrcp-badge-text);
    font-weight: 600;
}

.rkrcp-field-counter {
    font-size: 11.5px;
    color: var(--rkrcp-muted);
    text-align: right;
}

.rkrcp-field-counter.is-over { color: var(--rkrcp-danger); font-weight: 700; }

.rkrcp-btn[data-busy="1"] { opacity: 0.65; cursor: progress; }

.rkrcp-btn[data-busy="1"]::after {
    content: "";
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
    animation: rkrcp-front-spin 720ms linear infinite;
}

@keyframes rkrcp-front-spin {
    to { transform: rotate(360deg); }
}


.rkrcp-form-legal {
    margin: 18px 0 0;
    padding: 13px 15px;
    border-radius: calc(var(--rkrcp-radius) - 4px);
    background: var(--rkrcp-surface);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--rkrcp-muted);
}

.rkrcp-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.rkrcp-form-error { border-color: var(--rkrcp-danger) !important; }

/* ==========================================================================
   10. Toasts and responsive
   ========================================================================== */

.rkrcp-toasts {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(340px, calc(100vw - 36px));
}

.rkrcp-toast {
    padding: 12px 15px;
    border-radius: calc(var(--rkrcp-radius) - 4px);
    background: var(--rkrcp-text);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 10px 28px rgba(17, 20, 23, 0.28);
    border-left: 4px solid var(--rkrcp-primary);
}

.rkrcp-toast-success { border-left-color: var(--rkrcp-primary); }
.rkrcp-toast-error { border-left-color: var(--rkrcp-danger); }
.rkrcp-toast-warning { border-left-color: var(--rkrcp-accent); }

@media (max-width: 991px) {
    .rkrcp-widget-list { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
    .rkrcp-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rkrcp-widget--carousel .rkrcp-widget-card { flex-basis: 46%; }
}

@media (max-width: 575px) {
    .rkrcp-widget { padding: 15px; }
    .rkrcp-widget-list,
    .rkrcp-catalog-grid { grid-template-columns: minmax(0, 1fr); }
    .rkrcp-widget--carousel .rkrcp-widget-card { flex-basis: 82%; }
    .rkrcp-petcard { padding: 14px; }
    .rkrcp-petcard-top { gap: 10px; }
    .rkrcp-petcard-actions { width: 100%; }
    .rkrcp-filterbar-cta { margin-left: 0; }
    .rkrcp-field-pair { grid-template-columns: minmax(0, 1fr); }
    .rkrcp-petbar { border-radius: var(--rkrcp-radius); }
}

/* ==========================================================================
   Appointment booking wizard (v1.2.0)
   ========================================================================== */

.rkrcp-booking { max-width: 860px; margin: 0 auto; padding: 22px 0 40px; }
.rkrcp-book-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rkrcp-book-head h1 { font-size: 24px; margin: 0; }
.rkrcp-book-head p { margin: 4px 0 0; color: var(--rkrcp-grey-500, #6b7280); }
.rkrcp-book-link { white-space: nowrap; }
.rkrcp-book-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.rkrcp-book-service { border: 1px solid var(--rkrcp-grey-200, #e2e5e8); border-radius: 12px; padding: 16px; background: #fff; }
.rkrcp-book-service header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rkrcp-book-service h3 { margin: 0; font-size: 16px; }
.rkrcp-book-min { color: var(--rkrcp-grey-500, #6b7280); font-size: 12px; white-space: nowrap; }
.rkrcp-book-modes { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rkrcp-book-month { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.rkrcp-book-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.rkrcp-book-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px;
    border: 1px solid var(--rkrcp-grey-200, #e2e5e8); border-radius: 8px; text-decoration: none; color: inherit; background: #fff; }
.rkrcp-book-day b { font-size: 15px; }
.rkrcp-book-day small { font-size: 10.5px; color: var(--rkrcp-grey-500, #6b7280); }
.rkrcp-book-day.is-off { opacity: 0.45; cursor: not-allowed; }
.rkrcp-book-day:not(.is-off):hover { border-color: var(--rkrcp-primary, #77a632); }
.rkrcp-book-weekday { text-align: center; font-size: 11.5px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .02em; color: var(--rkrcp-grey-500, #6b7280); padding: 2px 0 4px; }
.rkrcp-book-day.is-blank { border: 0; background: transparent; visibility: hidden; pointer-events: none; }
.rkrcp-book-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.rkrcp-book-slot { padding: 8px 14px; border: 1px solid var(--rkrcp-grey-200, #e2e5e8); border-radius: 8px; background: #fff; text-decoration: none; color: inherit; }
.rkrcp-book-slot:hover { border-color: var(--rkrcp-primary, #77a632); }
.rkrcp-book-form { display: grid; gap: 12px; max-width: 520px; }
.rkrcp-book-form .rkrcp-field { display: grid; gap: 4px; }
.rkrcp-book-form input, .rkrcp-book-form select, .rkrcp-book-form textarea {
    padding: 9px 10px; border: 1px solid var(--rkrcp-grey-200, #e2e5e8); border-radius: 8px; }
.rkrcp-book-hint { color: var(--rkrcp-grey-500, #6b7280); font-size: 13px; }
.rkrcp-book-back { margin-top: 14px; }
.rkrcp-book-done { border: 1px solid var(--rkrcp-grey-200, #e2e5e8); border-radius: 12px; padding: 20px; background: #fff; }
.rkrcp-book-summary { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 4px; }
.rkrcp-book-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rkrcp-book-list li { display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    border: 1px solid var(--rkrcp-grey-200, #e2e5e8); border-radius: 10px; padding: 10px 14px; background: #fff; }
.rkrcp-book-when { font-weight: 700; }
.rkrcp-book-state { padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.rkrcp-book-state-confirmed { background: var(--rkrcp-success-light, #e8f5e9); color: var(--rkrcp-success, #3f9142); }
.rkrcp-book-state-requested { background: var(--rkrcp-warning-light, #fdf3e0); color: var(--rkrcp-warning, #d68910); }
.rkrcp-book-state-cancelled, .rkrcp-book-state-no_show, .rkrcp-book-state-completed { background: var(--rkrcp-grey-100, #f0f2f4); color: var(--rkrcp-grey-500, #6b7280); }
.rkrcp-book-cancel { margin-left: auto; color: var(--rkrcp-danger, #c0392b); }
.rkrcp-book-empty { color: var(--rkrcp-grey-500, #6b7280); }
@media (max-width: 640px) {
    /* The calendar keeps its 7 weekday columns, just tighter. */
    .rkrcp-book-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
    .rkrcp-book-day { padding: 6px 1px; }
    .rkrcp-book-day small { font-size: 9px; }
    .rkrcp-book-weekday { font-size: 10px; }
    .rkrcp-book-head { flex-direction: column; gap: 4px; }
}

/* ==========================================================================
   Hours & rates table of the booking page (v1.2.9)
   Published from Agenda > Booking page; themed with the --rkrcp-* tokens.
   ========================================================================== */

.rkrcp-rates { margin-top: 26px; padding: 18px 18px 14px; border: 1px solid var(--rkrcp-grey-200, #e2e5e8); border-radius: 12px; background: #fff; }
.rkrcp-rates-title { margin: 0 0 12px; font-size: 18px; }
.rkrcp-rates-subtitle { margin: 20px 0 10px; font-size: 15px; }
.rkrcp-rates-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rkrcp-rates-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rkrcp-rates-table th, .rkrcp-rates-table td { padding: 9px 12px; border-bottom: 1px solid var(--rkrcp-grey-200, #e2e5e8); text-align: left; vertical-align: top; }
.rkrcp-rates-table thead th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--rkrcp-grey-500, #6b7280); border-bottom: 2px solid var(--rkrcp-grey-200, #e2e5e8); white-space: nowrap; }
.rkrcp-rates-table tbody tr:last-child th, .rkrcp-rates-table tbody tr:last-child td { border-bottom: 0; }
.rkrcp-rates-service { font-weight: 700; }
.rkrcp-rates-service small { display: block; margin-top: 2px; font-weight: 400; font-size: 12px; color: var(--rkrcp-grey-500, #6b7280); }
.rkrcp-rates-duration, .rkrcp-rates-modes { color: var(--rkrcp-grey-500, #6b7280); white-space: nowrap; }
.rkrcp-rates-price { font-weight: 700; color: var(--rkrcp-primary-dark, #5d8426); white-space: nowrap; }
.rkrcp-rates-hours th[scope="row"] { font-weight: 600; white-space: nowrap; }
.rkrcp-rates-hours td { white-space: nowrap; }
.rkrcp-rates-closed { color: var(--rkrcp-grey-500, #6b7280); font-style: italic; opacity: 0.75; }
.rkrcp-rates-note { margin: 12px 0 0; font-size: 12.5px; color: var(--rkrcp-grey-500, #6b7280); }
/* Home page placement (displayHome hook): the wrapper carries the #rkrcp-front
   token scope; the section reuses the exact skin of the booking page. */
.rkrcp-rates-home { margin: 26px auto; }
.rkrcp-rates-home .rkrcp-rates { margin-top: 0; }
@media (max-width: 640px) {
    .rkrcp-rates { padding: 14px 12px 10px; }
    .rkrcp-rates-table th, .rkrcp-rates-table td { padding: 8px 9px; }
    .rkrcp-rates-home { margin: 18px auto; }
}
