/* =====================================================================
   BLAGAJNA + TOAST (2026-10) — videz po vzoru tobbaco_new, funkcionalnost bikey
   Naloži se za shop_v2.css in user_v2.css (index.php). Ker se user_v2.css
   v koraku "Kupec" naloži še enkrat v <body>, imajo pravila za obrazce
   predpono .desno (višja specifičnost).
   Barvni žetoni (--ink, --line, --brand …) so v style/premium.css.
   ===================================================================== */

:root {
    --co-card: #fff;
    --co-bg: #f5f6f2;
    --co-r: 12px;
    --co-r-sm: 10px;
    --co-ok: #2f7d32;
    --co-err: #c2334d;
    --co-err-tint: #fbeaee;
    --co-shadow: 0 1px 2px rgba(20, 23, 20, .04), 0 18px 40px -16px rgba(20, 23, 20, .22);
}

/* ---------------------------------------------------------------------
   TOAST (zamenja staro .message okno; show_alert() v functions.js)
   --------------------------------------------------------------------- */

.message {
    display: none !important; /* staro modalno okno se ne uporablja več */
}

.toast-wrap {
    position: fixed;
    top: 86px;
    left: 50%;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(400px, calc(100vw - 32px));
    transform: translateX(-50%);
    pointer-events: none;
}

.toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px 14px 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background-color: #fff;
    box-shadow: var(--co-shadow);
    color: var(--ink);
    font-family: var(--f-body);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    transition: opacity .26s var(--ease-out), transform .26s var(--ease-out);
}

.toast.is-in {
    opacity: 1;
    transform: none;
}

.toast.is-out {
    opacity: 0;
    transform: translateY(-12px) scale(.98);
}

.toast-ico {
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--brand-soft);
    color: var(--brand-ink);
    font-size: 13px;
}

.toast--err .toast-ico {
    background-color: var(--co-err-tint);
    color: var(--co-err);
}

.toast-thumb {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--tile, #f3f4f1);
}

.toast-thumb img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.toast-body {
    flex: 1;
    min-width: 0;
    padding-right: 18px;
}

.toast-title {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.toast-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

/* stara sporočila imajo v besedilu svoje gumbe/ikone — umirimo jih */
.toast-text b,
.toast-text strong {
    color: var(--ink);
    font-weight: 600;
}

.toast-text a,
.toast-btn {
    display: inline-flex;
    align-items: center;
    height: 32px;
    margin-top: 8px;
    padding: 0 14px;
    border-radius: 8px;
    background-color: var(--ink);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease;
}

.toast-text a:hover,
.toast-btn:hover {
    background-color: #000;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.toast-close:hover {
    background-color: var(--surface);
    color: var(--ink);
}

.toast-prog {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--line);
}

.toast-prog-bar {
    display: block;
    height: 100%;
    background-color: var(--brand);
    transform-origin: left center;
    animation: toastProg linear forwards;
}

.toast--err .toast-prog-bar {
    background-color: var(--co-err);
}

.toast:hover .toast-prog-bar {
    animation-play-state: paused;
}

@keyframes toastProg {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* ---------------------------------------------------------------------
   OKVIR BLAGAJNE
   --------------------------------------------------------------------- */

.content_read:has(.checkout_container) {
    min-height: calc(100vh - 71px);
    max-width: none;
    margin: 0;
    padding: 28px clamp(16px, 2vw, 28px) 88px;
    background-color: var(--co-bg);
}

.checkout_container {
    max-width: 1180px;
    margin: 0 auto;
    background: none;
}

.desno .checkout_sites {
    padding: 0;
}

/* koraki: pilule s številko, aktivni bel, opravljeni s kljukico */
.desno .checkout-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 1180px;
    margin: 0 auto 28px;
}

