/* ============================================================================
   ENSKILD RECEPTSIDA — recipe-single.css
   Ny design för single-paleorecept (feature-flaggad).
   ============================================================================ */


/* === 1. FOUC & GLOBAL WRAPPER === */

.sp-rs-hero,
.sp-rs-blog-wrap {
    opacity: 1 !important;
    transition: opacity 0.15s ease;
}

/* Ren neutral bakgrund istället för sandtextur */
body:has(.sp-rs-page-layout) {
    background-image: none !important;
    background-color: #EEEAE4 !important;
}

.sp-rs {
    scroll-margin-top: 24px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    padding: 0 0 60px;
    margin-bottom: 40px;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #3a3a3a;
    line-height: 1.5;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Åsidosätt temats float-layout — vi vill ha fullbredd utan sidebar */
.page-wrapper:has(.sp-rs) {
    display: block;
}

.sp-rs-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.sp-rs *,
.sp-rs *::before,
.sp-rs *::after,
.sp-rs-hero *,
.sp-rs-hero *::before,
.sp-rs-hero *::after {
    box-sizing: border-box;
}


/* === 1b. SIDLAYOUT (recept + sidofält) === */

.sp-rs-page-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-top: 20px;
}

.sp-rs-page-main {
    flex: 1;
    min-width: 0;
    max-width: 880px;
}

.sp-rs-sidebar {
    flex: 0 0 280px;
    align-self: flex-start;
}

.sp-rs-sidebar-inner {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.sp-rs-sidebar-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: 2px solid #3D5F42;
}

.sp-rs-sidebar-recipes {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Mini-kort för relaterade recept i sidofältet */
.sp-rs-sidebar-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.sp-rs-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sp-rs-sidebar-item:first-child {
    padding-top: 0;
}

.sp-rs-sidebar-thumb {
    width: 90px;
    height: 65px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0ede8;
}

.sp-rs-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-rs-sidebar-item-info {
    flex: 1;
    min-width: 0;
}

.sp-rs-sidebar-item-title {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 4px;
    line-height: 1.3;
}

.sp-rs-sidebar-item-meta {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-transform: none;
    letter-spacing: 0;
}

.sp-rs-sidebar-item:hover .sp-rs-sidebar-item-title {
    color: #3D5F42;
}

/* Sökruta i sidofältet */
.sp-rs-sidebar-search {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.sp-rs-sidebar-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.sp-rs-sidebar-search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    pointer-events: none;
    flex-shrink: 0;
}

.sp-rs-sidebar-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e0dcd6;
    border-radius: 10px;
    background: #fff;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 13px;
    color: #3a3a3a;
    outline: none;
    transition: border-color 0.2s ease;
}

.sp-rs-sidebar-search-input::placeholder {
    color: #aaa;
}

.sp-rs-sidebar-search-input:focus {
    border-color: #3D5F42;
}


/* === 2. BRÖDSMULOR === */
/* Använder temats .page-header-stilar */


/* === 3. HERO-SEKTION (fullbredd-bild + info under) === */

.sp-rs-hero {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    background: #fff;
}

.sp-rs-hero-image {
    position: relative;
    overflow: hidden;
    max-height: 480px;
}

.sp-rs-hero-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sp-rs-hero-info {
    background: #fff;
    padding: 28px 40px 24px;
    max-width: 720px;
}

/* Blog-content (hide-content = false) */
.sp-rs-blog-hero {
    margin: 0 -40px 24px;
    overflow: hidden;
}

.sp-rs-blog-hero-img {
    display: block;
    width: 100%;
    height: auto;
}

.sp-rs-blog-content {
    margin-bottom: 32px;
    font-size: 17px;
    line-height: 1.6;
}

.sp-rs-blog-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 29px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 16px;
    line-height: 1.2;
}


/* === 4. BADGE & ÅTGÄRDSKNAPPAR === */

.sp-rs-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 50px;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    z-index: 1;
}

.sp-rs-badge--aip {
    background: rgba(240, 245, 249, 0.95);
    color: #587B99;
}

.sp-rs-badge--paleo {
    background: rgba(248, 245, 242, 0.95);
    color: #8C7B6B;
}

.sp-rs-hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    padding-top: 11px;
}

/* Favorit-knapp — överskriver recipe.css globala .simplefavorite-button
   (som sätter width:36px, height:36px, border-radius:50%, position:absolute
   med !important). Vi måste ha högre specificitet: dubbla wrapper-kedjan. */
