/* Cookie banner for public marketing pages. Not loaded by the app or workspace. */

.cw-consent {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(29, 29, 31, 0.42);
    color: #3a3a3c;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
}

.cw-consent-overlay {
    width: min(440px, 100%);
    max-height: 100%;
}

.cw-consent-panel {
    background: #ffffff;
    color: #3a3a3c;
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    padding: 22px 22px 18px;
    max-height: calc(100vh - 32px);
    overflow: auto;
}

.cw-consent-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.cw-consent-panel-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: #1d1d1f;
}

.cw-consent-close {
    font: inherit;
    font-size: 24px;
    line-height: 1;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #86868b;
    cursor: pointer;
}

.cw-consent-overview {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: #3a3a3c;
}

.cw-consent-overview a {
    color: #3e2fee;
    font-weight: 600;
    text-decoration: underline;
}

.cw-consent-cats {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.cw-consent-cat p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #3a3a3c;
}

.cw-consent-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cw-consent-cat-head strong {
    font-size: 14px;
    color: #1d1d1f;
}

.cw-consent-always {
    font-size: 12px;
    font-weight: 600;
    color: #3d7a52;
}

.cw-consent-switch {
    position: relative;
    width: 40px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d2d2d7;
    cursor: pointer;
    flex-shrink: 0;
}

.cw-consent-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.cw-consent-switch[aria-checked="true"] {
    background: #3e2fee;
}

.cw-consent-switch[aria-checked="true"]::after {
    left: 20px;
}

.cw-consent-panel-actions {
    display: grid;
    gap: 8px;
}

.cw-consent-panel-actions--notice {
    grid-template-columns: 1fr 1fr;
}

.cw-consent-panel-actions--notice [data-consent="granted"] {
    grid-column: 1 / -1;
}

.cw-consent-panel-actions--prefs {
    grid-template-columns: 1fr 1fr;
}

.cw-consent-panel-actions--prefs [data-consent="granted"] {
    grid-column: 1 / -1;
}

.cw-consent-btn {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: #3e2fee;
    background: #fff;
    border: 1px solid rgba(64, 92, 133, 0.35);
}

.cw-consent-btn-primary {
    color: #ffffff;
    background: #3e2fee;
    border-color: #3e2fee;
}