.desno .stepDiv {
    flex-direction: row;
    gap: 10px;
    padding: 7px 18px 7px 7px;
    border: 1px solid transparent !important;
    border-radius: 999px;
    background-color: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    opacity: 1;
    text-align: left;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.desno .stepDiv p {
    margin: 0;
}

.desno .stepDiv i,
.desno .act-step::after {
    display: none;
}

.desno .linkedDiv:hover {
    background-color: rgba(255, 255, 255, .7);
    color: var(--ink);
}

.desno .act-step {
    border-color: var(--line) !important;
    background-color: #fff !important;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(20, 23, 20, .05);
}

.co-step {
    display: inline-grid;
    flex: 0 0 26px;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--line-strong);
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.act-step .co-step {
    background-color: var(--ink);
    color: #fff;
}

.done-step .co-step {
    background-color: var(--brand);
    font-size: 0;
}

.done-step .co-step::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
}

/* naslovi kartic */
.desno .checkout_container h2,
.desno .co-title {
    margin: 0 0 14px;
    color: var(--ink);
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-stretch: 104%;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.01em;
}

/* gumbi */
.desno .next-step,
.desno .s_color {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: none;
    height: 52px;
    margin-top: 16px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--co-r-sm);
    background-color: var(--ink);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.desno .next-step:hover,
.desno .s_color:hover {
    background-color: #000;
    box-shadow: 0 10px 22px -12px rgba(20, 23, 20, .6);
}

.desno .next-step:active {
    transform: translateY(1px);
}

.desno .next-step i,
.desno .s_color i {
    margin: 0;
    color: var(--brand) !important;
    font-size: 13px;
}

.desno .s_more,
.desno .show_prev {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 18px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
    cursor: pointer;
}

.desno .s_more:hover,
.desno .show_prev:hover {
    color: var(--ink);
    text-decoration-color: currentColor;
}

/* ---------------------------------------------------------------------
   KOŠARICA — vrstice izdelkov, povzetek, kupon
   --------------------------------------------------------------------- */

/* vrstica izdelka */
.desno .checkout-items {
    position: relative;
    padding-right: 40px !important; /* prostor za koš na desnem robu */
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto; /* izdelek | cena | količina | skupaj */
    align-items: center;
    gap: 6px 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
    text-align: right;
}

.desno .basket_items .checkout-items:last-child {
    border-bottom: 0;
}

.desno .checkout-items .first-child {
    position: static;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: auto;
    padding-right: 0;
    text-align: left;
}

.desno .basket-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px !important;
    height: 72px;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--tile, #f3f4f1);
}

.desno .basket-image img {
    max-width: 86%;
    max-height: 86%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.desno .checkout-items h5 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
}

.desno .checkout-items h5 a {
    color: var(--ink);
    font-size: inherit;
    font-weight: 500;
    text-decoration: none;
}

.desno .checkout-items h5 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* izbire izdelka / opombe pod nazivom */
.desno .checkout-items .notes {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

/* odstrani: ikona koša na desnem robu vrstice (za skupnim zneskom) */
.desno .remove-item {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    order: 3;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0;
    border-radius: 50%;
    color: var(--muted);
    font-size: 0;
    opacity: 1;
    transition: background-color .2s ease, color .2s ease;
}

.desno .remove-item::before {
    content: "\f2ed";
    font-family: "Font Awesome 6 Free";
    font-size: 13px;
    font-weight: 400;
}

.desno .remove-item:hover {
    background-color: var(--co-err-tint);
    color: var(--co-err);
}

/* cena / količina / skupaj */
.desno .checkout-items .mwid {
    width: auto !important;
    line-height: 1.3;
}

.desno .checkout-items .mLeft {
    margin: 0;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.desno .checkout-items > .mwid:last-child {
    min-width: 84px;
    font-variant-numeric: tabular-nums;
}

.desno .checkout-items > .mwid:last-child b {
    color: var(--ink);
    font-weight: 600;
}

.desno .strike {
    color: var(--muted);
    font-size: 12.5px;
}

.desno .green {
    color: var(--ink);
    font-weight: 500;
}

/* količina: − 1 + v obrobljeni piluli */
.desno .checkout-items .c-flex.mwid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 34px;
    padding: 0 3px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background-color: #fff;
}

.desno .checkout-items .c-flex.mwid p {
    margin: 0;
}

.desno .set-qty {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: var(--ink);
    font-size: 0;
    transition: background-color .15s ease;
}

.desno .set-qty[alt="down"]::before,
.desno .set-qty[alt="up"]::before {
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
}

.desno .set-qty[alt="down"]::before {
    content: "\f068";
}

.desno .set-qty[alt="up"]::before {
    content: "\2b";
}

.desno .set-qty:hover {
    background-color: var(--surface);
}

.desno .qty-info {
    min-width: 26px;
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* darila */

.gift_place h4 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

/* povzetek */
.desno .checkout_summary {
    order: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--co-r);
    background-color: var(--co-card);
}

.desno .checkout_summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border: 0;
    color: var(--ink-2);
    font-size: 14px;
}

