.gc-cookie-banner[hidden],
.gc-cookie-settings[hidden] {
    display: none !important;
}

.gc-cookie-banner {
    position: fixed;
    z-index: 9998;
    right: 24px;
    bottom: 24px;
    width: min(560px, calc(100vw - 48px));
    padding: 24px;
    border: 1px solid rgba(11, 73, 66, 0.2);
    border-radius: 14px;
    background: #fffdf8;
    color: #1d2a28;
    box-shadow: 0 18px 50px rgba(18, 35, 32, 0.22);
}

.gc-cookie-banner__title,
.gc-cookie-settings__title {
    margin: 0 0 8px;
    color: #0b4942;
    font-size: 22px;
    font-weight: 700;
}

.gc-cookie-banner__copy,
.gc-cookie-settings__copy {
    margin: 0;
    color: #475451;
    font-size: 14px;
    line-height: 1.6;
}

.gc-cookie-banner__copy a,
.gc-cookie-settings a {
    color: #0b4942;
    font-weight: 600;
}

.gc-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.gc-cookie-button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #0b4942;
    border-radius: 7px;
    background: transparent;
    color: #0b4942;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.gc-cookie-button:hover,
.gc-cookie-button:focus-visible {
    background: #eef4f1;
}

.gc-cookie-button--primary {
    background: #0b4942;
    color: #fff;
}

.gc-cookie-button--primary:hover,
.gc-cookie-button--primary:focus-visible {
    background: #146257;
}

.gc-cookie-button:focus-visible,
.gc-cookie-settings__close:focus-visible {
    outline: 3px solid rgba(11, 73, 66, 0.25);
    outline-offset: 2px;
}

.gc-cookie-settings {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 25, 23, 0.62);
}

.gc-cookie-settings__dialog {
    width: min(650px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow-y: auto;
    padding: 28px;
    border-radius: 14px;
    background: #fffdf8;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.gc-cookie-settings__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.gc-cookie-settings__close {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f0eee7;
    color: #24322f;
    font-size: 24px;
    cursor: pointer;
}

.gc-cookie-category-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.gc-cookie-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid #d7ddd9;
    border-radius: 9px;
    background: #fff;
}

.gc-cookie-category h3 {
    margin: 0 0 4px;
    color: #182522;
    font-size: 16px;
    font-weight: 700;
}

.gc-cookie-category p {
    margin: 0;
    color: #5c6865;
    font-size: 13px;
    line-height: 1.5;
}

.gc-cookie-category__required {
    color: #0b4942;
    font-size: 12px;
    font-weight: 700;
}

.gc-cookie-toggle {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 26px;
}

.gc-cookie-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.gc-cookie-toggle span {
    width: 100%;
    border-radius: 999px;
    background: #a8b0ad;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gc-cookie-toggle span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.gc-cookie-toggle input:checked + span {
    background: #0b4942;
}

.gc-cookie-toggle input:checked + span::after {
    transform: translateX(22px);
}

.gc-cookie-toggle input:focus-visible + span {
    outline: 3px solid rgba(11, 73, 66, 0.25);
    outline-offset: 2px;
}

.gc-consent-dialog-open {
    overflow: hidden;
}

.gc-footer-cookie-settings {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

@media (max-width: 640px) {
    .gc-cookie-banner {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        padding: 20px;
    }

    .gc-cookie-actions {
        display: grid;
    }

    .gc-cookie-button {
        width: 100%;
    }

    .gc-cookie-settings {
        padding: 12px;
    }

    .gc-cookie-settings__dialog {
        max-height: calc(100vh - 24px);
        padding: 20px;
    }
}