/* "Spara i samling"-knapp — fixa FA-ikon som inte laddas */
.sp-rs-hero .sp-rs-hero-actions .btn-spara-samling {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 18px !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 24px !important;
    font-family: 'Proxima Nova', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #3a3a3a !important;
    cursor: pointer !important;
    text-decoration: none !important;
    min-height: 38px !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    box-shadow: none !important;
    transition: background 0.2s ease !important;
}

.sp-rs-hero .sp-rs-hero-actions .btn-spara-samling .btn-text {
    text-transform: none !important;
}

.sp-rs-hero .sp-rs-hero-actions .btn-spara-samling:hover {
    background-color: #f5f3ef !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Göm FA-ikonen, ersätt med SVG-mask */
.sp-rs-hero .sp-rs-hero-actions .btn-spara-samling i {
    display: none !important;
}

.sp-rs-hero .sp-rs-hero-actions .btn-spara-samling::before {
    content: '' !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background: #3D5F42 !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3Cline x1='12' y1='11' x2='12' y2='17'/%3E%3Cline x1='9' y1='14' x2='15' y2='14'/%3E%3C/svg%3E") !important;
    -webkit-mask-size: contain !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3Cline x1='12' y1='11' x2='12' y2='17'/%3E%3Cline x1='9' y1='14' x2='15' y2='14'/%3E%3C/svg%3E") !important;
    mask-size: contain !important;
    mask-repeat: no-repeat !important;
    flex-shrink: 0 !important;
}

/* Sparad-state */
.sp-rs-hero .sp-rs-hero-actions .btn-spara-samling.saved {
    background-color: #3D5F42 !important;
    color: #fff !important;
    border-color: #3D5F42 !important;
}

.sp-rs-hero .sp-rs-hero-actions .btn-spara-samling.saved::before {
    background: #fff !important;
}

.sp-rs-hero .sp-rs-save-wrap {
    display: inline-flex !important;
    overflow: visible !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
}

.sp-rs-hero .sp-rs-hero-info .sp-rs-hero-actions .sp-rs-save-wrap .simplefavorite-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 18px !important;
    background-color: #f5ebe5 !important;
    border: none !important;
    border-radius: 24px !important;
    font-family: 'Proxima Nova', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #3D5F42 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    min-height: 38px !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    box-shadow: none !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
}

.sp-rs-hero .sp-rs-hero-info .sp-rs-hero-actions .sp-rs-save-wrap .simplefavorite-button:hover {
    background-color: #ecdfd5 !important;
    transform: scale(1) !important;
    box-shadow: none !important;
}

.sp-rs-hero .sp-rs-hero-info .sp-rs-hero-actions .sp-rs-save-wrap .simplefavorite-button:active {
    transform: scale(0.96) !important;
}

/* Sparad-state */
.sp-rs-hero .sp-rs-hero-info .sp-rs-hero-actions .sp-rs-save-wrap .simplefavorite-button.active {
    background-color: #f5ebe5 !important;
    color: #3D5F42 !important;
    opacity: 1 !important;
}

.sp-rs-hero .sp-rs-save-wrap .simplefavorite-button.active::before {
    background: #E2264D !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") !important;
}

/* Göm FA-ikonen */
.sp-rs-hero .sp-rs-save-wrap .simplefavorite-button i {
    display: none !important;
}

/* SVG-hjärta via CSS mask */
.sp-rs-hero .sp-rs-save-wrap .simplefavorite-button::before {
    content: '' !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background: currentColor !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") !important;
    -webkit-mask-size: contain !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") !important;
    mask-size: contain !important;
    mask-repeat: no-repeat !important;
    flex-shrink: 0 !important;
}

/* "Spara"/"Sparad"-text */
.sp-rs-hero .sp-rs-save-wrap .simplefavorite-button::after {
    content: 'Spara' !important;
}

.sp-rs-hero .sp-rs-save-wrap .simplefavorite-button.active::after {
    content: 'Sparad' !important;
}


/* === 5. TITEL === */

.sp-rs-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 12px;
    line-height: 1.25;
}


/* === 6. INGRESS === */

.sp-rs-ingress {
    margin: 0 0 6px;
    font-size: 16px;
    color: #3a3a3a;
    line-height: 1.6;
}

.sp-rs-ingress p {
    margin: 0;
}

.sp-rs-author {
    font-size: 13px;
    color: #999;
    margin: 0;
}


/* === 7. METABAR === */

.sp-rs-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sp-rs-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.sp-rs-meta-item svg {
    flex-shrink: 0;
    color: #8aaa8e;
}