.desno .checkout_summary div p {
    margin: 0;
    font-weight: 400;
}

.desno .checkout_summary div p:last-child {
    color: var(--ink);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.desno .checkout_summary .highlight {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.desno .checkout_summary .highlight p {
    color: var(--ink) !important;
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 700 !important;
}

/* kupon: kartica nad povzetkom */
.desno .items-next .cupon_code {
    order: 1;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--co-r);
    background-color: var(--co-card);
}

.desno .items-next > div > .next-step {
    order: 3;
}

.desno .cupon-form {
    display: flex;
    gap: 8px;
}

.desno .cupon-form > div:first-child {
    flex: 1;
}

.desno .cupon-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--co-r-sm);
    background-color: #fff;
    color: var(--ink);
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.desno .cupon-input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(150, 204, 73, .35);
}

.desno .cupon-btn {
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--co-r-sm);
    background-color: var(--brand);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease;
}

.desno .cupon-btn:hover {
    background-color: var(--brand-hover);
    color: var(--ink);
}

.desno .cupon-msg {
    font-size: 13px;
}

.desno .cupon-msg:not(:empty) {
    margin-top: 8px;
}

/* veljaven kupon: zelen čip */
.desno .cupon_code h3,
.desno .cupon_code span {
    font-size: 14px;
}

.desno .cupon_code i {
    color: var(--co-ok);
}

/* ---------------------------------------------------------------------
   KORAK 2 — Kupec in naslov dostave (user_v2 obrazec)
   --------------------------------------------------------------------- */

.desno .checkout_sites .lp-containter {
    max-width: 680px;
    margin: 0 auto;
    padding: 26px 28px 30px;
    border: 1px solid var(--line);
    border-radius: var(--co-r);
    background-color: var(--co-card);
}

.desno .lpCont {
    font-size: 15px;
    line-height: 1.5;
}

.desno .info_prewiev {
    margin-bottom: 18px;
    color: var(--ink-2);
    font-size: 15px;
}

.desno .flex-form {
    column-gap: 16px;
}

.desno .lpInput {
    display: flex;
    flex-direction: column;
    width: calc(50% - 8px);
    margin-bottom: 16px;
}

.desno .flex_full .lpInput,
.desno .lpInput.flex_full {
    width: 100%;
}

.desno .fizicna,
.desno .pravna.p_vis,
.desno .druga_dostava.p_vis {
    column-gap: 16px;
}

/* oznaka nad poljem (namesto plavajoče v robu) */
.desno .lpInput .floating_label,
.desno .pRel .floating_label {
    position: static;
    order: -1;
    margin: 0 0 6px;
    padding: 0;
    background: none;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
}

/* polja */
.desno .lpInput .inputF,
.desno .checkout_container .inputF,
.desno .darker .inputF,
.desno .area-field {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line-strong) !important;
    border-radius: 8px;
    background-color: #fff;
    color: var(--ink);
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.desno .area-field {
    height: auto;
    min-height: 96px;
    padding: 12px 14px !important;
    line-height: 1.5;
    resize: vertical;
}

