.klarna-custom-banner {
    width: 100%;
    position: relative;
    z-index: 9999;
    padding: 15px 20px;
    box-sizing: border-box;
    display: none;
}

.klarna-custom-banner * {
    box-sizing: border-box;
}

.klarna-custom-banner img {
    border: 0;
    vertical-align: middle;
}

.klarna-custom-banner.klarna-banner-visible {
    display: block;
}

.klarna-custom-banner-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.klarna-custom-banner-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.klarna-custom-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.klarna-custom-banner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.klarna-custom-banner .klarna-custom-banner-logo img {
    height: 30px !important;
    width: auto !important;
    max-height: 30px !important;
    min-height: 30px !important;
    max-width: none !important;
    min-width: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
}

.klarna-custom-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.klarna-custom-banner-text a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.klarna-custom-banner-text a:hover {
    text-decoration: none;
}

.klarna-custom-banner-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.klarna-custom-banner-close:hover {
    opacity: 1;
}

.klarna-custom-banner-close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

body.klarna-banner-top-active {
    padding-top: 60px;
}

body.klarna-banner-bottom-active {
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .klarna-custom-banner {
        padding: 12px 15px;
    }
    
    .klarna-custom-banner-content {
        gap: 15px;
    }
    
    .klarna-custom-banner .klarna-custom-banner-logo img {
        height: 25px !important;
        max-height: 25px !important;
        min-height: 25px !important;
    }
    
    .klarna-custom-banner-text {
        font-size: 13px;
    }
    
    .klarna-custom-banner-close {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    
    body.klarna-banner-top-active {
        padding-top: 50px;
    }
    
    body.klarna-banner-bottom-active {
        padding-bottom: 50px;
    }
}