.sp-rs-meta-sep {
    display: none;
}


/* Socialt bevis (♡ X har sparat) */
.sp-rs-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #8a6d5a;
    background: #faf5f0;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.sp-rs-social-proof svg {
    color: #E2264D;
    flex-shrink: 0;
}


/* === 7b. WAKE LOCK (bara mobil) & SKRIV UT (längst ner) === */

.sp-rs-wakelock-mobile {
    display: none;
    padding: 6px 0;
}

.sp-rs-wakelock-mobile .wakelock-container {
    padding: 0 !important;
    margin: 0;
}

.sp-rs-print-btn-wrap {
    display: flex;
    justify-content: flex-end;
    padding: 16px 0 0;
    margin-top: 8px;
}

/* Vattenmärke (gömd i normal vy, visas vid print) */
.sp-rs-print-watermark {
    display: none;
}

/* Trial print-sida (gömd i normal vy, visas vid Ctrl+P) */
.sp-rs-print-trial-page {
    display: none;
}

/* Trial-notice (istället för print-knapp under provperioden) */
.sp-rs-print-trial-notice {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 16px 0 0;
    margin-top: 8px;
    font-size: 13px;
    color: #aaa;
    font-style: italic;
}

.sp-rs-print-trial-notice svg {
    color: #ccc;
    flex-shrink: 0;
}


/* === 8. HOPPA TILL RECEPT-LÄNK === */

.sp-rs-jump-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
    padding: 10px 20px;
    background: #f5f5f0;
    border-radius: 10px;
    color: #3D5F42;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sp-rs-jump-link:hover {
    background: #ebe9e2;
    color: #2e4a33;
}


/* === 9. TVÅKOLUMNSLAYOUT === */

.sp-rs-content {
    display: flex;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 44px;
    align-items: flex-start;
}

.sp-rs-ingredients {
    flex: 0 0 320px;
    align-self: flex-start;
    background: #f9f7f3;
    border: 1px solid #e8e4dd;
    border-radius: 16px;
    padding: 24px;
}

.sp-rs-main {
    flex: 1;
    min-width: 0;
}


/* === 10. INGREDIENS-HEADER & PORTIONSJUSTERARE === */

.sp-rs-ingredients-header {
    margin-bottom: 16px;
}

.sp-rs-ingredients-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 10px;
}

.sp-rs-portion-adjuster {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #e0dcd6;
    border-radius: 8px;
    padding: 3px;
}

.sp-rs-portion-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: #f5f3ef;
    color: #3D5F42;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.sp-rs-portion-btn:hover {
    background: #e8e6df;
}

.sp-rs-portion-btn:active {
    transform: scale(0.93);
}

.sp-rs-portion-input {
    width: 32px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    appearance: textfield;
    padding: 0;
}

.sp-rs-portion-input::-webkit-outer-spin-button,
.sp-rs-portion-input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.sp-rs-portion-label {
    font-size: 13px;
    color: #666;
    margin: 0 6px 0 2px;
}


/* === 11. INGREDIENSLISTA === */

.sp-rs-ing-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-rs-ing {
    padding: 0;
    margin: 0;
}

.sp-rs-ing--spacer {
    height: 16px;
}

.sp-rs-ing--heading {
    padding: 14px 0 4px;
    margin-top: 4px;
    border-top: 1px solid #e0dcd6;
}

.sp-rs-ing--heading:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.sp-rs-ing--heading h3 {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #3D5F42;
    margin: 0;
    font-style: italic;
}

.sp-rs-ing--item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.sp-rs-ing-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #c5c5c5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, background 0.15s ease;
    color: transparent;
}

.sp-rs-ing--item[aria-checked="true"] .sp-rs-ing-check {
    background: #3D5F42;
    border-color: #3D5F42;
    color: #fff;
}

.sp-rs-ing--item[aria-checked="true"] .sp-rs-ing-text {
    color: #999;
    text-decoration: line-through;
    text-decoration-color: #bbb;
}

.sp-rs-ing--item[aria-checked="true"] .sp-rs-ing-amount {
    color: inherit;
}

.sp-rs-ing-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #3a3a3a;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.sp-rs-ing-amount {
    font-weight: 700;
    color: #2c2c2c;
}

/* Icke-skalbara mängder (t.ex. "Lite", "efter smak") — normal vikt */
.sp-rs-ing--item[data-scalable="0"] .sp-rs-ing-amount {
    font-weight: 400;
}

.sp-rs-ing-text a {
    color: #3D5F42;
    text-decoration: none;
    border-bottom: 1px dotted #3D5F42;
}