.desno .lpInput .inputF:hover,
.desno .checkout_container .inputF:hover,
.desno .area-field:hover {
    border-color: var(--muted) !important;
}

.desno .lpInput .inputF:focus,
.desno .checkout_container .inputF:focus,
.desno .darker .inputF:focus,
.desno .area-field:focus {
    border-color: var(--ink) !important;
    box-shadow: 0 0 0 3px rgba(150, 204, 73, .35);
}

.desno select.inputF {
    padding-right: 38px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141714' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 11px 7px;
    -webkit-appearance: none;
    appearance: none;
}

/* telefon z izbiro države (intl-tel-input) */
.desno .iti {
    width: 100%;
}

.desno .iti__selected-flag {
    border-radius: 8px 0 0 8px;
    background-color: var(--surface) !important;
}

/* stikala / potrditvena polja */
.desno .lpCont .check_container {
    margin: 2px 0 14px;
}

.desno .lpCont .check_container p {
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.45;
}

.desno .lpCont .check_container p a {
    color: var(--brand-ink);
}

.desno .druga_dostava h4 {
    width: 100%;
    margin: 6px 0 16px !important;
    color: var(--ink);
    font-family: var(--f-display);
    font-size: 1.05rem;
    font-weight: 650;
}

.desno .lpCont .next-step,
.desno .lpCont button.next-step {
    margin-top: 8px;
}

.desno .no_account {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 14px;
}

.desno .no_account a {
    color: var(--brand-ink);
    font-weight: 600;
}

/* ---------------------------------------------------------------------
   KORAK 3 — Dostava, plačilo, podatki, oddaja naročila
   --------------------------------------------------------------------- */

.desno .checkout_delivery_payment,
.desno .checkout_sites > h2,
.desno .order_form {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.desno .checkout_sites > h2,
.desno .checkout_delivery_payment > h2 {
    margin-top: 26px;
}

.desno .checkout_delivery_payment > h2:first-child {
    margin-top: 0;
}

/* skupina izbir = kartica */
.desno .dp_option {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--co-r);
    background-color: var(--co-card);
}

/* posamezna izbira */
.desno .placilo_opt,
.desno .blank_option,
.desno .info_opt {
    position: relative;
    flex-basis: auto;
    padding: 16px 52px 16px 18px;
    border: 1px solid var(--line) !important;
    border-radius: var(--co-r-sm);
    background-color: #fff;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 500;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.desno .placilo_opt:hover {
    border-color: var(--ink) !important;
    background-color: #fff;
}

.desno .placilo_opt::after,
.desno .actOpt::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    left: auto;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    background-color: #fff;
    color: var(--ink);
    font-size: 0;
}

.desno .actOpt,
.desno .actOpt:hover {
    border-color: var(--brand) !important;
    background-color: var(--brand-soft);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.desno .actOpt::after {
    content: "\f00c";
    border-color: var(--brand);
    background-color: var(--brand);
    font-family: "Font Awesome 6 Free";
    font-size: 10px;
    font-weight: 900;
}

.desno .blank_option {
    background-color: var(--surface);
    opacity: .6;
}

.desno .placilo_opt h4,
.desno .blank_option h4,
.desno .pInfo h4 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.desno .placilo_opt h4 img {
    height: 18px;
    margin-top: 8px;
}

.desno .pInfo {
    width: 100%;
}

.desno .pInfo p {
    margin: 2px 0 0;
    color: var(--ink-2);
}

.desno .pym_info {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.45;
}

.desno .placilo_opt i,
.desno .blank_option i {
    color: var(--brand-ink);
}

/* podatki kupca / naslov dostave */
.desno .info_opt {
    padding-right: 18px;
    cursor: default;
}

.desno .change-lnk,
.desno .c_ship_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background-color: #fff;
    color: var(--ink) !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.desno .change-lnk:hover,
.desno .c_ship_btn:hover {
    border-color: var(--ink);
    background-color: var(--surface);
    color: var(--ink) !important;
}

/* opombe + skupni znesek = kartica zaključka */
.desno .place_order {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 24px;
    align-items: end;
    margin-top: 16px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--co-r) var(--co-r) 0 0;
    background-color: var(--co-card);
    color: var(--ink-2);
    font-size: 14px;
}

