.wsm-consent[hidden] {
    display: none !important;
}

.wsm-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483000;
    box-sizing: border-box;
    padding: 16px;
    border-top: 1px solid #d8dee6;
    background: #ffffff;
    box-shadow: 0 -6px 24px rgba(16, 24, 40, 0.18);
    color: #1f2937;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    text-align: start;
}

.wsm-consent *,
.wsm-consent *::before,
.wsm-consent *::after {
    box-sizing: border-box;
}

.wsm-consent__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 24px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.wsm-consent__text {
    flex: 1 1 360px;
    min-width: 0;
}

.wsm-consent__title {
    margin: 0 0 4px;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.wsm-consent__copy {
    margin: 0;
    color: #374151;
    font-size: 14px;
}

.wsm-consent__copy a {
    color: #0b63c5;
    text-decoration: underline;
}

.wsm-consent__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.wsm-consent__btn {
    display: inline-block;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #0b63c5;
    border-radius: 6px;
    background: #0b63c5;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.wsm-consent__btn:hover,
.wsm-consent__btn:focus {
    background: #084d99;
    border-color: #084d99;
    color: #ffffff;
}

.wsm-consent__btn--secondary {
    background: #ffffff;
    border-color: #6b7280;
    color: #1f2937;
}

.wsm-consent__btn--secondary:hover,
.wsm-consent__btn--secondary:focus {
    background: #f3f4f6;
    border-color: #4b5563;
    color: #111827;
}

.wsm-consent__btn:focus-visible,
.wsm-consent__toggle input:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

.wsm-consent__prefs {
    display: none;
    flex: 1 0 100%;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.wsm-consent__prefs[data-open="true"] {
    display: block;
}

.wsm-consent__toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    cursor: pointer;
    font-size: 14px;
}

.wsm-consent__toggle:last-of-type {
    margin-bottom: 0;
}

.wsm-consent__toggle input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #0b63c5;
}

.wsm-consent__toggle input:disabled {
    cursor: not-allowed;
}

.wsm-consent__toggle-text {
    display: block;
}

.wsm-consent__toggle strong {
    display: block;
    color: #111827;
    font-weight: 600;
}

.wsm-consent__toggle span span {
    color: #4b5563;
    font-size: 13px;
}

.wsm-consent__prefs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

[dir="rtl"] .wsm-consent {
    text-align: right;
}

@media (max-width: 600px) {
    .wsm-consent {
        padding: 14px;
    }

    .wsm-consent__inner {
        display: block;
    }

    .wsm-consent__text {
        margin-bottom: 12px;
    }

    .wsm-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .wsm-consent__actions .wsm-consent__btn:first-child {
        grid-column: 1 / -1;
    }

    .wsm-consent__btn {
        width: 100%;
    }

    .wsm-consent__prefs {
        margin-top: 12px;
    }
}