.sp-rs-ing-text a:hover {
    color: #2e4a33;
    border-bottom-style: solid;
}

/* Göm tomma auto-länkade <a>-taggar (dubblett-bug) och 🛒-ikon */
.sp-rs-ing-text a:empty {
    display: none;
}

/* Tips-rad — inline-notering under en ingrediens */
.sp-rs-ing--tip {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 2px 0 6px 30px;
    margin-top: -4px;
}

.sp-rs-ing-tip-arrow {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
    line-height: 1;
}

.sp-rs-ing-tip-text {
    font-size: 12.5px;
    font-style: italic;
    color: #767676;
    line-height: 1.4;
}

/* Toggle-tip — klickbar tip-rad som expanderar sub-ingredienser */
.sp-rs-ing--tip-toggle {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.sp-rs-ing--tip-toggle .sp-rs-ing-tip-text {
    border-bottom: 1px dashed #aaa;
}

.sp-rs-ing--tip-toggle .sp-rs-ing-tip-text::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(-45deg);
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.sp-rs-ing--tip-toggle[aria-expanded="true"] .sp-rs-ing-tip-text::after {
    transform: rotate(45deg);
}

.sp-rs-ing--tip-toggle:hover .sp-rs-ing-tip-text {
    color: #555;
    border-bottom-style: solid;
}

/* Sub-ingrediens — indenterad alternativ-ingrediens */
.sp-rs-ing--sub {
    padding-left: 28px;
}

.sp-rs-ing--sub-hidden {
    display: none;
}

.sp-rs-ing--sub .sp-rs-ing-text {
    font-size: 13px;
    color: #666;
}

.sp-rs-ing--sub .sp-rs-ing-amount {
    font-weight: 600;
    color: #666;
}

.sp-rs-ing--sub .sp-rs-ing-check {
    width: 18px;
    height: 18px;
}


/* === 12. NÄRINGSVÄRDEN (donut-chart) === */

.sp-rs-nutrition-section {
    border-top: 1px solid #e0dcd6;
    margin-top: 14px;
    padding-top: 14px;
}

.sp-rs-nutrition-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    padding: 0;
}

.sp-rs-nutrition-toggle::-webkit-details-marker {
    display: none;
}

.sp-rs-nutrition-toggle-text {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #3D5F42;
    border-bottom: 1px dashed #3D5F42;
    transition: color 0.15s ease;
}

.sp-rs-nutrition-toggle:hover .sp-rs-nutrition-toggle-text {
    color: #2e4a33;
}

.sp-rs-nutrition-toggle-icon {
    width: 18px;
    height: 18px;
    border: 1.5px solid #3D5F42;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.sp-rs-nutrition-toggle-icon::after {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid #3D5F42;
    border-bottom: 1.5px solid #3D5F42;
    transform: rotate(45deg);
    margin-top: -2px;
}

.sp-rs-nutrition-section[open] .sp-rs-nutrition-toggle-icon {
    transform: rotate(180deg);
    background: #3D5F42;
}

.sp-rs-nutrition-section[open] .sp-rs-nutrition-toggle-icon::after {
    border-color: #fff;
}

.sp-rs-nutrition-chart {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 14px;
}

.sp-rs-nutrition-donut {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-rs-nutrition-donut-center {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sp-rs-nutrition-kcal-value {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1;
}

.sp-rs-nutrition-kcal-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sp-rs-nutrition-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-rs-nutrition-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-family: 'Proxima Nova', sans-serif;
}

.sp-rs-nutrition-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sp-rs-nutrition-legend-label {
    color: #555;
    flex: 1;
}

.sp-rs-nutrition-legend-value {
    font-weight: 700;
    color: #2c2c2c;
}

.sp-rs-nutrition-disclaimer {
    font-size: 12px;
    color: #999;
    margin: 14px 0 0;
}


/* === 13. INSTRUKTIONER (tidslinje-design) === */

.sp-rs-instructions {
    margin-bottom: 32px;
}

.sp-rs-instructions-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sp-rs-instructions-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
}

.sp-rs-instructions-hint {
    font-size: 12px;
    color: #aaa;
    font-style: italic;
}

.sp-rs-step-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-rs-step {
    display: flex;
    gap: 20px;
    padding: 0 0 28px;
    cursor: pointer;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    min-height: 70px;
}

.sp-rs-step:last-child {
    padding-bottom: 0;
}

