/* portal.css — tilausportaali, yhtenäinen teema style.css:n kanssa */

/* Skaalataan koko sivusto 20% isommaksi (1rem = 19.2px) */
html { font-size: 120%; }

/* --- Reset body for portal --- */
body.pk-portal {
    display: block;
    background: var(--pk-bg, #eee8de);
    min-height: 100vh;
    color: var(--pk-text, #2c2820);
    font-family: var(--pk-sans, 'DM Sans', Arial, sans-serif);
}

/* =====================
   HEADER
   ===================== */
.pk-header {
    position: relative;
    z-index: 100;
    background: #1a1410;
    border-bottom: none;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.pk-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--pk-header-height, 90px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pk-header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.pk-header-logo img {
    height: var(--pk-logo-img-size, 68px);
    width: auto;
}
.pk-header-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.pk-header-sub {
    font-size: var(--pk-font-header-sub, 0.7rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f0e8d8;
}
.pk-header-name {
    font-family: var(--pk-serif, 'Cormorant Garamond', serif);
    font-size: var(--pk-font-logo, 1.7rem);
    font-weight: 400;
    color: #f0e8d8;
    letter-spacing: 0.04em;
}
.pk-header-name em {
    font-style: normal;
    color: #f0e8d8;
}
.pk-header-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: 1.5rem;
}
.pk-nav-link {
    font-size: var(--pk-font-nav, 0.8rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c8bfb0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    text-align: center;
}
.pk-nav-link:hover { color: var(--pk-gold, #b8913a); }
.pk-nav-logout {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f0e8d8;
    text-decoration: none;
    border: 1.5px solid #f0e8d8;
    padding: 6px 20px;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.pk-nav-logout:hover {
    background: var(--pk-gold, #b8913a);
    color: #fff;
}
/* Oma tili -sivu */
.pk-oma-tili-wrap {
    margin-top: 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 1.5rem 4rem;
}
.pk-oma-tili-otsikko {
    font-family: var(--pk-serif, 'Cormorant Garamond', serif);
    font-size: clamp(1.5rem, 4vw, 2.167rem);
    font-weight: 400;
    color: #1a1410;
    margin-bottom: 1.5rem;
}

/* Tabit */
.pk-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--pk-border, #d9c9b8);
    padding-bottom: 0;
}
.pk-tabs .pk-tab {
    background: none;
    border: none;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #1a1410 !important;
    cursor: pointer;
    padding: .6rem 1rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
}
.pk-tabs .pk-tab--aktiivinen {
    border-bottom-color: #1a1410;
}

.pk-oma-tili-vaihda-salasana { margin: 1.25rem 0 .5rem; border-top: 1px solid var(--pk-border, #d9c9b8); padding-top: 1.25rem; }
.pk-vaihda-toggle {
    background: none;
    border: none;
    color: #1a1410;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    letter-spacing: .04em;
}
.pk-vaihda-toggle:hover { text-decoration: underline; }

/* Ruokavaliot */
.pk-ruoka-ryhma { margin-bottom: 1.5rem; }
.pk-ruoka-ryhma-otsikko { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #888 !important; margin-bottom: .75rem; }
.pk-ruoka-valinnat { display: flex; flex-wrap: wrap; gap: .6rem; }
.pk-ruoka-valinta {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--pk-bg2, #faf8f5);
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: 8px;
    padding: .5rem .85rem;
    cursor: pointer;
    font-size: .88rem;
    color: #1a1410 !important;
    transition: border-color .15s;
}
.pk-ruoka-valinta:has(input:checked) { border: 3.5px solid var(--pk-gold, #b8913a); background: #fffbf2; }
.pk-ruoka-valinta input { display: none; }
.pk-ruoka-valinta span { color: #1a1410 !important; }

.pk-nav-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.pk-nav-logout--ulos {
    font-size: 0.68rem;
    opacity: 0.7;
    background: transparent;
    border-color: rgba(255,255,255,.2);
}
.pk-nav-logout--ulos:hover {
    opacity: 1;
    background: var(--pk-gold, #b8913a);
}
.pk-nav-soita {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border: 1.5px solid var(--pk-gold, #b8913a);
    border-radius: 8px;
    padding: 6px 16px;
    transition: background 0.2s;
    line-height: 1.3;
}
.pk-nav-soita:hover { background: rgba(184,145,58,.12); }
.pk-nav-soita-ohje {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c8bfb0;
    font-weight: 400;
    white-space: nowrap;
}
.pk-nav-soita-nro {
    font-size: var(--pk-font-phone, 0.95rem);
    font-weight: 600;
    color: #f0e8d8;
    letter-spacing: 0.06em;
}
.pk-nav-items {
    display: contents;
}

/* Hamburger */
.pk-mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
}
.pk-mobile-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f0e8d8;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}
.pk-mobile-menu.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pk-mobile-menu.open span:nth-child(2) { opacity: 0; }
.pk-mobile-menu.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.pk-mobile-nav {
    display: none;
    position: fixed;
    top: var(--pk-header-height, 70px);
    left: 0; right: 0; bottom: 0;
    background: #1a1410;
    z-index: 99;
    overflow-y: auto;
}
.pk-mobile-nav.open { display: block; }
.pk-mobile-nav-inner {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0.25rem;
}
.pk-mobile-nav-items {
    display: contents;
}
.pk-mobile-nav-link {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f0e8d8;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: color 0.2s;
}
.pk-mobile-nav-link:hover { color: var(--pk-gold, #b8913a); }
.pk-mobile-nav-phone {
    color: #f0e8d8;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
}
.pk-mobile-nav-logout {
    margin-top: 1rem;
    color: #f0e8d8;
    border: 1.5px solid #f0e8d8;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    text-align: center;
    border-bottom: 1.5px solid #f0e8d8;
}

/* =====================
   KOMPONENTIT: card, field, btn, msg
   ===================== */
.pk-card {
    background: var(--pk-bg2, #faf8f5);
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: var(--pk-radius, 16px);
    box-shadow: var(--pk-shadow, 0 6px 28px rgba(44,40,32,.10));
    padding: 2rem 2rem 1.75rem;
}
.pk-card h2 {
    font-family: var(--pk-serif, 'Cormorant Garamond', serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: #1a1410;
    margin: 0 0 1.5rem;
}

.pk-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1rem;
}
.pk-field label, .pk-field > span {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #1a1410;
    display: block;
    margin-bottom: .4rem;
}
.pk-field input {
    padding: .7rem 1rem;
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--pk-sans, 'DM Sans', Arial, sans-serif);
    background: #fff;
    color: #1a1410;
    transition: border-color .15s;
}
.pk-field input:focus {
    outline: none;
    border-color: var(--pk-gold, #b8913a);
}
.pk-field input[readonly] {
    background: #f5f2ee;
    color: #888;
    cursor: default;
}

.pk-btn {
    display: block;
    width: 100%;
    padding: .85rem 1.5rem;
    background: #1a1410;
    color: #f0e8d8;
    border: none;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 1.25rem;
    transition: background .15s;
}
.pk-btn:hover:not(:disabled) { background: var(--pk-gold, #b8913a); }
.pk-btn:disabled { opacity: .55; cursor: default; }

.pk-msg {
    font-size: .9rem;
    padding: .65rem .9rem;
    border-radius: 6px;
    margin-bottom: .75rem;
    display: none;
}
.pk-msg.ok   { display: block; background: #e8f4e8; color: #2a6b2a; border: 1px solid #b3ddb3; }
.pk-msg.virhe { display: block; background: #fdf0f0; color: #9b2020; border: 1px solid #e8b3b3; }

.pk-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
@media (max-width: 420px) {
    .pk-field-row { grid-template-columns: 1fr; }
}

.pk-links {
    margin-top: 1.25rem;
    font-size: .85rem;
    color: #888;
    text-align: center;
}
.pk-links a {
    color: #1a1410;
    text-decoration: underline;
}
.pk-links a:hover { text-decoration: underline; }

/* =====================
   AUTH WRAP (kirjaudu / rekisteroidy)
   ===================== */
.pk-auth-wrap {
    margin-top: 0;
    min-height: calc(100vh - var(--pk-header-height, 90px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    gap: 1.5rem;
}
.pk-auth-wrap .pk-card {
    width: 100%;
    max-width: 440px;
}
.pk-auth-wrap .pk-msg {
    width: 100%;
    max-width: 440px;
}

/* =====================
   HERO
   ===================== */
.pk-hero {
    margin-top: 0;
    background: var(--pk-bg2, #faf8f5);
    padding: 80px 2rem 90px;
    border-bottom: 1.5px solid var(--pk-border, #d9c9b8);
}
.pk-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.pk-hero-tag {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #1a1410;
    margin-bottom: 1.2rem;
    font-weight: 500;
}
.pk-hero-title {
    font-family: var(--pk-serif, 'Cormorant Garamond', serif);
    font-size: var(--pk-font-hero, clamp(1.8rem, 4.5vw, 2.8rem));
    font-weight: 500;
    color: #1a1410;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}
.pk-hero-title em {
    font-style: italic;
    color: #1a1410;
}
.pk-hero-lead {
    font-size: 1.05rem;
    color: #2c2820;
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.pk-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.pk-btn-hero {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    background: var(--pk-gold, #b8913a);
    color: #fff;
    box-shadow: 0 4px 14px rgba(184,145,58,.25);
}
.pk-btn-hero:hover { background: #a07828; }
.pk-btn-hero--ghost {
    background: transparent;
    color: #1a1410;
    border: 2px solid #2c2820;
    box-shadow: none;
}
.pk-btn-hero--ghost:hover {
    background: #2c2820;
    color: #fff;
}

/* =====================
   OSIO-KORTIT
   ===================== */
.pk-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}
.pk-section-card {
    background: var(--pk-bg2, #faf8f5);
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: var(--pk-radius, 16px);
    box-shadow: var(--pk-shadow, 0 6px 28px rgba(44,40,32,.10));
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.pk-section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(44,40,32,.15);
}
/* Poistaa vanhat taustaelementit */
.pk-section-card-bg { display: none; }
.pk-section-card-inner {
    position: relative;
    z-index: 1;
}
.pk-section-tag {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a1410;
    margin-bottom: 1rem;
    font-weight: 500;
    border: 1px solid var(--pk-border, #d9c9b8);
    padding: 4px 12px;
    border-radius: 6px;
}
.pk-section-title {
    font-family: var(--pk-serif, 'Cormorant Garamond', serif);
    font-size: var(--pk-font-section, clamp(1.5rem, 3vw, 2rem));
    font-weight: 500;
    color: #1a1410;
    line-height: 1.15;
    margin-bottom: 0.8rem;
}
.pk-section-desc {
    font-size: 0.95rem;
    color: #2c2820;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 1.5rem;
}
.pk-section-cta {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1410;
    font-weight: 600;
}
.pk-section-card:hover .pk-section-cta {
    text-decoration: underline;
}

/* =====================
   TOIMITUSALUE
   ===================== */
.pk-toimitus {
    background: var(--pk-bg, #eee8de);
    padding: 3rem 2rem 2rem;
}
@media (max-width: 640px) {
    .pk-toimitus { padding: 2rem 1rem 1.5rem; }
}
.pk-toimitus-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.pk-toimitus-title {
    font-family: var(--pk-serif, 'Cormorant Garamond', serif);
    font-size: var(--pk-font-toimitus, clamp(1.667rem, 4vw, 2.5rem));
    font-weight: 500;
    color: #1a1410;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.pk-toimitus-lead {
    font-size: 1rem;
    color: #2c2820;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.pk-toimitus-alueet {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.pk-toimitus-alue {
    flex: 0 1 180px;
    background: var(--pk-bg, #eee8de);
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.pk-toimitus-alue-nimi {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1410;
    letter-spacing: 0.04em;
}
.pk-toimitus-alue-tieto {
    font-size: 0.8rem;
    color: #1a1410;
    font-weight: 500;
}
.pk-toimitus-alue-paikat {
    font-size: 0.75rem;
    color: #7a6a5a;
    line-height: 1.4;
    margin-top: 0.15rem;
}
.pk-toimitus-yhteystiedot {
    font-size: 0.88rem;
    color: #2c2820;
}
.pk-toimitus-yhteystiedot a {
    color: #1a1410;
    text-decoration: none;
}
.pk-toimitus-yhteystiedot a:hover { text-decoration: underline; }

/* =====================
   FOOTER
   ===================== */
.pk-footer {
    background: var(--pk-bg2, #faf8f5);
    border-top: 1.5px solid var(--pk-border, #d9c9b8);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--pk-text, #2c2820);
    margin-top: 2rem;
}

/* =====================
   RESPONSIIVISUUS
   ===================== */
@media (min-width: 768px) and (max-width: 1100px) {
    .pk-hero { padding: 60px 2rem 70px; }
    .pk-sections { gap: 1.5rem; }
}

@media (max-width: 767px) {
    .pk-header-inner { padding: 0 1rem; }
    .pk-header-nav { display: none; }
    .pk-mobile-menu { display: block; }
    .pk-hero { padding: 48px 1.25rem 56px; }
    .pk-sections {
        grid-template-columns: 1fr;
        padding: 0 1.25rem;
        margin: 2rem auto;
    }
    .pk-section-card { padding: 2rem 1.5rem; }
}

@media (max-width: 700px) {
    .pk-hero-title { font-size: 2rem; }
    .pk-hero-actions { flex-direction: column; align-items: center; }
    .pk-btn-hero { width: 100%; max-width: 280px; text-align: center; }
}

/* =====================
   LOUNAS-TILAUSSIVU
   ===================== */
.pk-lounas-hero {
    margin-top: 0;
    background: #faf8f5;
    padding: 20px 2rem 22px;
    text-align: center;
}
.pk-lounas-hero-inner { max-width: 860px; margin: 0 auto; }
.pk-lounas-otsikko {
    font-family: var(--pk-serif, 'Cormorant Garamond', serif);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 400;
    color: #2c2820;
    line-height: 1.1;
    margin-bottom: .75rem;
}
.pk-lounas-otsikko em { font-style: italic; color: #1a1410; }
.pk-lounas-kuvaus { font-size: 1rem; color: #2c2820; opacity: .7; }

.pk-lounas-sisalto {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem 1rem;
}

/* Viikonloppuruoka */
.pk-vkl-sisalto {
    margin-top: .5rem;
    padding-bottom: 3rem;
}
.pk-vkl-infopalkki {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    padding: .85rem 1.25rem;
    background: #faf6ef;
    border: 1.5px solid #d9c9b8;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: .9rem;
    color: #2c2820;
}
.pk-vkl-hinta { color: #b8913a; font-weight: 700; }

.pk-leipomo-sisalto {
    max-width: 900px;
    margin: 0 auto 0;
    padding: 2.5rem 2rem 4rem;
}

/* Viikkonavigaatio */
.pk-viikko-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.pk-viikko-btn {
    background: var(--pk-bg2, #faf8f5);
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: 8px;
    width: 38px; height: 38px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .15s;
    display: flex; align-items: center; justify-content: center;
}
.pk-viikko-btn:hover:not(:disabled) { background: var(--pk-border, #d9c9b8); }
.pk-viikko-btn:disabled { opacity: .35; cursor: default; }
.pk-viikko-label {
    font-family: var(--pk-serif, 'Cormorant Garamond', serif);
    font-size: 1.62rem;
    font-weight: 400;
    color: #1a1410;
}

/* Päiväkortit */
.pk-kalenteri {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.pk-kalenteri-loader { grid-column: 1/-1; padding: 2rem; text-align: center; color: #888; }
.pk-paivakortti {
    background: var(--pk-bg2, #faf8f5);
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: var(--pk-radius, 16px);
    padding: 1.1rem 1rem;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    display: flex; flex-direction: column; gap: .5rem;
}
.pk-paivakortti:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44,40,32,.12); }
.pk-paivakortti--valittu {
    border-color: var(--pk-gold, #b8913a);
    background: #fffbf4;
    box-shadow: 0 0 0 2px var(--pk-gold, #b8913a);
}
.pk-paivakortti-header { display: flex; justify-content: space-between; align-items: baseline; }
.pk-paivakortti-nimi { font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #1a1410; }
.pk-paivakortti-pvm { font-size: .86rem; color: #1a1410; }
.pk-paivakortti-ruoka { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.pk-paivakortti-ruoka-info { flex: 1; min-width: 0; }
.pk-paivakortti-ruoka-nimi { font-size: 1.02rem; line-height: 1.4; color: #1a1410; font-weight: 500; display: block; }
.pk-ruoka-valinta-btn {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
    border: 1.5px solid var(--pk-border, #d9c9b8);
    background: #f8f4ee; color: #1a1410;
    font-size: 1.1rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; margin-top: .1rem;
    transition: background .15s, border-color .15s;
}
.pk-ruoka-valinta-btn:hover { background: var(--pk-gold, #b8913a); color: #fff; border-color: var(--pk-gold); }
.pk-ruoka-valinta-btn--valittu { background: var(--pk-gold, #b8913a); color: #fff; border-color: var(--pk-gold); }
.pk-paivakortti-merkit { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.pk-merkki { font-size: .74rem; font-weight: 700; background: #1a1410; color: #f0e8d8; border-radius: 3px; padding: 1px 5px; display: inline-flex; align-items: center; gap: 3px; }
.pk-merkki-selite { font-weight: 400; opacity: .85; }
.pk-paivakortti-tyhja { font-size: .98rem; color: #888; }
.pk-paivakortti-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .90rem; }
.pk-paivakortti-hinta { color: #1a1410; }
.pk-paivakortti-valitse { color: #1a1410; font-weight: 600; }
.pk-paivakortti-umpeutunut { font-size: .86rem; color: #1a1410; font-style: italic; }

/* Tilauskortti */
.pk-tilaus-panel {
    background: var(--pk-bg2, #faf8f5);
    border: 1.5px solid var(--pk-gold, #b8913a);
    border-radius: var(--pk-radius, 16px);
    margin-bottom: 2rem;
}
.pk-tilaus-panel-inner { padding: 1.75rem 1.5rem; }
.pk-tilaus-otsikko {
    font-family: var(--pk-serif, 'Cormorant Garamond', serif);
    font-size: 1.6rem; font-weight: 400; color: #1a1410; margin-bottom: 1.25rem;
}
.pk-tilaus-rivi {
    background: #fff;
    border: 1px solid var(--pk-border, #d9c9b8);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: .75rem;
}
.pk-tilaus-rivi-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; color: #1a1410; }
.pk-annos-rivi-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.pk-annos-ruoka-valinta { font-size: .85rem; font-family: var(--pk-sans); border: 1px solid var(--pk-border, #d9c9b8); border-radius: 6px; padding: .3rem .5rem; background: #faf8f5; color: #2c2820; flex: 1; }
.pk-annos-ruoka-nimi { font-size: .85rem; color: #2c2820; }
.pk-annos-kontrollit { display: flex; align-items: center; gap: .5rem; }
.pk-annos-btn {
    background: var(--pk-bg, #eee8de); border: 1px solid var(--pk-border, #d9c9b8);
    border-radius: 6px; width: 28px; height: 28px; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.pk-annos-maara { font-size: .85rem; min-width: 70px; text-align: center; }
.pk-rivi-poista { background: none; border: none; color: #c00; cursor: pointer; font-size: 1rem; padding: 4px 8px; }
.pk-annos-rivi { padding: .5rem 0; border-top: 1px solid #f0ece8; display: flex; align-items: flex-start; gap: 1rem; }
.pk-annos-nro { font-size: .75rem; font-weight: 600; color: #1a1410; min-width: 56px; padding-top: 3px; }
.pk-annos-maara { font-size: .85rem; min-width: 70px; text-align: center; color: #1a1410; }
.pk-annos-valinnat { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pk-annos-valinta { display: flex; align-items: center; gap: 5px; font-size: .82rem; cursor: pointer; color: #1a1410; }
.pk-tilaus-vieras-otsikko { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1a1410; margin-bottom: .75rem; }
.pk-tilaus-osoite { margin: 1rem 0; }
.pk-tilaus-osoite label span { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem; color: #1a1410; }
.pk-tilaus-osoite input { width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--pk-border, #d9c9b8); border-radius: 8px; font-size: 1rem; font-family: var(--pk-sans); color: #1a1410; }
.pk-tilaus-osoite input:focus { border-color: var(--pk-gold); outline: none; }

/* Vieras-kentät tilauskortin sisällä */
#pk-vieras-kentat { margin-bottom: 1rem; border-top: 1px solid var(--pk-border, #d9c9b8); padding-top: 1rem; }
.pk-tilaus-vieras-kentat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.pk-tilaus-vieras-kentat-grid .pk-field { margin-bottom: 0; }
.pk-tilaus-vieras-kentat-grid .pk-field:last-child { grid-column: 1 / -1; }
@media (max-width: 560px) { .pk-tilaus-vieras-kentat-grid { grid-template-columns: 1fr; } }

/* Rekisteröitymis-CTA vierastilauksen jälkeen */
.pk-rek-cta {
    background: #fffbf2;
    border: 1.5px solid var(--pk-gold, #b8913a);
    border-radius: var(--pk-radius, 16px);
    margin-bottom: 2rem;
}
.pk-rek-cta-inner {
    padding: 1.5rem;
}
.pk-rek-cta-inner strong {
    display: block;
    font-size: 1rem;
    color: #1a1410;
    margin-bottom: .5rem;
}
.pk-rek-cta-inner p {
    font-size: .9rem;
    color: #5a4e3a;
    line-height: 1.6;
    margin: 0 0 1rem;
}
.pk-rek-cta-linkki {
    display: inline-block;
    width: auto;
    padding: .65rem 2rem;
    font-size: .82rem;
    background: var(--pk-gold, #b8913a);
    color: #fff;
}
.pk-tilaus-yhteensa { font-size: 1.1rem; font-weight: 600; color: #1a1410; margin-bottom: 1rem; }

/* Historia */
.pk-historia { margin-top: 1rem; }
.pk-historia-otsikko { font-family: var(--pk-serif); font-size: 1.4rem; font-weight: 400; color: #1a1410; margin-bottom: 1rem; }
.pk-historia-rivi {
    display: flex; align-items: center; gap: 1rem;
    background: var(--pk-bg2); border: 1px solid var(--pk-border, #d9c9b8);
    border-radius: 10px; padding: .9rem 1rem; margin-bottom: .6rem;
}
.pk-historia-pvm { font-weight: 600; min-width: 90px; font-size: .9rem; }
.pk-historia-tiedot { flex: 1; min-width: 0; }
.pk-historia-ruoat { font-size: .85rem; color: #2c2820; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-historia-meta { font-size: .75rem; color: #1a1410; margin-top: 2px; }
.pk-historia-status { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.pk-historia-status--uusi { background: #e8f4e8; color: #2a6b2a; }
.pk-historia-status--valmistettu { background: #e8f0fb; color: #1a4a9a; }
.pk-historia-status--matkalla { background: #fff3cd; color: #856404; }
.pk-historia-status--toimitettu { background: #d4edda; color: #155724; }
.pk-historia-status--peruutettu { background: #f8d7da; color: #721c24; }
.pk-historia-peruuta { background: none; border: 1px solid #c00; color: #c00; border-radius: 6px; padding: 4px 10px; font-size: .75rem; cursor: pointer; white-space: nowrap; }

/* Vieraskirjaudu-info */
.pk-vieras-kirjaudu-info {
    margin: 0 0 .9rem;
    padding: .65rem .9rem;
    background: #faf6ef;
    border: 1.5px solid #d9c9b8;
    border-radius: 8px;
    font-size: .9rem;
    color: #2c2820;
}
.pk-vieras-kirjaudu-info a { color: var(--pk-gold, #b8913a); font-weight: 600; text-decoration: underline; }
.pk-vieras-kirjaudu-info a:hover { color: #1a1410; }

/* Tilausvahvistus-modaali */
.pk-tilaus-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(26,20,16,.6);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; animation: pkFade .2s ease-out;
}
@keyframes pkFade { from { opacity: 0; } to { opacity: 1; } }
.pk-tilaus-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    max-width: 560px; width: 100%;
    max-height: 92vh; overflow-y: auto;
    position: relative;
    font-family: var(--pk-sans);
    animation: pkSlideUp .25s ease-out;
}
@keyframes pkSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pk-tilaus-modal-close {
    position: absolute; top: .75rem; right: .75rem;
    background: rgba(255,255,255,.85); border: none;
    width: 32px; height: 32px; border-radius: 50%;
    font-size: 1.4rem; line-height: 1; cursor: pointer;
    color: #1a1410; z-index: 2;
}
.pk-tilaus-modal-close:hover { background: #fff; }
.pk-tilaus-modal-header {
    padding: 1.5rem 2rem 1.25rem;
    border-radius: 16px 16px 0 0;
}
.pk-tilaus-modal-body { padding: 1.5rem 2rem; }
.pk-tilaus-modal-footer {
    padding: 1rem 2rem 1.5rem;
    display: flex; justify-content: flex-end;
}
.pk-tilaus-modal-ok { min-width: 140px; }
@media (max-width: 600px) {
    .pk-tilaus-modal-header,
    .pk-tilaus-modal-body,
    .pk-tilaus-modal-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 900px) {
    .pk-kalenteri { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .pk-kalenteri { grid-template-columns: 1fr 1fr; }
    .pk-lounas-sisalto { padding: 1.5rem 1rem 3rem; }
    .pk-historia-rivi { flex-wrap: wrap; }
}
@media (max-width: 400px) {
    .pk-kalenteri { grid-template-columns: 1fr; }
}


/* ============================================================
   Toimitusalue shortcode [pk_toimitusalue]
   ============================================================ */
#pk-toimitusalue-wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.pk-ta-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 640px) {
    .pk-ta-two-col { grid-template-columns: 1fr; gap: 1.25rem; }
    #pk-toimitusalue-wrap { padding: 0 1rem; }
}
.pk-ta-card {
    background: #fff;
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (max-width: 640px) {
    .pk-ta-card { padding: 1.5rem 1.25rem; border-radius: 14px; }
}
.pk-ta-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1410;
    margin: 0;
    line-height: 1.2;
}
@media (max-width: 640px) {
    .pk-ta-card-title { font-size: 1.25rem; }
}
.pk-ta-card-desc {
    font-size: 0.9rem;
    color: #6b5c4e;
    margin: 0;
}
.pk-ta-haku { display: flex; gap: 8px; margin-bottom: 1rem; flex-wrap: wrap; }
.pk-ta-haku input {
    flex: 1; min-width: 0; padding: .7rem 1rem;
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: 8px; font-size: 1rem;
    font-family: var(--pk-sans); background: #fff;
}
.pk-ta-haku button {
    padding: .7rem 1.4rem; background: var(--pk-gold, #b8913a);
    color: #fff; border: none; border-radius: 8px;
    font-size: 1rem; font-family: var(--pk-sans); cursor: pointer;
    white-space: nowrap;
}
@media (max-width: 400px) {
    .pk-ta-haku { flex-direction: column; }
    .pk-ta-haku input, .pk-ta-haku button { width: 100%; box-sizing: border-box; }
}
.pk-ta-haku button:hover { opacity: .88; }
.pk-ta-ok   { color: #1a7a3f; font-weight: 600; margin: .5rem 0; }
.pk-ta-ei   { color: #8a5a00; font-weight: 600; margin: .5rem 0; }
.pk-ta-virhe { color: #c00; margin: .5rem 0; }
.pk-ta-jono-info { font-size: .95rem; color: #555; margin: 1rem 0 .75rem; }
.pk-ta-field { margin-bottom: .65rem; }
.pk-ta-field input {
    width: 100%; padding: .65rem 1rem;
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: 8px; font-size: .95rem;
    font-family: var(--pk-sans); box-sizing: border-box;
}
.pk-ta-jono-btn {
    margin-top: .5rem; padding: .75rem 2rem;
    background: var(--pk-gold, #b8913a); color: #fff;
    border: none; border-radius: 8px; font-size: 1rem;
    font-family: var(--pk-sans); cursor: pointer;
}

/* Nouto-checkbox (rekisteröidy + oma tili) */
.pk-nouto-valinta {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: .25rem 0 .75rem;
    cursor: pointer;
    font-size: .95rem;
    color: #1a1410;
}
.pk-nouto-valinta input[type=checkbox] {
    width: 18px; height: 18px;
    accent-color: var(--pk-gold, #b8913a);
    cursor: pointer;
    flex-shrink: 0;
}

/* =====================
   TOIMITUSTAPA-TOGGLE
   ===================== */
.pk-toimitustapa {
    display: flex;
    gap: .5rem;
    margin: 1rem 0 .75rem;
}
.pk-tt-btn {
    flex: 1;
    padding: .6rem 1rem;
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: 8px;
    background: #f8f4ee;
    color: #6b5c4e;
    font-size: .9rem;
    font-family: var(--pk-sans);
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}
.pk-tt-btn:hover { border-color: var(--pk-gold, #b8913a); color: #1a1410; }
.pk-tt-btn--aktiivinen {
    background: var(--pk-gold, #b8913a);
    border-color: var(--pk-gold, #b8913a);
    color: #fff;
    font-weight: 600;
}
.pk-tt-btn--aktiivinen:hover { opacity: .9; }

.pk-maksutyyppi-valinta { margin: 1rem 0 .75rem; }
.pk-maksutyyppi-otsikko {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b5c4e;
    margin-bottom: .4rem;
}
.pk-maksutyyppi-napit {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}
.pk-maksutyyppi-btn {
    padding: .55rem 1rem;
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: 8px;
    background: #f8f4ee;
    color: #1a1410;
    font-size: .92rem;
    font-family: var(--pk-sans);
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.pk-maksutyyppi-btn:hover { border-color: var(--pk-gold, #b8913a); }
.pk-maksutyyppi-btn--aktiivinen {
    background: var(--pk-gold, #b8913a);
    border-color: var(--pk-gold, #b8913a);
    color: #fff;
    font-weight: 600;
}
.pk-maksutyyppi-btn--aktiivinen:hover { opacity: .9; }

/* =====================
   LEIPOMO
   ===================== */
.pk-lp-kat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.25rem;
    padding: .6rem .75rem;
    background: #1a1410;
    border-radius: 8px;
    position: static;
}
.pk-lp-kat-nav-linkki {
    color: #f0e8d8;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .25rem .7rem;
    border-radius: 4px;
    transition: background .15s, color .15s;
}
.pk-lp-kat-nav-linkki:hover {
    background: var(--pk-gold, #b8913a);
    color: #1a1410;
}
.pk-lp-kategoria { margin-bottom: 2rem; }
.pk-lp-kategoria-otsikko {
    font-size: 1.15rem; font-weight: 700;
    color: #1a1410; margin: 0 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--pk-gold, #b8913a);
}
.pk-lp-tuote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
    gap: .75rem;
}
@media (max-width: 600px)  { .pk-lp-tuote-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 160px)); } }
.pk-lp-tuote-grid--kompakti {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .5rem;
}
.pk-lp-tuote-kortti { cursor: pointer; }
.pk-lp-tuote-kortti {
    background: #fff;
    border: 1.5px solid var(--pk-border, #d9c9b8);
    border-radius: 10px;
    padding: .9rem 1rem;
    display: flex; flex-direction: column; gap: .4rem;
    transition: border-color .15s, box-shadow .15s;
}
.pk-lp-tuote-kortti--valittu {
    border-color: var(--pk-gold, #b8913a);
    box-shadow: 0 0 0 2px rgba(184,145,58,.18);
}
.pk-lp-tuote-kuva {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    border-radius: 6px; margin-bottom: .5rem; display: block;
}
.pk-lp-tuote-kuva--placeholder {
    background: #f0e8d8; display: flex; align-items: center; justify-content: center;
    color: #c9b99a; font-size: 2rem;
}
.pk-lp-tuote-nimi { font-weight: 600; font-size: .97rem; color: #1a1410; }
.pk-lp-tuote-kuvaus { font-size: .82rem; color: #6b5c4e; }
.pk-lp-tuote-allergeenit { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }
.pk-lp-tuote-tilausaika { font-size: .75rem; color: #8a6a00; margin-top: .25rem; font-style: italic; }
.pk-lp-tuote-paivat { font-size: .75rem; color: #6b5c4e; margin-top: .2rem; }
.pk-lp-tuote-ei-saatavilla { font-size: .78rem; color: #a00; font-style: italic; margin-top: .3rem; }
.pk-lp-tuote-ainesosat { font-size: .78rem; margin-top: .3rem; }
.pk-lp-tuote-ainesosat summary { cursor: pointer; color: #6b5c4e; }
.pk-lp-tuote-ainesosat p { margin: .3rem 0 0; color: #6b5c4e; line-height: 1.4; }
.pk-lp-tuote-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: .5rem;
}
.pk-lp-footer--var {
    flex-direction: column; align-items: stretch; gap: .3rem; margin-top: auto; padding-top: .5rem;
}
.pk-lp-var-rivi-kortti {
    display: flex; align-items: center;
    padding: .3rem .5rem; background: #f5f0ea; border-radius: 6px; gap: .5rem;
}
.pk-lp-var-nimi {
    flex: 0 0 auto; font-size: .85rem; color: #4a3d30; white-space: nowrap;
}
.pk-lp-var-rivi-kortti .pk-lp-tuote-hinta {
    font-size: .9rem; white-space: nowrap; flex-shrink: 0;
}
.pk-lp-var-rivi-kortti .pk-lp-maara-ctrl {
    flex-shrink: 0; margin-left: auto;
}
.pk-lp-tuote-hinta { font-weight: 700; color: #1a1410; font-size: .95rem; }
.pk-lp-maara-ctrl {
    display: flex; align-items: center; gap: .4rem;
}
.pk-lp-btn-minus, .pk-lp-btn-plus {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid var(--pk-border, #d9c9b8);
    background: #f8f4ee; color: #1a1410;
    font-size: 1.1rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.pk-lp-btn-minus:hover, .pk-lp-btn-plus:hover {
    background: var(--pk-gold, #b8913a); color: #fff; border-color: var(--pk-gold);
}
.pk-lp-maara { min-width: 1.5rem; text-align: center; font-weight: 600; font-size: .95rem; color: #1a1410; }

/* Kori-paneeli */
/* Layout */
.pk-lp-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}
.pk-lp-layout-kori {
    position: sticky;
    top: 1.5rem;
}
@media (max-width: 860px) {
    .pk-lp-layout { grid-template-columns: 1fr; }
    .pk-lp-layout-kori { position: static; }
    .pk-lp-layout-tuotteet { order: 1; }
    .pk-lp-layout-kori { order: 0; }
}

/* Koripaneeli */
.pk-lp-kori-paneeli {
    background: #1a1410;
    border-radius: 16px;
    padding: 1.5rem;
    color: #f0e8d8;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.pk-lp-kori-header {
    display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
}
.pk-lp-kori-ikoni { font-size: 1.4rem; }
.pk-lp-kori-otsikko {
    font-family: var(--pk-serif, 'Cormorant Garamond', serif);
    font-size: 1.4rem; font-weight: 400; color: #f0e8d8; margin: 0;
}
.pk-lp-kori-hr { border: none; border-top: 1px solid rgba(255,255,255,.15); margin: .75rem 0; }
.pk-lp-kori-rivit { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .75rem; }
.pk-lp-kori-rivi {
    display: flex; align-items: center; gap: .6rem;
    font-size: .9rem; color: #f0e8d8;
    background: rgba(255,255,255,.06); border-radius: 8px; padding: .4rem .6rem;
}
.pk-lp-kori-nimi { flex: 1; }
.pk-lp-kori-maara { color: #c8bfb0; white-space: nowrap; font-size: .85rem; }
.pk-lp-kori-hinta { font-weight: 600; white-space: nowrap; color: var(--pk-gold, #b8913a); }
.pk-rivi-poista {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,.4); font-size: .85rem; padding: 0 .2rem;
    transition: color .15s;
}
.pk-rivi-poista:hover { color: #e88; }
.pk-lp-yhteensa {
    font-size: 1rem; font-weight: 700; color: #f0e8d8;
    margin-bottom: .5rem; text-align: right;
}
.pk-lp-vieras-grid { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }
.pk-lp-kori-paneeli .pk-field span,
.pk-lp-kori-paneeli .pk-field-label {
    display: block; font-size: .78rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: #c8bfb0; margin-bottom: .3rem;
}
.pk-lp-kori-paneeli .pk-field input,
.pk-lp-kori-paneeli textarea {
    width: 100%; padding: .6rem .9rem;
    background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.15);
    border-radius: 8px; color: #f0e8d8; font-size: .93rem;
    font-family: var(--pk-sans); box-sizing: border-box;
}
.pk-lp-kori-paneeli .pk-field input::placeholder,
.pk-lp-kori-paneeli textarea::placeholder { color: rgba(240,232,216,.4); }
.pk-lp-kori-paneeli .pk-field input:focus,
.pk-lp-kori-paneeli textarea:focus { outline: none; border-color: var(--pk-gold, #b8913a); }
.pk-lp-kori-paneeli textarea { resize: vertical; min-height: 60px; }
.pk-lp-kori-paneeli .pk-toimitustapa { margin: .75rem 0; }
.pk-lp-kori-paneeli .pk-tt-btn { color: #c8bfb0; border-color: rgba(255,255,255,.2); }
.pk-lp-kori-paneeli .pk-tt-btn--aktiivinen { background: var(--pk-gold, #b8913a); color: #fff; border-color: var(--pk-gold, #b8913a); }
.pk-lp-kori-paneeli .pk-tilaus-osoite label span { color: #c8bfb0; }
.pk-lp-kori-paneeli .pk-tilaus-osoite input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #f0e8d8; }
.pk-lp-tilaa-btn-iso {
    width: 100%; padding: .9rem; font-size: 1rem;
    letter-spacing: .1em; margin-top: .75rem;
    background: var(--pk-gold, #b8913a); border-color: var(--pk-gold, #b8913a);
}
.pk-lp-tilaa-btn-iso:hover { background: #9a7a2e; }
.pk-lp-kori-ulos {
    display: block; text-align: center; margin-top: .75rem;
    font-size: .8rem; color: rgba(240,232,216,.45);
    text-decoration: none; letter-spacing: .05em;
    transition: color .15s;
}
.pk-lp-kori-ulos:hover { color: rgba(240,232,216,.8); }

/* Tilaa-nappi + viesti */
.pk-lp-tilaa-wrap { display: flex; flex-direction: column; gap: .75rem; }
.pk-lp-tilaa-btn {
    padding: .8rem 2rem; background: var(--pk-gold, #b8913a);
    color: #fff; border: none; border-radius: 8px;
    font-size: 1rem; font-family: var(--pk-sans);
    cursor: pointer; align-self: flex-start;
}
.pk-lp-tilaa-btn:disabled { opacity: .6; cursor: default; }

/* Historia */
.pk-lp-historia { margin-top: 2.5rem; }
.pk-lp-historia h2 { font-size: 1.1rem; font-weight: 700; color: #1a1410; margin-bottom: 1rem; }
.pk-historia-rivi {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: .75rem 0; border-bottom: 1px solid var(--pk-border, #d9c9b8);
    font-size: .9rem;
}
.pk-historia-pvm { color: #6b5c4e; white-space: nowrap; min-width: 70px; }
.pk-historia-tiedot { flex: 1; }
.pk-historia-ruoat { color: #1a1410; }
.pk-historia-meta { color: #6b5c4e; font-size: .82rem; margin-top: .2rem; }
.pk-historia-status {
    font-size: .78rem; font-weight: 600; padding: .2rem .6rem;
    border-radius: 20px; white-space: nowrap; align-self: flex-start;
}
.pk-historia-status--uusi    { background: #fff3cd; color: #856404; }
.pk-historia-status--vahvistettu { background: #d4edda; color: #155724; }
.pk-historia-status--toimitettu  { background: #cce5ff; color: #004085; }
.pk-historia-status--peruutettu  { background: #f8d7da; color: #721c24; }
.pk-ta-jono-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---- Leipomo-modaali ---- */
.pk-lp-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.pk-lp-modal-tausta {
    position: absolute; inset: 0; background: rgba(0,0,0,.55); cursor: pointer;
}
.pk-lp-modal-sisalto {
    position: relative; z-index: 1;
    background: #faf6f0; border-radius: 14px;
    max-width: 600px; width: 100%; max-height: 90vh;
    overflow-y: auto; box-shadow: 0 8px 40px rgba(0,0,0,.22);
}
.pk-lp-modal-sulje {
    position: sticky; top: .75rem; float: right; margin: .75rem .75rem 0 0;
    background: #fff; border: 1.5px solid #d9c9b8; border-radius: 50%;
    width: 32px; height: 32px; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; z-index: 2;
}
.pk-lp-modal-kuva {
    width: 100%; max-height: 280px; object-fit: cover;
    border-radius: 14px 14px 0 0; display: block;
}
.pk-lp-modal-tiedot { padding: 1.25rem 1.5rem 1.75rem; }
.pk-lp-modal-nimi { font-size: 1.5rem; margin: 0 0 .4rem; color: #1a1410; }
.pk-lp-modal-kuvaus { color: #5c4a36; margin: 0 0 .75rem; line-height: 1.5; }
.pk-lp-modal-ainesosat { font-size: .88rem; color: #6b5c4e; margin: .5rem 0; line-height: 1.5; }
.pk-lp-modal-variaatiot { display: flex; flex-direction: column; gap: .4rem; margin-top: 1rem; }

/* ---- Toast-ilmoitus ---- */
.pk-lp-toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(1rem);
    background: #1a1410; color: #f0e8d8;
    padding: .65rem 1.25rem; border-radius: 99px;
    font-size: .92rem; font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,.28);
    opacity: 0; transition: opacity .2s, transform .2s;
    pointer-events: none; z-index: 10000; white-space: nowrap;
}
.pk-lp-toast--nakyva {
    opacity: 1; transform: translateX(-50%) translateY(0);
}
.pk-lp-kori-paneeli input[type="date"] {
    width: 100%; padding: .6rem .9rem;
    background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.15);
    border-radius: 8px; color: #f0e8d8; font-size: .93rem;
    font-family: var(--pk-sans); box-sizing: border-box;
    color-scheme: dark;
}
.pk-lp-kori-paneeli input[type="date"]:focus { outline: none; border-color: var(--pk-gold, #b8913a); }

/* --- Toimituspäivä-modaali (tilausaika_pv > 0) --- */
.pk-pvmodal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
}
.pk-pvmodal {
    background: #fff; border-radius: 12px;
    padding: 1.8rem 2rem; max-width: 360px; width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    display: flex; flex-direction: column; gap: 1rem;
}
.pk-pvmodal--kal { max-width: 300px; }
.pk-pvmodal-ohje { margin: 0; font-size: .95rem; color: #1a1410; line-height: 1.45; }
.pk-pvmodal-napit { display: flex; gap: .75rem; justify-content: flex-end; }
/* Kalenteri */
.pk-pvkal { margin: .5rem 0; }
.pk-pvkal-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .4rem;
}
.pk-pvkal-kk { font-weight: 600; font-size: .95rem; color: #1a1410; }
.pk-pvkal-prev, .pk-pvkal-next {
    background: none; border: none; font-size: 1.5rem; cursor: pointer;
    color: #1a1410; padding: 0 .3rem; line-height: 1;
}
.pk-pvkal-prev:hover, .pk-pvkal-next:hover { color: var(--pk-gold, #b8913a); }
.pk-pvkal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.pk-pvkal-th {
    text-align: center; font-size: .72rem; font-weight: 700;
    color: #6b5c4e; padding: .2rem 0;
}
.pk-pvkal-p {
    text-align: center; padding: .32rem .1rem; border-radius: 4px;
    font-size: .88rem; line-height: 1.2;
}
.pk-pvkal-p--pois { color: #ccc; }
.pk-pvkal-p--ok { cursor: pointer; color: #1a1410; }
.pk-pvkal-p--ok:hover { background: #f0e8d8; }
.pk-pvkal-p--val { background: var(--pk-gold, #b8913a) !important; color: #fff; font-weight: 700; }
.pk-nappi {
    padding: .5rem 1.2rem; border-radius: 7px; border: none;
    font-size: .95rem; font-weight: 600; cursor: pointer;
    background: var(--pk-gold, #b8913a); color: #fff;
    transition: opacity .15s;
}
.pk-nappi:hover { opacity: .85; }
.pk-nappi--toissijainen {
    background: #f0e8d8; color: #1a1410;
    border: 1.5px solid #d9c9b8;
}