.desno .place_order .order_notes {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.desno .place_order .sRight {
    text-align: right;
}

.desno .fin_view {
    color: var(--ink);
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

.desno .order_form > .place_order_btn,
.desno .order_form > #paypal-button-container {
    max-width: none;
    margin: 0;
    padding: 0 22px;
    border-radius: 0 0 var(--co-r) var(--co-r);
}

.desno .order_form > #paypal-button-container {
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-top: 0;
    background-color: var(--co-card);
}

/* predogled košarice v koraku 3 */
.desno .preview {
    margin-top: 16px;
}

.desno .preview .veiw_cart .co-title {
    display: none;
}

/* modalna okna: sprememba naslova / podatkov */
.desno .darker {
    background: rgba(20, 23, 20, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.desno .dInfo {
    max-width: 460px;
    padding: 26px 26px 24px;
    border-radius: var(--co-r);
    box-shadow: var(--co-shadow);
    line-height: 1.4;
}

.desno .darker h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.desno .darker .pRel {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.desno .darker .inputF {
    margin-bottom: 0;
}

.desno .darker label {
    font-size: 13.5px;
}

.desno .darker .close {
    top: 14px;
    right: 14px;
    color: var(--muted);
    font-size: 22px;
}

/* ---------------------------------------------------------------------
   BLAGAJNA NA ENI STRANI (sites/one_page.php)
   kartice 1–5 levo, kupon + povzetek + oddaja desno (lepljivo)
   --------------------------------------------------------------------- */

.co3 {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    gap: 18px clamp(24px, 3.5vw, 48px);
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}

.co3-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

.co3-head h1 {
    margin: 0;
    font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem);
    line-height: 1.1;
}

.co3-back {
    color: var(--ink-2);
    font-size: 14px;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
}

.co3-back:hover {
    color: var(--ink);
    text-decoration-color: currentColor;
}

.co3-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* kartica */
.desno .co-card {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--co-r);
    background-color: var(--co-card);
}

.desno .co-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.co-card .co-step,
.co-dp .checkout_delivery_payment > h2::before {
    display: inline-grid;
    flex: 0 0 26px;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--ink);
    color: #fff;
    font-family: var(--f-body);
    font-size: 12.5px;
    font-weight: 600;
}

.co-card .co-step.is-done {
    background-color: var(--brand);
    color: var(--ink);
    font-size: 0;
}

.co-card .co-step.is-done::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
}

/* zaklenjeni razdelki (pred vnosom naročnika) */
.co-card.is-locked .co-title {
    color: var(--muted);
}

.co-card.is-locked .co-step {
    background-color: #b9beb6;
}

.co-lock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--co-r-sm);
    background-color: var(--co-bg);
    color: var(--muted);
    font-size: 14px;
}

.co-lock i {
    font-size: 12px;
}

/* 1 · košarica */
.desno .co-card .basket_items {
    padding: 0;
}

.desno .co-card .gift_place {
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: var(--co-r-sm);
    background-color: var(--co-bg);
}

/* 2 · naročnik: preklop gost / prijava */
.co-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    border-radius: 999px;
    background-color: var(--co-bg);
}

