/* =========================================
   Batterioutlet Custom Footer
   ========================================= */

/* ============ Footer Base ============ */

.bo-footer {
    font-family: var(--bo-font);
    margin-top: -30px;
    position: relative;
}

.bo-footer__inner {
    background: #1B1B1B;
    border-radius: 30px 30px 0 0;
    color: #fff;
    padding: 60px 0 0;
    position: relative;
}

/* ============ Trygg e-Handel Badge ============ */

.bo-footer__teh {
    min-width: 60px;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1;
}

/* ============ Grid Layout ============ */

.bo-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
}

/* ============ Brand Column ============ */

.bo-footer__logo {
    display: inline-block;
    margin-bottom: 20px;
}

.bo-footer__logo img {
    display: block;
    height: auto;
    max-width: 220px;
    filter: brightness(0) invert(1);
}

.bo-footer__logo-text {
    color: var(--bo-accent);
    font-size: 22px;
    font-weight: 700;
}

.bo-footer__address {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-style: normal;
    line-height: 1.8;
}

/* ============ Headings ============ */

.bo-footer__heading {
    color: var(--bo-accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0 0 20px;
    text-transform: uppercase;
}

/* ============ Lists ============ */

.bo-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bo-footer__list li {
    margin-bottom: 12px;
}

.bo-footer__list li:last-child {
    margin-bottom: 0;
}

.bo-footer__list a {
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    font-size: 14px;
    gap: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bo-footer__list a:hover,
.bo-footer__list a:focus-visible {
    color: var(--bo-accent);
}

.bo-footer__list a svg {
    color: var(--bo-accent);
    flex-shrink: 0;
}

.bo-footer__meta {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-left: 4px;
}

/* Links-only list (Information column) */
.bo-footer__list--links a {
    padding: 2px 0;
    position: relative;
}

.bo-footer__list--links a::after {
    background: var(--bo-accent);
    bottom: 0;
    content: '';
    height: 1px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
    width: 100%;
}

.bo-footer__list--links a:hover::after,
.bo-footer__list--links a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============ Trust Section ============ */

.bo-footer__trust {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    margin-top: 48px;
    padding: 32px 0 0;
}

.bo-footer__payment {
    max-width: 420px;
    width: 100%;
}

.bo-footer__payment img {
    display: block;
    height: auto;
    width: 100%;
}

/* Trustpilot rating */
.bo-footer__trustpilot {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    gap: 12px;
    padding: 10px 20px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bo-footer__trustpilot:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 182, 122, 0.4);
}

.bo-tp__score {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.bo-tp__stars {
    display: inline-flex;
    gap: 3px;
}

.bo-tp__star {
    height: 18px;
    width: 18px;
}

.bo-tp__star--full {
    fill: #00b67a;
}

.bo-tp__label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    font-weight: 500;
}

.bo-tp__arrow {
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.bo-footer__trustpilot:hover .bo-tp__arrow {
    color: #00b67a;
    transform: translate(2px, -2px);
}

/* ============ Bottom Bar ============ */

.bo-footer__bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding: 20px 0 24px;
}

.bo-footer__copyright {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    font-weight: 300;
    margin: 0;
}

.bo-footer__consent-link {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-family: var(--bo-font);
    font-size: 12px;
    padding: 6px 16px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bo-footer__consent-link:hover,
.bo-footer__consent-link:focus-visible {
    background: transparent;
    border-color: var(--bo-accent);
    color: var(--bo-accent);
}

/* ============ Responsive: Tablet ============ */

@media (max-width: 900px) {
    .bo-footer__inner {
        padding: 48px 0 0;
    }

    .bo-footer__grid {
        gap: 36px;
        grid-template-columns: 1fr 1fr;
    }

    .bo-footer__col--brand {
        grid-column: 1 / -1;
    }

    .bo-footer__trust {
        margin-top: 36px;
    }
}

/* ============ Responsive: Mobile ============ */

@media (max-width: 600px) {
    .bo-footer__inner {
        border-radius: 16px 16px 0 0;
        padding: 40px 0 0;
    }

    .bo-footer__grid {
        gap: 32px;
        grid-template-columns: 1fr;
    }

    .bo-footer__col--brand {
        grid-column: auto;
        text-align: center;
    }

    .bo-footer__logo img {
        margin: 0 auto;
    }

    .bo-footer__heading {
        margin-bottom: 16px;
    }

    .bo-footer__trust {
        margin-top: 32px;
    }

    .bo-footer__payment {
        max-width: 100%;
    }

    .bo-footer__bottom {
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
        text-align: center;
    }
}