/* Vertikal streckad tidslinje */
.sp-rs-step-number-col {
    flex-shrink: 0;
    width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Dashed linje som kopplar stegen */
.sp-rs-step:not(:last-child) .sp-rs-step-number-col::after {
    content: '';
    position: absolute;
    top: 38px;
    bottom: -8px;
    left: 50%;
    width: 2px;
    background: #e8e4dd;
    transform: translateX(-50%);
}

.sp-rs-step--done:not(:last-child) .sp-rs-step-number-col::after {
    background: #c5d4c7;
}

/* Stort editoriellt stegnummer */
.sp-rs-step-number {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #3D5F42;
    line-height: 1;
    transition: color 0.15s ease;
    position: relative;
    z-index: 1;
}

.sp-rs-step--done .sp-rs-step-number {
    color: #c5d4c7;
}

.sp-rs-step-body {
    flex: 1;
    min-width: 0;
    padding-top: 6px;
}

.sp-rs-step-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #3a3a3a;
    transition: color 0.15s ease;
}

.sp-rs-step--done .sp-rs-step-body p {
    color: #999;
    text-decoration: line-through;
    text-decoration-color: #bbb;
}

.sp-rs-step-image {
    margin-top: 14px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 480px;
}

.sp-rs-step-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Checkmark som visas vid done-state (ersätter separat checkbox) */
.sp-rs-step-done-mark {
    display: none;
    margin-top: 6px;
    position: relative;
    z-index: 2;
}

.sp-rs-step--done .sp-rs-step-done-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #3D5F42;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 0 0 3px #fff;
}


/* === 14–15. SKRIV UT-KNAPP (i verktygsfältet) === */

.sp-rs-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.sp-rs-print-btn:hover {
    background: #f5f5f0;
    color: #3a3a3a;
}

.sp-rs-print-btn:active {
    transform: scale(0.97);
}


/* === 16. KOMMENTARER === */

.sp-rs-comments {
    padding-top: 16px;
    margin-top: 16px;
    margin-bottom: 32px;
}

/* Reducera wpDiscuz-marginaler */
.sp-rs-comments .wpd-main-form-wrapper {
    margin-top: 0 !important;
}

.sp-rs-comments #wpcomm {
    padding-top: 0 !important;
}

/* Förhindra iOS-zoom vid fokus (kräver minst 16px) */
.sp-rs-comments .ql-editor {
    font-size: 16px !important;
}


/* === 17. RELATERADE RECEPT (nu i sidofältet) === */
/* Stilar i sektion 1b */


/* === 18. PRINT === */

.sp-rs-print-header,
.sp-rs-print-footer {
    display: none;
}