.co-mode a {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.co-mode a:hover {
    color: var(--ink);
}

.co-mode a.is-active {
    background-color: #fff;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(20, 23, 20, .12);
}

/* obrazec user_v2 brez lastne kartice (je že v kartici) */
.desno .co-card .lp-containter {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

/* gumb obrazca naročnika: kompakten, kot "Vnesi podatke" v tobbaco */
.desno .co-card .lpCont .next-step {
    width: auto;
    padding: 0 28px;
}

@media (max-width:640px) {
    .desno .co-card .lpCont .next-step {
        width: 100%;
    }
}

.desno .co-card .no_account {
    display: none; /* preklop gost/prijava je zgoraj */
}

/* vpisan naročnik: povzetek podatkov z gumbi Spremeni */
.desno .co-buyer-done .dp_option {
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.desno .co-buyer-done .info_opt {
    background-color: var(--co-bg);
    border-color: transparent !important;
}

/* 3 · dostava in 4 · plačilo: obstoječi markup, vsak naslov + izbire = kartica */
.co-dp .checkout_delivery_payment {
    display: flex;
    flex-direction: column;
    max-width: none;
    margin: 0;
}

.desno .co-dp .checkout_delivery_payment > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 0;
    padding: 22px 24px 4px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--co-r) var(--co-r) 0 0;
    background-color: var(--co-card);
}

.desno .co-dp .checkout_delivery_payment > h2:first-child {
    margin-top: 0;
}

.co-dp .checkout_delivery_payment > h2:nth-of-type(1)::before {
    content: "3";
}

.co-dp .checkout_delivery_payment > h2:nth-of-type(2)::before {
    content: "4";
}

.desno .co-dp .dp_option {
    margin: 0;
    padding: 10px 24px 22px;
    border-top: 0;
    border-radius: 0 0 var(--co-r) var(--co-r);
}

/* "Druga plačila" je pod kartico plačila → pripnemo ga v kartico */
.desno .co-dp .dp_option:has(+ .s_more) {
    padding-bottom: 8px;
    border-radius: 0;
}

.desno .co-dp .s_more {
    display: block;
    margin: 0;
    padding: 4px 24px 20px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--co-r) var(--co-r);
    background-color: var(--co-card);
}

/* predvidena odprema in dostava (odpremaDostava()) */
.co-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-top: 8px;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.45;
}

.co-dates i {
    width: 18px;
    margin-right: 6px;
    color: var(--brand-ink);
    font-size: 12px;
}

.co-dates b {
    color: var(--ink);
    font-weight: 600;
}

.co-dates--intro {
    margin: 0 0 12px;
}

/* 5 · opombe */
.desno #opombe .area-field {
    min-height: 90px;
}

/* povzetek ob strani */
.co3-summary {
    position: sticky;
    top: 94px;
    display: block;
    width: auto;
    min-width: 0;
    margin: 0;
}

.co3-summary .co-submit-card {
    order: 3;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--co-r);
    background-color: var(--co-card);
}

.desno .co3-summary .co-submit {
    margin-top: 0;
}

.desno .co-submit.is-disabled {
    background-color: #b9beb6;
    box-shadow: none;
    cursor: pointer;
}

.co-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
}

.desno .co3-summary #paypal-button-container {
    max-width: none;
    margin: 0;
}

@media (max-width:1000px) {
    .co3 {
        grid-template-columns: 1fr;
    }

    .co3-summary {
        position: static;
    }
}

@media (max-width:640px) {
    .desno .co-card {
        padding: 18px 16px;
    }

    .desno .co-dp .checkout_delivery_payment > h2 {
        padding: 18px 16px 4px;
    }

    .desno .co-dp .dp_option {
        padding: 8px 16px 18px;
    }

    .co3-head h1 {
        font-size: 1.7rem;
    }
}

/* ---------------------------------------------------------------------
   MOBILNA SPODNJA VRSTICA (stran izdelka + blagajna) — functions.js
   --------------------------------------------------------------------- */

.mbar {
    display: none;
}

