.mgtc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.mgtc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    width: min(480px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    color: #1d2327;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

.mgtc-backdrop.mgtc-visible,
.mgtc-modal.mgtc-visible {
    opacity: 1;
    visibility: visible;
}

.mgtc-modal.mgtc-visible {
    transform: translate(-50%, -50%);
}

.mgtc-modal:focus {
    outline: none;
}

.mgtc-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.3;
    color: inherit;
}

.mgtc-message {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    white-space: pre-line;
}

.mgtc-details {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
}

.mgtc-details summary {
    cursor: pointer;
    color: #2271b1;
    font-weight: 600;
}

.mgtc-details summary:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.mgtc-provider-info {
    margin: 0.5rem 0;
    line-height: 1.5;
    white-space: pre-line;
    color: #50575e;
}

.mgtc-provider-policy {
    margin: 0;
}

.mgtc-provider-policy a {
    color: #2271b1;
    text-decoration: underline;
}

.mgtc-privacy {
    margin: 0 0 1rem;
    font-size: 0.875rem;
}

.mgtc-privacy a {
    color: #2271b1;
    text-decoration: underline;
}

.mgtc-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mgtc-btn {
    flex: 1 1 0;
    min-width: 8rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
}

.mgtc-btn-accept {
    background: #1d2327;
    color: #fff;
}

.mgtc-btn-decline {
    background: #e5e7eb;
    color: #1d2327;
}

.mgtc-btn:hover {
    filter: brightness(1.1);
}

.mgtc-btn:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.mgtc-badge {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #1d2327;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999997;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mgtc-badge.mgtc-visible {
    display: flex;
}

.mgtc-badge:hover {
    opacity: 1;
    transform: scale(1.05);
}

.mgtc-badge:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    opacity: 1;
}

.mgtc-badge svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}
