


.nyekunder-container {
    max-width: 800px;
    margin: 2rem auto;
    padding-top: 2rem;
	padding-bottom: 2rem;
}







.postcode-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#postcode-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#search-button {
    background-color: #6EC1E4;
	border: 1px solid #373D8F;
    color: black;
}

#search-button:hover {
    background-color: #6E7AE4;
	color: white;
}

.results-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.results-message {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}




.nyekunder-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nyekunder-popup {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 900px;       /* Økt bredde til ca. dobbelt så stor */
    width: 90%;
    max-height: 80vh;       /* Maks høyde: 80% av skjermen */
    overflow-y: auto;       /* Vertikal rulling om nødvendig */
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    position: relative;
    text-align: left;
}

.nyekunder-popup h2 {
    margin-top: 0;
}
.popup-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
.popup-images img {
    max-width: 100%;
    margin: 0.5rem 0;
    border-radius: 4px;
}
.button-info {
    background: #e7f1fa;
    color: #0073aa;
    border: 1px solid #0073aa;
    margin-top: 1rem;
}
.button-info:hover {
    background: #0073aa;
    color: #fff;
}



.nyekunder-company-selector {
    margin: 1rem 0;
}
.nyekunder-filters {
    margin-bottom: 1rem;
}
.nyekunder-company-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fafbfc;
}
.nyekunder-company-list li {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
}
.nyekunder-company-list li:last-child {
    border-bottom: none;
}


/* Gjør bransje-dropdown smalere */
#industry-filter {
    width: 500px;   /* Juster til ønsket bredde, f.eks. 180-240px */
    max-width: 100%;
}

/* Sett en minimumsbredde på størrelse-dropdown for bedre balanse */
#size-filter {
    min-width: 110px;  /* Juster etter behov */
    width: auto;
}






/* Stack filters vertically and reduce gap on mobile */
@media (max-width: 600px) {
    .nyekunder-filters {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: stretch;
    }
    .nyekunder-filters > div {
        width: 100%;
    }
    #industry-filter,
    #size-filter {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .nyekunder-filters label {
        display: block;
        margin-bottom: 0.25em;
    }
}










.toggle-details {
    transition: transform 0.2s;
    margin-left: 0.5rem;
    color: #ff0000 !important;
}
.toggle-details.open {
    color: #005177 !important;
}
.company-details {
    background: #f7fafd;
    border-left: 3px solid #e1e8ed;
    padding: 0.5rem 1rem;
    border-radius: 3px;
}



/* Loading state for submit button */
#nyekunder-request-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success/error messaging */
.nyekunder-message {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}
.nyekunder-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.nyekunder-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}





/* Historikk-styling */
.email-history-list {
    max-height: 500px;
    overflow-y: auto;
}

.history-item {
    transition: box-shadow 0.2s;
}

.history-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#history-container h3 {
    text-align: center;
    color: #0073aa;
    margin-bottom: 1.5rem;
}

#back-to-search {
    display: block;
    margin: 1rem auto 0;
}



/* Tab button active state */
.button-info.active {
    background-color: #ffa3a3 !important;
    color: white !important;
    
}

.button-info.active:hover {
    background-color: #cc3366 !important;
    border-color: #cc3366 !important;
}

/* Ensure tab buttons have consistent styling */
.button-info {
    transition: all 0.2s ease;
}




/* =========================== */
/* Email Preview Popup Styles */
#email-preview-popup .nyekunder-popup {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.email-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

#email-preview-content {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1.5rem;
    background: #fff;
    margin: 1rem 0;
}

.email-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.email-header p {
    margin: 0.5rem 0;
    color: #666;
}

.email-body {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.email-signature {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.email-signature p {
    margin: 0.3rem 0;
}

.popup-actions {
    text-align: center;
    margin-top: 1rem;
}

#preview-email-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

#preview-email-btn:hover {
    background-color: #5a6268;
}








/* Recently contacted company styling */
.company-restricted {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

.recently-contacted-message {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Styling for restricted companies */
li[data-recently-contacted="true"] {
    border-left: 3px solid #d63384;
    background: #fdf2f2;
}

li[data-recently-contacted="true"] .company-main {
    color: #6c757d;
}

/* Tooltip styling */
.company-restricted[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 1rem;
    white-space: nowrap;
    z-index: 1000;
}




/* Subscription required popup styling */
#subscription-required-popup .nyekunder-popup {
    text-align: center;
}

#subscription-required-popup ul {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
}

#subscription-required-popup .button-primary {
    background-color: #28a745;
    border-color: #28a745;
}

#subscription-required-popup .button-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}




/* Responsive button container with smaller spacing */
.nyekunder-button-container {
    display: flex;
    align-items: center;
    gap: 1rem; /* Reduced from 1.5rem */
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Button text and icon setup - always show text, hide icons */
.button-text {
    display: inline;
}

.button-icon {
    display: none;
}

/* Tablet and small desktop screens */
@media (max-width: 768px) {
    .nyekunder-button-container {
        gap: 0.7rem; /* Reduced from 1rem */
    }
    
    .nyekunder-button-container .button {
        font-size: 0.9rem;
        padding: 0.6rem 0.9rem;
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* Mobile devices - stack vertically and keep text */
@media (max-width: 480px) {
    .nyekunder-button-container {
        flex-direction: column; /* Stack vertically */
        align-items: stretch; /* Full width buttons */
        gap: 0.5rem; /* Reduced from 0.8rem */
    }
    
    .nyekunder-button-container .button {
        width: 100%; /* Full width */
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Keep text visible on mobile */
    .button-text {
        display: inline;
    }
    
    .button-icon {
        display: none;
    }
}

/* Extra small screens - maintain vertical layout */
@media (max-width: 360px) {
    .nyekunder-button-container {
        gap: 0.3rem; /* Reduced from 0.6rem */
    }
    
    .nyekunder-button-container .button {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Handle shorter text on very small screens */
@media (max-width: 320px) {
    .desktop-text { 
        display: none; 
    }
    .mobile-text { 
        display:










