#segment-consent-manager:empty {
    display: none;
}

#segment-consent-manager {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 1rem;
    border: 2px solid #805ac3;
    border-radius: 0.5rem;
    color: #000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 99999;
}

@media (min-width: 1024px) {
    #segment-consent-manager {
        right: auto;
        width: 33.333333%;
        overflow: hidden;
    }
}

#segment-consent-manager div {
    background-color: #fff;
}

#segment-consent-manager p {
    color: #000;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

#segment-consent-manager p a {
    text-decoration: none;
    color: #4d5bd9;
}

#segment-consent-manager button {
    font-weight: 700;
    text-decoration: none;
}

#segment-consent-manager .consent-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    padding-bottom: 1rem;
}

.consent-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.consent-dialog {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.consent-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.consent-dialog-header h2 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.consent-dialog-close {
    font-size: 1.5rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: 1rem;
}

.consent-dialog-close:hover {
    color: #4b5563;
}

.consent-dialog-desc {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #4b5563;
    margin-bottom: 1rem;
    text-align: left !important;
}

.consent-dialog-table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.consent-dialog-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1rem;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 0.75rem 0.5rem;
}

.consent-dialog-table td {
    border-bottom: 1px solid #f3f4f6;
    padding: 0.75rem;
    vertical-align: top;
}

.consent-table-allow {
    white-space: nowrap;
    min-width: 60px;
}

.consent-table-allow label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.consent-table-allow input[type="radio"] {
    accent-color: #805ac3;
}

.consent-table-na {
    font-size: 0.75rem;
    color: #9ca3af;
}

.consent-table-category {
    font-weight: 600;
    white-space: nowrap;
    min-width: 100px;
}

.consent-table-purpose {
    color: #4b5563;
}

.consent-table-tools {
    color: #6b7280;
    min-width: 120px;
}

.consent-dialog-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.consent-btn {
    font-weight: 700;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    text-align: center;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 120ms linear;
}

.consent-actions .consent-btn {
    flex: 1 1 0%;
    padding: 0.75rem;
}

.consent-btn-accept {
    background: #805ac3;
    color: #fff;
    border: 2px solid #805ac3;
}

.consent-btn-accept:hover,
.consent-btn-accept:focus-visible {
    background: #66489c;
    border-color: #66489c;
}

.consent-btn-secondary {
    background: #fff;
    color: #805ac3;
    border: 2px solid #805ac3;
}

.consent-btn-secondary:hover,
.consent-btn-secondary:focus-visible {
    background: #805ac3;
    color: #fff;
}