@media (max-width:780px) {
    .mbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 4000;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background-color: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
        box-shadow: 0 -10px 30px -18px rgba(20, 23, 20, .35);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform .32s var(--ease-out), visibility 0s linear .32s;
    }

    .mbar.is-in {
        transform: none;
        visibility: visible;
        transition: transform .32s var(--ease-out), visibility 0s;
    }

    .mbar-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.2;
    }

    .mbar-label {
        color: var(--muted);
        font-size: 12px;
    }

    .mbar-sum {
        color: var(--ink);
        font-family: var(--f-display);
        font-size: 1.2rem;
        font-weight: 750;
        font-variant-numeric: tabular-nums;
        letter-spacing: -.01em;
        white-space: nowrap;
    }

    .mbar-btn {
        display: inline-flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 48px;
        margin-left: auto;
        padding: 0 18px;
        border: 0;
        border-radius: 10px;
        background-color: var(--brand);
        color: var(--ink);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color .2s ease, transform .15s ease;
    }

    .mbar-btn:active {
        transform: scale(.98);
    }

    /* blagajna: temen gumb kot v kartici oddaje; sivo, dokler ni pripravljeno */
    .mbar:has(.mbar-btn .fa-check) .mbar-btn {
        background-color: var(--ink);
        color: #fff;
    }

    .mbar:has(.mbar-btn .fa-check) .mbar-btn i {
        color: var(--brand);
    }

    .mbar.is-disabled:has(.mbar-btn .fa-check) .mbar-btn {
        background-color: #b9beb6; /* višja specifičnost od temnega gumba zgoraj */
        color: #fff;
    }

    /* da vrstica ne prekrije konca strani */
    body.has-mbar {
        padding-bottom: 76px;
    }
}

@media (max-width:780px) and (prefers-reduced-motion: reduce) {
    .mbar,
    .mbar.is-in {
        transition: none;
    }
}

/* ---------------------------------------------------------------------
   STATUSNE STRANI (sites/templates/status_page.php):
   zahvala za naročilo / sporočilo, napaka, prazna košarica, 404
   --------------------------------------------------------------------- */

.sp {
    padding: clamp(32px, 6vw, 72px) 16px clamp(16px, 3vw, 32px);
    background: radial-gradient(60% 70% at 50% 0%, rgba(150, 204, 73, .16) 0%, rgba(150, 204, 73, 0) 70%);
}

.sp--err {
    background: radial-gradient(60% 70% at 50% 0%, rgba(194, 51, 77, .08) 0%, rgba(194, 51, 77, 0) 70%);
}

.sp-card {
    max-width: 620px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 52px) clamp(22px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background-color: #fff;
    box-shadow: var(--co-shadow);
    text-align: center;
}

/* ikona z "utripom" ob prikazu */
.sp-ico {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background-color: var(--brand-soft);
    color: var(--brand-ink);
    font-size: 28px;
    animation: spPop .55s var(--ease-out) both;
}

.sp-ico::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(150, 204, 73, .45);
    border-radius: 50%;
    animation: spRing 1.1s var(--ease-out) .15s both;
}

.sp--ok .sp-ico {
    background-color: var(--brand);
    color: var(--ink);
}

.sp--err .sp-ico {
    background-color: var(--co-err-tint);
    color: var(--co-err);
}

.sp--err .sp-ico::after {
    border-color: rgba(194, 51, 77, .35);
}

.sp--empty .sp-ico,
.sp--404 .sp-ico {
    background-color: var(--surface);
    color: var(--ink-2);
}

.sp--empty .sp-ico::after,
.sp--404 .sp-ico::after {
    border-color: var(--line-strong);
}

@keyframes spPop {
    from { opacity: 0; transform: scale(.6); }
    to { opacity: 1; transform: none; }
}

@keyframes spRing {
    from { opacity: 1; transform: scale(.85); }
    to { opacity: 0; transform: scale(1.35); }
}

/* besedilo iz admina */
.sp-body {
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.65;
    text-wrap: pretty;
}

.sp-body h1 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.sp-body p {
    margin: 0 0 8px;
}

.sp-body strong,
.sp-body b {
    color: var(--ink);
    font-weight: 600;
}

/* gumbi */
.sp-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.sp-btn--primary {
    background-color: var(--ink);
    color: #fff !important;
}

