/* --- GRUNNDESIGN (Felles for alle) --- */
.four33-embed {
    display: block;
    clear: both;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    overflow: hidden;

    background: transparent;
    padding: 10px 0 10px 15px;
    margin: 30px 0;

    border: none;
    border-left: 3px solid var(--border-medium, #e5e7eb);
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    color: var(--text-main, #111);
    /* Dark mode support */
}

/* Override for theme's aggressive link styling */
.four33-embed a,
.four33-embed a[target="_blank"],
.four33-embed .embed-content a[target="_blank"],
.four33-embed .embed-content a[rel~="external"] {
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    color: inherit !important;
    border-bottom: none !important;
    background: none !important;
}

.four33-embed:hover {
    transform: none;
    box-shadow: none;
}

.embed-action {
    background: #0059ff;
    padding: 5px;
    border-radius: 40px;
}

/* Tittel styling - ENKEL */
.four33-embed h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-main, #111);
}

.four33-embed h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.four33-embed h3 a:hover {
    text-decoration: none !important;
    opacity: 0.8;
}


/* --- SPESIFIKT: PRODUKT --- */
.type-product {
    border-left-color: #0023bf;
    display: flex;
    flex-direction: column;
    /* Mobil first: kolonne */
    align-items: center;
    text-align: center;
    gap: 15px;
}

/* Visuell del (Bilde) */
.embed-product-visual {
    order: 1;
    /* Bilde først på mobil */
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.embed-product-visual img {
    max-width: 150px;
    /* Litt større enn 120px, men sentrert */
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Innholdsdel */
.embed-product-content {
    order: 2;
    /* Innhold under bilde på mobil */
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    /* Sentrer innhold på mobil */
}

.type-product .embed-product-content h3 {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.3rem;
}

.type-product .embed-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary, #333);
    margin-bottom: 10px;
    font-weight: 400;
    font-style: italic;
    /* Kursiv ref ønske */
}

.embed-store-info {
    font-size: 0.9rem;
    color: var(--text-meta, #555);
    margin-bottom: 15px;
}

/* Enkel lenke-knapp for produkt */
.type-product .btn-buy {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fff;
    color: var(--bg-card, #fff) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    border-radius: 4px;
    font-weight: 500;
    align-self: center;
    /* Sentrert knapp på mobil */
}

.type-product .btn-buy:hover {
    opacity: 0.8;
}


/* --- SPESIFIKT: NYHET --- */
.type-news {
    border-left-color: var(--text-main, #000);
}


/* --- SPESIFIKT: KOMMENTAR / MENING --- */
.type-opinion {
    border-left-color: var(--text-main, #000);
}

/* Kommentar Label */
.embed-label.label-opinion {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

/* "Les også" Label */
.embed-read-also {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-meta, #6b7280);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    font-weight: 600;
}


/* --- DESKTOP (PC) OG STØRRE --- */
@media (min-width: 600px) {

    /* Produkt: Bilde til venstre, tekst til høyre */
    .type-product {
        flex-direction: row;
        align-items: stretch;
        /* Lar innholdsboksen fylle høyden */
        text-align: left;
    }

    .embed-product-visual {
        width: 200px;
        /* Fast bredde på bilde-kolonne */
        flex-shrink: 0;
        margin-right: 25px;
        order: 1;
        /* Bilde til venstre */
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .embed-product-visual img {
        max-width: 100%;
        width: 100%;
        /* Fyller 200px container */
    }

    .embed-product-content {
        order: 2;
        align-items: flex-start;
        /* Venstrestilt innhold */
    }

    .type-product .embed-product-content h3 {
        font-size: 1.25rem;
        /* Litt mindre enn mobil kanskje, eller likt */
        margin-top: 0;
    }

    .type-product .btn-buy {
        align-self: flex-start;
        /* Venstrestilt knapp */
        margin-top: auto;
        /* Skyv knapp ned hvis det er plass */
    }

    /* Mobil justeringer for andre typer hvis nødvendig */
}