.en-cookie-consent,
.en-cookie-consent * {
    box-sizing: border-box;
    letter-spacing: 0;
}
.en-cookie-consent [hidden] { display: none !important; }

.en-cookie-consent__banner {
    position: fixed;
    z-index: 1300;
    left: 30px;
    right: 30px;
    bottom: 18px;
    width: calc(100% - 60px);
    max-width: 1380px;
    min-height: 124px;
    margin: 0 auto;
    padding: 16px 24px;
    color: #363b45;
    background: #fff;
    border: 1px solid #e6e7ed;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
    font-family: "HarmonyOS Sans SC", "Microsoft YaHei", Arial, sans-serif;
    animation: en-cookie-consent-enter .24s ease-out both;
}
.en-cookie-consent__banner[data-cookie-view="preferences"] { min-height: 228px; }
.en-cookie-consent__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title actions" "description description";
    align-items: start;
    column-gap: 24px;
    row-gap: 6px;
}
.en-cookie-consent__title {
    grid-area: title;
    align-self: center;
    margin: 0;
    color: #5a4edb;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}
.en-cookie-consent__description {
    grid-area: description;
    margin: 0;
    color: #363b45;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    white-space: normal;
    overflow-wrap: break-word;
}
.en-cookie-consent__actions,
.en-cookie-consent__preference-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.en-cookie-consent__actions { grid-area: actions; }
.en-cookie-consent__button,
.en-footer__cookie-settings {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    letter-spacing: 0;
    cursor: pointer;
}
.en-cookie-consent__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 32px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.en-cookie-consent__button--auto { min-width: 0; }
.en-cookie-consent__button--primary { color: #fff; background: #7366ff; border-color: #7366ff; }
.en-cookie-consent__button--primary:hover { background: #6558e8; border-color: #6558e8; }
.en-cookie-consent__button--secondary { color: #5c626e; background: #fff; border-color: #d5d9e0; }
.en-cookie-consent__button--secondary:hover { color: #363b45; background: #f7f7fa; border-color: #b9bdc5; }
.en-cookie-consent__button:focus-visible,
.en-cookie-consent__switch input:focus-visible + .en-cookie-consent__switch-control,
.en-footer__cookie-settings:focus-visible { outline: 2px solid #5a4edb; outline-offset: 3px; }

#en-cookie-preferences-title:focus { outline: none; }

.en-cookie-consent__preferences {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
}
.en-cookie-consent__preference-content { width: 100%; }
.en-cookie-consent__preference-row {
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid #e6e7ed;
}
.en-cookie-consent__preference-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}
.en-cookie-consent__preference-heading h3,
.en-cookie-consent__preference-heading > span,
.en-cookie-consent__preference-row p,
.en-cookie-consent__switch-state {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
}
.en-cookie-consent__preference-heading h3 { color: #363b45; font-weight: 500; }
.en-cookie-consent__preference-heading > span,
.en-cookie-consent__preference-row p,
.en-cookie-consent__switch-state { color: #5c626e; font-weight: 400; }
.en-cookie-consent__preference-row p { overflow-wrap: break-word; }
.en-cookie-consent__switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 22px;
    cursor: pointer;
}
.en-cookie-consent__switch-label,
.en-cookie-consent__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.en-cookie-consent__switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.en-cookie-consent__switch-control {
    position: relative;
    display: block;
    width: 40px;
    height: 20px;
    background: #d5d9e0;
    border-radius: 9999px;
    transition: background-color .18s ease;
}
.en-cookie-consent__switch-control::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(17, 24, 39, .2);
    transition: transform .18s ease;
}
.en-cookie-consent__switch input:checked + .en-cookie-consent__switch-control { background: #7366ff; }
.en-cookie-consent__switch input:checked + .en-cookie-consent__switch-control::after { transform: translateX(20px); }
.en-cookie-consent__preference-actions { width: 100%; }
.en-footer__cookie-settings {
    min-height: 28px;
    margin-left: 16px;
    padding: 0;
    color: #7366ff;
    background: transparent;
    border: 0;
    font-size: 12px;
    line-height: 18px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.en-footer__cookie-settings:hover { color: #6558e8; }

@keyframes en-cookie-consent-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) {
    .en-cookie-consent__banner {
        left: 16px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: calc(100% - 32px);
        min-height: 0;
        padding: 16px 24px;
    }
    .en-cookie-consent__banner[data-cookie-view="preferences"] { min-height: 0; }
    .en-cookie-consent__intro {
        grid-template-columns: 1fr;
        grid-template-areas: "title" "actions" "description";
        gap: 6px;
    }
    .en-cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .en-cookie-consent__button { width: 100%; min-width: 0; }
    .en-cookie-consent__preference-heading { gap: 12px; }
    .en-cookie-consent__preference-row p { padding-right: 4px; }
    .en-cookie-consent__preference-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .en-footer__cookie-settings { display: block; margin: 8px 0 0; }
}
@media (max-width: 319px) {
    .en-cookie-consent__banner { left: 8px; right: 8px; width: calc(100% - 16px); padding-right: 16px; padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .en-cookie-consent__banner,
    .en-cookie-consent__button,
    .en-cookie-consent__switch-control,
    .en-cookie-consent__switch-control::after { animation: none; transition: none; }
}
