.rebrand-notice {
    position: fixed;
    inset: 0;
    z-index: 995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem;
    background: linear-gradient(
        225deg,
        rgba(122, 139, 180, 0.3) 0%,
        rgba(139, 154, 187, 0.3) 17.66%,
        rgba(143, 158, 189, 0.3) 28.04%,
        rgba(80, 104, 142, 0.3) 100%
    ), rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.rebrand-notice[hidden] {
    display: none !important;
}

.rebrand-notice:not([hidden]) {
    display: flex;
    pointer-events: auto;
}

.rebrand-notice--visible {
    opacity: 1;
    visibility: visible;
}

.rebrand-notice__dialog {
    position: relative;
    width: 100%;
    max-width: 54rem;
    max-height: calc(100vh - 3.2rem);
    overflow-y: auto;
    border-radius: 1.2rem;
    background: linear-gradient(
        225deg,
        rgba(122, 139, 180, 0.12) 0%,
        rgba(139, 154, 187, 0.12) 17.66%,
        rgba(143, 158, 189, 0.12) 28.04%,
        rgba(80, 104, 142, 0.12) 100%
    ), rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(1.2rem);
    border: 2px solid rgba(181, 214, 255, 0.3);
    box-shadow: inset 0 0 3.2rem 0 rgba(233, 243, 255, 0.7), 0 1.6rem 4.8rem rgba(44, 49, 56, 0.12);
    transform: translateY(1.6rem);
    transition: transform 0.35s ease;
}

.rebrand-notice--visible .rebrand-notice__dialog {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .rebrand-notice {
        padding: 2.4rem;
    }

    .rebrand-notice__dialog {
        max-height: calc(100vh - 4.8rem);
    }
}

.rebrand-notice__close {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.rebrand-notice__close:hover svg {
    color: #5f9ce4;
}

.rebrand-notice__close svg {
    width: 100%;
    height: 100%;
    color: #b7cde7;
    transition: color 0.3s ease-in-out;
}

.rebrand-notice__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.6rem;
    padding: 2rem;
    padding-right: 4rem;
}

@media (min-width: 768px) {
    .rebrand-notice__body {
        gap: 2rem;
        padding: 2.4rem;
        padding-right: 4.8rem;
    }

    .rebrand-notice__close {
        top: 2.4rem;
        right: 2.4rem;
    }
}

.rebrand-notice__title {
    margin: 0;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #2c3138;
}

@media (min-width: 768px) {
    .rebrand-notice__title {
        font-size: 2rem;
    }
}

.rebrand-notice__text {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.rebrand-notice__text p {
    margin: 0;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.55;
    letter-spacing: -0.02em;
    color: #788492;
}

.rebrand-notice__text a {
    color: #004594;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: color 0.3s ease-in-out;
}

.rebrand-notice__text a:hover {
    color: #0754ad;
}

.rebrand-notice__accept {
    width: 100%;
    min-width: 0;
}
