/* Cookie Banner */
.cookie-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    padding: 14px 20px;
    color: #222;
    background: #fff;
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);

    &[hidden] {
        display: none;
    }

    &__content {
        display: flex;
        gap: 24px;
        align-items: center;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
    }

    &__message {
        flex: 1;

        p {
            margin: 0;
            font-size: 14px;
            line-height: 1.45;
        }
    }

    &__title {
        margin: 0 0 4px;
        font-size: 16px;
    }

    &__actions {
        display: flex;
        flex-shrink: 0;
        gap: 10px;
    }

    &__accept,
    &__reject,
    &__settings {
        min-height: 40px;
        padding: 8px 16px;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
        border: 2px solid #333;
        border-radius: 3px;
        transition: background 0.2s ease-in-out;

        &:focus-visible {
            outline: 3px solid #95979a;
            outline-offset: 2px;
        }
    }

    &__accept {
        color: #fff;
        background: linear-gradient(0deg,rgba(72, 0, 4, 1) 0%, rgba(132, 5, 39, 1) 100%);

        &:hover {
            background: linear-gradient(0deg, rgb(46 1 3) 0%, rgb(72 0 4) 100%);
            color: #fff;
        }
    }

    &__reject,
    &__settings {
        color: #333;
        background: #fff;

        &:hover {
            background: #dcdfe3;
            color: #333;
        }
    }
}

@media (max-width: 700px) {
    .cookie-banner {
        &__content {
            display: block;
        }

        &__actions {
            margin-top: 12px;
        }

        &__accept,
        &__reject {
            flex: 1;
        }
    }
}

/* Third-Party Script Placeholder */
.contact-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 30px;
    text-align: center;
    background: #f2f2f2;
    border: 1px solid #ccc;

    p {
        margin: 0;
    }
}

.cognito[data-cognito-form] {
    padding: 30px;
    text-align: center;
    background: #f2f2f2;
    border: 1px solid #ccc;
}

/* Cookie Settings Page */
.cookie-settings {
    #cookie-settings-form {
        margin: 50px 0 120px;
    }

    .cookie-setting {
        margin: 0 0 20px;
        padding: 20px;
        border: 1px solid #ccc;

        legend {
            padding: 0 8px;
            font-size: 18px;
            font-weight: 700;
        }

        label {
            display: block;
            font-weight: 700;
        }

        p {
            margin: 8px 0 0;
        }
    }

    &__confirmation {
        padding: 12px;
        color: #155724;
        background: #d4edda;
        border: 1px solid #c3e6cb;
    }

    &__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;

        button {
            min-height: 40px;
            padding: 8px 16px;
            font: inherit;
            font-weight: 700;
            cursor: pointer;
            border: 2px solid #333;
            border-radius: 3px;
            transition: background 0.2s ease-in-out;

            &:focus-visible {
                outline: 3px solid #95979a;
                outline-offset: 2px;
            }

            &[type="submit"] {
                color: #fff;
                background: linear-gradient(0deg,rgba(72, 0, 4, 1) 0%, rgba(132, 5, 39, 1) 100%);

                &:hover {
                    background: linear-gradient(0deg, rgb(46 1 3) 0%, rgb(72 0 4) 100%);
                    color: #fff;
                }
            }

            &[type="button"] {
                color: #333;
                background: #fff;

                &:hover {
                    background: #dcdfe3;
                    color: #333;
                }
            }
        }
    }
}