.sp-btn--primary:hover {
    background-color: #000;
    box-shadow: 0 10px 22px -12px rgba(20, 23, 20, .6);
}

.sp-btn--ghost {
    border: 1px solid var(--line-strong);
    background-color: #fff;
    color: var(--ink) !important;
}

.sp-btn--ghost:hover {
    border-color: var(--ink);
    background-color: var(--surface);
}

.sp-btn:active {
    transform: translateY(1px);
}

/* "Kaj sledi" po naročilu */
.sp-next {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.sp-next-h {
    margin: 0 0 16px;
    color: var(--ink);
    font-family: var(--f-display);
    font-size: 15px;
    font-weight: 650;
}

.sp-next ol {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.sp-next li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    list-style: none;
}

.sp-next li::before,
.container .sp-next li::before {
    content: none;
    display: none;
}

.sp-step {
    display: grid;
    flex: 0 0 26px;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 50%;
    background-color: var(--brand);
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
}

.sp-next strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.sp-next p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.sp-next p b {
    color: var(--ink);
    font-weight: 600;
}

/* kategorije pod kartico (prazna košarica, 404) */
.sp-more {
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 8px;
}

.sp-more-h {
    margin: clamp(32px, 4vw, 48px) 0 0;
    color: var(--ink);
    font-family: var(--f-display);
    font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -.02em;
    text-align: center;
}

.sp-more .pn_section.kat {
    padding-top: 24px !important;
}

@media (max-width:520px) {
    .sp-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-ico,
    .sp-ico::after {
        animation: none;
    }

    .sp-ico::after {
        opacity: 0;
    }
}

/* ---------------------------------------------------------------------
   Prazna košarica, zahvala, napaka
   --------------------------------------------------------------------- */

.desno .thank-you-page {
    max-width: 640px;
    margin: 40px auto;
    padding: 40px 32px;
    border: 1px solid var(--line);
    border-radius: var(--co-r);
    background-color: #fff;
    color: var(--ink-2);
    font-size: 15.5px;
    line-height: 1.6;
}

.desno .thank-you-page h1 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
}


/* ---------------------------------------------------------------------
   Odzivnost
   --------------------------------------------------------------------- */

@media (max-width:1000px) {
}

@media (max-width:640px) {
    .content_read:has(.checkout_container) {
        padding-top: 16px;
    }

    .desno .checkout-steps {
        gap: 4px;
        margin-bottom: 18px;
    }

    .desno .stepDiv {
        padding: 5px 12px 5px 5px;
        font-size: 12.5px;
    }

    .desno .stepDiv:not(.act-step) p {
        display: none; /* na telefonu le številke, aktivni korak z nazivom */
    }

    .desno .stepDiv:not(.act-step) {
        padding-right: 5px;
    }


    .desno .checkout-items {
        grid-template-columns: auto 1fr; /* 2. vrstica: količina | skupaj */
        text-align: left;
    }

    .desno .checkout-items .first-child {
        grid-column: 1 / -1;
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .desno .checkout-items {
        padding-right: 0 !important;
    }

    .desno .checkout-items .first-child {
        padding-right: 34px; /* koš je zgoraj desno ob nazivu */
    }

    .desno .remove-item {
        top: 14px;
        transform: none;
    }

    .desno .basket-image {
        width: 60px !important;
        height: 60px;
    }

    .desno .checkout-items .mLeft {
        display: none;
    }

    .desno .checkout-items > .mwid:last-child {
        text-align: right;
    }

    .desno .checkout_sites .lp-containter {
        padding: 20px 16px 22px;
    }

    .desno .lpInput {
        width: 100%;
    }

    .desno .place_order {
        grid-template-columns: 1fr;
    }

    .desno .place_order .sRight {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast,
    .toast.is-in,
    .toast.is-out {
        transition-duration: .01ms;
        transform: none;
    }

    .toast-prog-bar {
        animation: none;
    }
}
