.preview-notice-button {
    border: 1px solid #000;
    border-radius: 4px;
    padding: 5px 10px;
    margin: 2px 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.preview-notice-button:hover {
    background-color: #f0f0f0;
}

.logo-image {
    position: relative;
    text-align: center;
    padding: 2px;
}

.logo-image.front-logo {
    border-right: 1px dashed #000;
}

.logo-image img {
    display: block;
    height: 150px;
    margin: 0 auto 5px;
    object-fit: contain;
}

.logo-label {
    color: #666;
    display: block;
    font-size: 12px;
}

.logo-set-card {
    align-items: center;
    all: unset;
    box-sizing: border-box;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    width: 100%;
}

.logo-set-card img {
    border-radius: 5px;
    height: auto;
    max-width: 100%;
}

.logo-set-card-form {
    display: block;
    width: 100%;
}

.logo-set-card.selected {
    border-color: #2271b1;
    box-shadow: 0 0 10px rgb(34 113 177 / 20%);
}

.logo-set-card:focus {
    outline: none;
}

.logo-set-card:hover {
    border-color: #007bff;
    box-shadow: 0 6px 12px rgb(0 180 255 / 5%);
    transform: scale(1.02);
}

.logo-set-info {
    text-align: center;
}

.logo-set-info h3 {
    font-size: 1.5em;
    margin: 10px 0 0 0;
}

.logo-set-preview {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.logo-set-selection-result {
    background-color: #d4edda;
    border-radius: 4px;
    color: #155724;
    margin-top: 15px;
    padding: 10px 15px;
    text-align: center;
}

.logo-sets-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    margin: 20px 0;
}

@media (max-width: 768px) {
    /* Stack form cards into a single column with tighter gap */
    .logo-sets-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 15px 0;
    }

    /* Switch card orientation to a horizontal row */
    .logo-set-card {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 8px 16px;
        height: auto;
    }

    /* Keep preview compact on the left side */
    .logo-set-preview {
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 15px;
    }

    /* Reduce image size to make rows compact */
    .logo-image img {
        height: 55px;
        width: 55px;
        object-fit: contain;
        margin: 0;
    }

    /* Align text to the left */
    .logo-set-info {
        text-align: left;
        flex-grow: 1;
    }

    .logo-set-info h3 {
        font-size: 1.1em;
        margin: 0;
    }
}

.priority-product {
    background-color: rgb(255 215 0 / 10%);
    border: 2px solid #94d60a;
}

.priority-product::before {
    background: #94d60a;
    border-radius: 3px;
    color: #000;
    content: 'Pakke';
    padding: 5px 10px;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 10;
}

.products {
    display: flex;
    flex-wrap: wrap;
}

.select-logo-set {
    background-color: #f7f7f7;
    border-radius: 4px;
    border: 1px solid #ddd;
    color: black;
    cursor: pointer;
    padding: 8px 15px;
    transition: all 0.2s ease;
}

.select-logo-set.selected {
    background-color: #2271b1;
    border-color: #135e96;
    color: white;
}

.select-logo-set:hover {
    background-color: #f0f0f0;
}

.hero-access-message {
    /* A very light, neutral background to gently separate it from the page content. */
    background-color: #f8f9fa;
    text-align: center;
    padding: 80px 30px; /* More generous padding for a spacious, modern feel */
    margin: 40px 0; /* Vertical space from other elements */
    border-top: 5px solid #9DD52B; /* A sharp accent line. Use your brand's primary color here! */
    box-sizing: border-box;
}

.hero-access-message h2 {
    /* Strong, dark, and highly readable heading */
    color: #2d3748; /* A dark, soft black */
    font-size: 2.5em; /* Large, but slightly refined from before */
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px 0;
}

.hero-access-message p {
    /* Clean, clear, and readable instruction text */
    color: #4a5568; /* A softer grey for the body text */
    font-size: 1.25em;
    line-height: 1.7;
    max-width: 750px; /* Keeps the text block from becoming too wide on large screens */
    margin: 0 auto; /* Centers the text block within the hero section */
}

/* Base styles for the new centered notice box */
.frontpage-notice {
    max-width: 700px; /* Sets a maximum width for the box */
    margin: 40px auto; /* Adds space on top/bottom and centers the box horizontally */
    padding: 25px;
    border: 1px solid; /* The color will be defined by the specific notice type */
    border-radius: 8px; /* Softer, more rounded corners */
    text-align: center; /* Centers the text inside the box */
    box-shadow: 0 4px 10px rgb(0 0 0 0.1); /* Adds a subtle shadow for depth */
}

/* Style for the paragraph inside the notice */
.frontpage-notice p {
    margin: 0;
    font-size: 1.1em; /* Makes the text slightly larger and more readable */
    line-height: 1.5;
}

/* Blue 'info' notice */
.frontpage-notice-info {
    background-color: #d9edf7;
    color: #31708f;
    border-color: #bce8f1; /* A border color that complements the background */
}

/* Yellow 'warning' notice */
.frontpage-notice-warning {
    background-color: #fcf8e3;
    color: #8a6d3b;
    border-color: #faebcc;
}

/* Red 'danger' notice */
.frontpage-notice-danger {
    background-color: #f2dede;
    color: #a94442;
    border-color: #ebccd1;
}

/* READONLY on checkout page */
.woocommerce .readonly-field input,
.woocommerce .readonly-field select,
.woocommerce .readonly-field textarea {
    background-color: #eee !important; /* Light grey background */
    cursor: not-allowed !important; /* Indicate non-interactive */
    /* Add any other styles you want */
}

/* Style Select2 dropdowns if used for country/state */
.woocommerce
    .readonly-field
    .select2-container--default
    .select2-selection--single {
    background-color: #eee !important;
    cursor: not-allowed !important;
}

.woocommerce
    .readonly-field
    select[readonly].select2-hidden-accessible
    + .select2-container {
    pointer-events: none;
    touch-action: none;
}

/* Hide dropdown arrow for readonly select2 */
.woocommerce
    .readonly-field
    select[readonly].select2-hidden-accessible
    + .select2-container
    .select2-selection__arrow {
    display: none;
}
