/* Kalsongshopen Google Reviews – CSS */
.ksh-reviews {
    font-family: inherit;
    color: #222;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.ksh-reviews *,
.ksh-reviews *::before,
.ksh-reviews *::after {
    box-sizing: border-box;
}

/* ----------- Header (rating + Google-logo) ----------- */
.ksh-reviews__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ksh-reviews__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.ksh-reviews__rating strong { font-weight: 700; }

.ksh-reviews__stars {
    color: #fbbc04;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.ksh-reviews__google-logo {
    font-weight: 500;
    font-family: 'Product Sans', Arial, sans-serif;
    background: linear-gradient(
        to right,
        #4285F4 0%, #4285F4 20%,
        #EA4335 20%, #EA4335 40%,
        #FBBC05 40%, #FBBC05 60%,
        #4285F4 60%, #4285F4 80%,
        #34A853 80%, #34A853 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
}

.ksh-reviews__total {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ----------- Karusell-layout ----------- */
.ksh-reviews__carousel {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.ksh-reviews__viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ksh-reviews__track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Pil-knappar */
.ksh-reviews__nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: #555;
    transition: all 0.2s ease;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ksh-reviews__nav:hover {
    background: #f7f7f7;
    color: #222;
    border-color: #ccc;
}

.ksh-reviews__nav:focus-visible {
    outline: 2px solid #4285F4;
    outline-offset: 2px;
}

.ksh-reviews__nav span {
    margin-top: -2px;
}

/* Prickar under */
.ksh-reviews__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ksh-reviews__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ksh-reviews__dot:hover { background: #9ca3af; }

.ksh-reviews__dot.is-active {
    background: #4285F4;
    transform: scale(1.3);
}

.ksh-reviews__dot:focus-visible {
    outline: 2px solid #4285F4;
    outline-offset: 2px;
}

/* ----------- Grid-layout (fallback) ----------- */
.ksh-reviews--grid .ksh-reviews__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .ksh-reviews--grid .ksh-reviews__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ksh-reviews--grid .ksh-reviews__list {
        grid-template-columns: 1fr;
    }
}

/* ----------- Recensionskort ----------- */
.ksh-review {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow 0.2s ease;
    min-height: 200px;
    margin: 0.25rem;
}

.ksh-review:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ksh-review__stars {
    color: #fbbc04;
    font-size: 1rem;
    letter-spacing: 2px;
    line-height: 1;
}

.ksh-review__text {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: normal;
    quotes: none;
    flex-grow: 1;
}

.ksh-review__text::before,
.ksh-review__text::after { content: none; }

.ksh-review__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.ksh-review__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ksh-review__author {
    font-weight: 600;
    font-size: 0.9rem;
    color: #222;
}

.ksh-review__date {
    font-size: 0.8rem;
    color: #777;
}

/* ----------- Se-alla-länk ----------- */
.ksh-reviews__see-all {
    text-align: center;
    margin-top: 1.25rem;
}

.ksh-reviews__see-all a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid #dadce0;
    border-radius: 24px;
    background: #fff;
    color: #1a73e8;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ksh-reviews__see-all a:hover {
    background: #f8faff;
    border-color: #1a73e8;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.15);
}

.ksh-reviews__see-all a:focus-visible {
    outline: 2px solid #4285F4;
    outline-offset: 2px;
}

.ksh-reviews__see-all svg {
    flex-shrink: 0;
}

/* ----------- Status-meddelanden ----------- */
.ksh-reviews-error {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.ksh-reviews-empty {
    text-align: center;
    color: #777;
    padding: 2rem;
    font-size: 0.95rem;
}

/* ----------- Responsivt för karusell ----------- */
@media (max-width: 900px) {
    /* Dölj pilarna helt på mobil + tablet – swipe räcker */
    .ksh-reviews__nav {
        display: none !important;
    }
    .ksh-reviews__carousel {
        gap: 0;
    }
}

@media (max-width: 600px) {
    .ksh-reviews {
        padding: 0 0.5rem;
    }
}

/* Respektera användarens motion-inställning */
@media (prefers-reduced-motion: reduce) {
    .ksh-reviews__track { transition: none; }
}

/* =========================================
   TRUSTPILOT-KARUSELL (egen stil)
   ========================================= */
.ksh-tp {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #191919;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.ksh-tp *,
.ksh-tp *::before,
.ksh-tp *::after {
    box-sizing: border-box;
}

/* ---------- Header (nu med Trustpilot-widget) ---------- */
.ksh-tp__header {
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 24px; /* plats åt widgeten */
}

/* Trustpilots widget-iframe centreras */
.ksh-tp__header .trustpilot-widget {
    display: inline-block;
}

/* ---------- Stjärnor (officiella Trustpilot-SVG:er) ---------- */
.ksh-tp__star-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.ksh-tp__stars-official {
    height: 20px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* Verifierad-bock (på samma rad som stjärnorna) */
.ksh-tp__verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    color: #4a4a4a;
    text-decoration: underline;
    text-decoration-color: #b0b0b0;
    text-underline-offset: 2px;
    flex-shrink: 0;
    line-height: 1;
}

.ksh-tp__verified svg {
    flex-shrink: 0;
}

/* ---------- Recensionskort ---------- */
.ksh-tp__review {
    background: #fff;
    border: 1px solid #e0e0e5;
    border-radius: 4px;
    padding: 1.25rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: box-shadow 0.2s ease;
    min-height: 220px;
    margin: 0.25rem;
}

.ksh-tp__review:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ksh-tp__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #191919;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ksh-tp__text {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4a4a4a;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: normal;
    quotes: none;
    flex-grow: 1;
}

.ksh-tp__text::before,
.ksh-tp__text::after { content: none; }

.ksh-tp__meta {
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid #f0f0f0;
}

.ksh-tp__meta-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.ksh-tp__author {
    font-weight: 700;
    font-size: 0.85rem;
    color: #191919;
}

.ksh-tp__submeta {
    font-size: 0.78rem;
    color: #707070;
    margin-top: 0.15rem;
}

/* "Läs på Trustpilot"-länk per kort (attribution) */
.ksh-tp__source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #707070;
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
    opacity: 0.7;
}

.ksh-tp__source:hover {
    opacity: 1;
    color: #191919;
}

.ksh-tp__source img {
    height: 12px;
    width: auto;
    display: block;
}

.ksh-tp__source-label {
    line-height: 1;
}

/* Transparens-text under karusellen */
.ksh-tp__disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #707070;
    margin-top: 0.8rem;
    margin-bottom: 0;
    font-style: italic;
}

.ksh-tp__disclaimer a {
    color: #00b67a;
    text-decoration: underline;
}

.ksh-tp__disclaimer a:hover {
    color: #00956a;
}

/* ---------- Navigation (pilar) ---------- */
.ksh-tp__nav {
    border-radius: 4px !important;
    border-color: #e0e0e5 !important;
}

.ksh-tp__nav:hover {
    background: #f7f7f9 !important;
    border-color: #00b67a !important;
    color: #00b67a !important;
}

/* Prickar – gröna istället för blåa */
.ksh-tp__dots .ksh-reviews__dot.is-active {
    background: #00b67a !important;
}

/* Officiell stjärnbild från Trustpilot */
.ksh-tp__stars-official {
    height: 26px;
    width: auto;
    display: block;
}

/* ---------- Se-alla-knapp ---------- */
.ksh-tp__see-all {
    text-align: center;
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ksh-tp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    line-height: 1;
    border: 2px solid transparent;
}

.ksh-tp__btn span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.ksh-tp__btn--primary {
    background: #fff;
    color: #191919;
    border-color: #00b67a;
}

.ksh-tp__btn--primary:hover {
    background: #f0fdf7;
    color: #191919;
    border-color: #00956a;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 182, 122, 0.2);
}

.ksh-tp__btn--secondary {
    background: #00b67a;
    color: #fff;
    border-color: #00b67a;
}

.ksh-tp__btn--secondary:hover {
    background: #00956a;
    color: #fff;
    border-color: #00956a;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 182, 122, 0.3);
}

.ksh-tp__btn:focus-visible {
    outline: 2px solid #00b67a;
    outline-offset: 2px;
}

/* Trustpilot-loggan – originalfärg, centrerad lodrätt */
.ksh-tp__btn img {
    height: 16px;
    width: auto;
    display: block;
    align-self: center;
}

/* ---------- Responsivt ---------- */
@media (max-width: 900px) {
    .ksh-tp__nav {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .ksh-tp {
        padding: 0 0.5rem;
    }
}
