/* Kakrutan - se includes/kakruta.php. Byggd efter forslaget Jonas valde
   2026-10-29: liten ruta i nederkant, gron Godkann (#557F26, nr 19). */

/* Mooves egna ruta och fonster dols - vi skriver samma kaka sjalva. */
#moove_gdpr_cookie_info_bar,
#moove_gdpr_cookie_modal,
.moove-gdpr-floating-button,
#moove_gdpr_save_popup_settings_button { display: none !important; }

#sb-kakruta {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 28px));
    box-sizing: border-box;
    z-index: 2147483000;
    background: #fff;
    color: #14110F;
    border: 0.5px solid #d8d6cf;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(20, 17, 15, .12);
    padding: 14px 16px;
    /* Samma typsnitt pa alla sidor - startsidorna har annars Space Mono. */
    font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    text-align: left;
    transition: transform .2s;
}
#sb-kakruta[hidden] { display: none; }
#sb-kakruta:hover { transform: translateX(-50%) translateY(-2px); }
#sb-kakruta * { box-sizing: border-box; }
#sb-kakruta p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
#sb-kakruta a { color: #14110F; text-decoration: underline; }

#sb-kakruta .kr-rad { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

#sb-kakruta .kr-k {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    border-radius: 20px;
    padding: 7px 16px;
    font: inherit;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    border: 1px solid #14110F;
    background: #14110F;
    color: #fff;
    text-transform: none;
    letter-spacing: normal;
    min-height: 0;
    width: auto;
    transition: transform .12s;
}
#sb-kakruta .kr-k:hover { transform: scale(1.05); }
#sb-kakruta .kr-k.kr-gron { background: #557F26; border-color: #557F26; color: #fff; }
#sb-kakruta .kr-k:focus-visible,
#sb-kakruta .kr-l:focus-visible,
#sb-kakruta .kr-sw:focus-visible { outline: 2px solid #3366D6; outline-offset: 2px; }

#sb-kakruta .kr-l {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 0;
    margin: 0;
    padding: 7px 4px;
    font: inherit;
    font-size: 13px;
    color: #14110F;
    text-decoration: underline;
    text-transform: none;
    cursor: pointer;
    min-height: 0;
}

#sb-kakruta .kr-rubrik { font-weight: 500; margin-bottom: 4px; }
#sb-kakruta .kr-kat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-top: 0.5px solid #e7e5df;
}
#sb-kakruta .kr-kat small { display: block; color: #6b6860; font-size: 12px; line-height: 1.45; }

#sb-kakruta .kr-sw {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    width: 38px;
    height: 22px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: #cfccc4;
    position: relative;
    cursor: pointer;
    transition: background .15s;
}
#sb-kakruta .kr-sw::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: left .15s;
}
#sb-kakruta .kr-sw[aria-checked="true"] { background: #1B6B4A; }
#sb-kakruta .kr-sw[aria-checked="true"]::after { left: 19px; }
#sb-kakruta .kr-sw.kr-las { background: #9fbfb0; cursor: default; }

/* Raden langst ned pa sidor utan sidfot (Familj, Foretag). */
#sb-kr-sidfot {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 22px 16px 26px;
    font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 12.5px;
    color: #6b6860;
}
#sb-kr-sidfot a { color: #6b6860; text-decoration: underline; }
#sb-kr-sidfot a:hover { color: #14110F; }

/* WooCommerce bildvisare (PhotoSwipe): stilen togs bort vid fartarbetet, sa
   knapparna syntes langst ned pa sidan. Dold tills den faktiskt oppnas. */
.pswp:not(.pswp--open) { display: none !important; }
