/* Styling til banneret - svævende og moderne */
#ditbyg-sticky-banner {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 150%);
    width: calc(100% - 40px);
    max-width: 850px;
    background-color: #ffffff;
    box-shadow: 0 12px 35px rgba(26, 43, 73, 0.15);
    border-radius: 16px;
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
    box-sizing: border-box;
}

#ditbyg-sticky-banner.banner-visible {
    transform: translate(-50%, 0);
}

.ditbyg-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.ditbyg-banner-icon {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.ditbyg-banner-text {
    flex-grow: 1;
    font-family: inherit;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

.ditbyg-banner-text strong {
    font-size: 17px;
    color: #1a2b49;
    display: inline-block;
    margin-bottom: 2px;
}

/* NYT: Wrapper til knap og tekst */
.ditbyg-banner-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0; /* Sikrer at knappen ikke bliver klemt */
}

.ditbyg-banner-btn {
    background-color: #00d060;
    color: #ffffff !important;
    padding: 14px 28px;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 208, 96, 0.3);
}

.ditbyg-banner-btn:hover {
    background-color: #00b352;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 208, 96, 0.4);
}

/* NYT: Annonce tekst styling */
.ditbyg-banner-ad-text {
    font-size: 11px;
    color: #888888;
    line-height: 1;
    letter-spacing: 0.3px;
}

/* Lukkeknap */
#ditbyg-close-banner {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 22px;
    cursor: pointer;
    color: #1a2b49;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    padding: 0;
    line-height: 0;
    transition: all 0.2s ease;
}

#ditbyg-close-banner:hover {
    background: #1a2b49;
    color: #ffffff;
    transform: scale(1.1);
}

/* Badge (når lukket) */
#ditbyg-reopen-badge {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #00d060;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 6px 16px rgba(0, 208, 96, 0.35);
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
    transform: scale(0);
}

#ditbyg-reopen-badge:hover {
    background-color: #00b352;
    transform: scale(1.05) !important;
}

#ditbyg-reopen-badge.badge-visible {
    transform: scale(1);
}

/* Mobil-optimering */
@media (max-width: 768px) {
    #ditbyg-sticky-banner {
        bottom: 15px;
        padding: 16px;
        width: calc(100% - 30px);
    }
    .ditbyg-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .ditbyg-banner-icon {
        display: none;
    }
    .ditbyg-banner-text {
        font-size: 14px;
    }
    .ditbyg-banner-text strong {
        font-size: 15px;
    }
    /* NYT: Tilpasning af knap-området på mobil */
    .ditbyg-banner-btn-wrapper {
        width: 100%;
    }
    .ditbyg-banner-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    #ditbyg-close-banner {
        top: -10px;
        right: -10px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}