@media print {
    /* === GÖMD VID PRINT === */
    .header,
    .sp-footer,
    .sp-rs-hero-actions,
    .sp-rs-social-proof,
    .sp-rs-comments,
    .sp-rs-sidebar,
    .sp-rs-wakelock-mobile,
    .sp-rs-print-btn-wrap,
    .sp-rs-portion-adjuster,
    .sp-rs-step-done-mark,
    .sp-rs-instructions-hint,
    .sp-rs-nutrition-section,
    .sp-rs-ing-check,
    .sp-rs-step-image,
    .sp-rs-sidebar-search,
    .sp-rs-badge,
    .sp-mm-trigger,
    .sp-mm-overlay,
    .sp-mm-panel,
    .mm-menu,
    #mm-blocker,
    #wpadminbar,
    #query-monitor-main,
    .sp-rs-save-wrap,
    .btn-spara-samling,
    .cky-consent-container,
    .cky-overlay,
    .wpacu_hide,
    .nojq {
        display: none !important;
    }

    /* === RESET === */
    * {
        box-shadow: none !important;
    }

    body {
        background: #fff !important;
        background-image: none !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
        color: #222 !important;
        font-family: 'Proxima Nova', -apple-system, sans-serif !important;
    }

    .mm-page {
        padding: 0 !important;
        margin: 0 !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 10mm !important;
    }

    .page-wrapper {
        margin: 0 !important;
    }

    /* Print-header borttagen — logga sitter i footern */
    .sp-rs-print-header {
        display: none !important;
    }

    /* === HERO-SEKTION (bild + info sida vid sida) === */
    .sp-rs-hero {
        border-radius: 0 !important;
        overflow: visible !important;
        margin: 0 0 32px !important;
        padding: 0 !important;
    }

    .sp-rs-hero-image {
        display: block !important;
        float: left;
        width: 320px;
        height: 210px;
        margin: 0 24px 10px 0;
        overflow: hidden;
        border-radius: 10px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sp-rs-hero-img {
        width: 320px !important;
        height: 210px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }

    .sp-rs-hero-info {
        padding: 0 !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .sp-rs-title {
        font-size: 20px !important;
        margin-bottom: 4px !important;
        color: #222 !important;
    }

    .sp-rs-meta {
        margin-bottom: 6px !important;
        gap: 14px !important;
    }

    .sp-rs-meta-item {
        font-size: 11px !important;
        color: #555 !important;
    }

    .sp-rs-meta-item svg {
        display: none !important;
    }

    .sp-rs-ingress {
        margin-bottom: 0 !important;
    }

    .sp-rs-ingress p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        color: #333 !important;
        margin: 0 !important;
    }

    /* === KORT === */
    .sp-rs {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .sp-rs-inner {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .sp-rs-page-layout {
        display: block !important;
    }

    .sp-rs-content {
        padding-top: 0 !important;
    }

    /* === TVÅKOLUMN: ingredienser + steg sida vid sida === */
    .sp-rs-content {
        display: flex !important;
        flex-direction: row !important;
        gap: 24px !important;
        align-items: flex-start !important;
        clear: both;
        padding-top: 0 !important;
    }

    .sp-rs-ingredients {
        flex: 0 0 40% !important;
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        width: auto !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        page-break-inside: avoid;
    }

    .sp-rs-ingredients-title {
        font-size: 14px !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid #ccc !important;
    }

    .sp-rs-ing--item {
        padding: 4px 0 !important;
        min-height: auto !important;
    }

    .sp-rs-ing-text {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .sp-rs-ing-amount {
        font-size: 14px !important;
    }

    .sp-rs-ing--heading {
        padding: 8px 0 3px !important;
        margin-top: 4px !important;
        border-top: none !important;
    }

    .sp-rs-ing--heading h3 {
        font-size: 13px !important;
        color: #222 !important;
        font-style: italic !important;
    }

    .sp-rs-ing--spacer {
        height: 6px !important;
    }

    .sp-rs-ing--tip {
        padding: 1px 0 3px 0 !important;
        margin-top: -2px !important;
    }

    .sp-rs-ing-tip-arrow {
        font-size: 10px !important;
        color: #666 !important;
    }

    .sp-rs-ing-tip-text {
        font-size: 11px !important;
        color: #555 !important;
    }

    .sp-rs-ing--sub {
        padding-left: 16px !important;
    }

    .sp-rs-main {
        flex: 1 !important;
        min-width: 0 !important;
    }

    /* === INSTRUKTIONER === */
    .sp-rs-instructions {
        margin-bottom: 0 !important;
    }

    .sp-rs-instructions-header {
        display: block !important;
    }

    .sp-rs-instructions-title {
        font-size: 14px !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid #ccc !important;
    }

    .sp-rs-step {
        padding: 0 0 10px !important;
        gap: 10px !important;
        min-height: auto !important;
        page-break-inside: avoid;
    }

    .sp-rs-step-number-col {
        width: 20px !important;
    }

    .sp-rs-step-number {
        font-size: 14px !important;
        color: #222 !important;
        font-weight: 700 !important;
    }

    .sp-rs-step-number-col::after {
        display: none !important;
    }

    .sp-rs-step-body {
        padding-top: 1px !important;
    }

    .sp-rs-step-body p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        color: #222 !important;
    }

    /* === PRINT FOOTER (logga + URL, fixerad längst ner på A4) === */
    .sp-rs-print-footer {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 6px 10mm;
        border-top: 1px solid #ddd;
        font-size: 10px;
        color: #888;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
    }

    .sp-rs-print-footer .sp-rs-print-logo {
        max-width: 70px;
        height: auto;
    }

    .sp-rs-print-footer p {
        margin: 0;
    }

    .sp-rs-print-watermark {
        display: inline !important;
        font-size: 9px;
        color: #bbb;
    }

    .sp-rs-print-trial-notice {
        display: none !important;
    }

    /* === TRIAL: göm receptet, visa uppgradera-sida === */
    body.sp-rs-is-trial .sp-rs-hero,
    body.sp-rs-is-trial .sp-rs,
    body.sp-rs-is-trial .sp-rs-sidebar,
    body.sp-rs-is-trial .sp-rs-print-footer {
        display: none !important;
    }

    body.sp-rs-is-trial .sp-rs-print-trial-page {
        display: block !important;
        text-align: center;
        padding: 80px 40px;
        font-family: 'Proxima Nova', sans-serif;
    }

    body.sp-rs-is-trial .sp-rs-print-trial-logo {
        max-width: 140px;
        height: auto;
        margin-bottom: 30px;
    }

    body.sp-rs-is-trial .sp-rs-print-trial-page h2 {
        font-size: 28px;
        font-weight: 700;
        color: #2c2c2c;
        margin: 0 0 8px;
    }

    body.sp-rs-is-trial .sp-rs-print-trial-subtitle {
        font-size: 16px;
        color: #3D5F42;
        font-weight: 600;
        margin: 0 0 24px;
    }

    body.sp-rs-is-trial .sp-rs-print-trial-page p {
        font-size: 14px;
        color: #555;
        max-width: 400px;
        margin: 0 auto 16px;
        line-height: 1.6;
    }

    body.sp-rs-is-trial .sp-rs-print-trial-url {
        margin-top: 30px !important;
        font-size: 13px;
        color: #999;
    }
}


/* === 19. TABLET/MOBILANPASSNING (max-width: 1024px) === */

@media (max-width: 1024px) {
    .sp-rs-page-layout {
        padding-top: 0;
    }

    .sp-rs-inner {
        padding: 0 20px;
    }

    /* Visa wake lock på tablet/mobil */
    .sp-rs-wakelock-mobile {
        display: block;
    }

    /* Receptinnehåll: fyll full bredd (ingen max-width-begränsning) */
    .sp-rs-content {
        max-width: 100%;
    }

    .sp-rs-blog-title {
        font-size: 24px;
    }

    .sp-rs-meta {
        gap: 8px;
    }


    /* Hero: mobil */
    .sp-rs-hero {
        border-radius: 12px 12px 0 0;
    }

    .sp-rs-hero-image {
        max-height: 260px;
    }

    .sp-rs-hero-info {
        padding: 20px 20px 16px;
    }

    .sp-rs-title {
        font-size: 22px;
    }

    .sp-rs {
        border-radius: 0 0 12px 12px;
        box-shadow: none;
    }

    .sp-rs-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Sidlayout: stapla vertikalt */
    .sp-rs-page-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .sp-rs-page-main {
        max-width: 100%;
    }

    .sp-rs-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }

    /* Göm sökruta på mobil (finns i mobilmenyn) */
    .sp-rs-sidebar-search {
        display: none;
    }

    /* 2-kolumns grid för mini-kort på mobil */
    .sp-rs-sidebar-recipes {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sp-rs-sidebar-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 0;
        border-bottom: none;
    }

    .sp-rs-sidebar-thumb {
        width: 100%;
        height: 120px;
    }

    .sp-rs-sidebar-item-info {
        padding: 0 2px 4px;
    }

    .sp-rs-nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sp-rs-step {
        gap: 14px;
    }

    .sp-rs-step-number-col {
        width: 36px;
    }

    .sp-rs-step-number {
        font-size: 28px;
    }

    .sp-rs-step:not(:last-child) .sp-rs-step-number-col::after {
        top: 32px;
        bottom: -8px;
    }
}


/* === 19b. MOBILANPASSNING — recept staplas (max-width: 768px) === */

@media (max-width: 768px) {
    .sp-rs-content {
        flex-direction: column;
        gap: 24px;
        padding-top: 8px;
    }

    .sp-rs-nutrition-chart {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sp-rs-ingredients {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }
}


/* === 20. MOBILANPASSNING (max-width: 600px) === */

@media (max-width: 600px) {
    .sp-rs-title {
        font-size: 20px;
    }

    .sp-rs-blog-title {
        font-size: 20px;
    }

    .sp-rs-hero-info {
        padding: 20px 20px;
    }

    .sp-rs-hero .sp-rs-hero-info .sp-rs-hero-actions .sp-rs-save-wrap .simplefavorite-button {
        font-size: 13px !important;
        padding: 7px 14px !important;
    }

    .sp-rs-ingredients-title {
        font-size: 18px;
    }

    .sp-rs-instructions-title {
        font-size: 20px;
    }

    .sp-rs-related-title {
        font-size: 20px;
    }

    .sp-rs-ingress {
        font-size: 15px;
    }

    .sp-rs-ing-text {
        font-size: 14px;
    }

    .sp-rs-step-body p {
        font-size: 15px;
    }

    .sp-rs-step-number {
        font-size: 24px;
    }

    .sp-rs-step-number-col {
        width: 32px;
    }

    .sp-rs-step:not(:last-child) .sp-rs-step-number-col::after {
        top: 28px;
        bottom: -8px;
    }

    /* Stegbilder — full bredd på mobil */
    .sp-rs-step-image {
        max-width: 100%;
    }


    .sp-rs-portion-input {
        font-size: 16px;
    }

    .sp-rs-nutrition-value {
        font-size: 20px;
    }

    .sp-rs-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* === MEDLEMSKAPS-CTA (gratisrecept) === */

/* --- CTA efter receptet (inline) --- */
.sp-rs-cta {
    margin: 40px 0 32px;
}

.sp-rs-cta-inner {
    background: linear-gradient(135deg, #faf8f5 0%, #f3efe9 100%);
    border: 1px solid #e8e5e1;
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.sp-rs-cta-heading {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 8px;
    line-height: 1.3;
}

.sp-rs-cta-text {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0 0 16px;
    line-height: 1.4;
}

.sp-rs-cta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
    display: inline-block;
}

.sp-rs-cta-list li {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #3a3a3a;
    padding: 5px 0 5px 26px;
    position: relative;
    line-height: 1.4;
}

.sp-rs-cta-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--sp-cta-bg);
    font-weight: 700;
    font-size: 15px;
}

.sp-rs-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--sp-cta-bg);
    color: #fff !important;
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.sp-rs-cta-btn:hover {
    background: var(--sp-cta-hover);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none;
}

.sp-rs-cta-btn:active {
    transform: translateY(0);
}

/* --- CTA i sidofältet --- */
.sp-rs-sidebar-cta {
    background: linear-gradient(135deg, #faf8f5 0%, #f3efe9 100%);
    border: 1px solid #e8e5e1;
    border-radius: 10px;
    padding: 20px 18px;
    margin-top: 20px;
    text-align: center;
}

.sp-rs-sidebar-cta-heading {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 8px;
    line-height: 1.3;
}

.sp-rs-sidebar-cta-text {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
    line-height: 1.45;
}

.sp-rs-sidebar-cta-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: var(--sp-cta-bg);
    color: #fff !important;
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.1s ease;
}

.sp-rs-sidebar-cta-btn:hover {
    background: var(--sp-cta-hover);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none;
}

.sp-rs-sidebar-cta-btn:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .sp-rs-cta-inner {
        padding: 24px 20px;
    }

    .sp-rs-cta-heading {
        font-size: 20px;
    }

    .sp-rs-cta-btn {
        display: block;
        width: 100%;
        padding: 14px 20px;
    }
}

/* === LÅST TEASERSIDA (blur-overlay) === */

.sp-rs-teaser-wrap {
    position: relative;
}

.sp-rs-teaser-blur {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    margin: 0 -24px;
    padding: 0 24px;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

.sp-rs-teaser-blur::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 45%, #fff 100%);
    pointer-events: none;
}

.sp-rs-teaser-overlay {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.sp-rs-teaser-inner {
    background: linear-gradient(135deg, #faf8f5 0%, #f3efe9 100%);
    border: 1px solid #e8e5e1;
    border-radius: 12px;
    padding: 36px 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.sp-rs-teaser-lock {
    color: var(--sp-cta-bg);
    margin-bottom: 16px;
}

.sp-rs-teaser-heading {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 12px;
    line-height: 1.3;
}

.sp-rs-teaser-text {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0 0 28px;
    line-height: 1.5;
}

.sp-rs-teaser-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--sp-cta-bg);
    color: #fff !important;
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.sp-rs-teaser-btn:hover {
    background: var(--sp-cta-hover);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none;
}

.sp-rs-teaser-btn:active {
    transform: translateY(0);
}

.sp-rs-teaser-back {
    display: block;
    margin-top: 16px;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #999;
    text-decoration: none;
}

.sp-rs-teaser-back:hover {
    color: #666;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .sp-rs-teaser-blur {
        max-height: 450px;
    }

    .sp-rs-teaser-overlay {
        top: 10px;
        padding: 0 12px;
    }

    .sp-rs-teaser-inner {
        padding: 20px 16px;
    }

    .sp-rs-teaser-lock svg {
        width: 22px;
        height: 22px;
    }

    .sp-rs-teaser-heading {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .sp-rs-teaser-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .sp-rs-teaser-btn {
        display: block;
        width: 100%;
        padding: 13px 20px;
        font-size: 15px;
    }

    .sp-rs-teaser-back {
        font-size: 13px;
        margin-top: 12px;
    }
}

/* === ADMIN: TILLÅT TEXTMARKERING === */
body.sp-is-admin .sp-rs-ing--item,
body.sp-is-admin .sp-rs-step {
    -webkit-user-select: auto;
    user-select: auto;
}
