@keyframes jc-common-header-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

[data-jc-common-header],
[data-jc-common-drawer] {
  position: relative;
  font-family: inherit;

  &[data-jc-common-header-type="campaign"] {
    --jc-common-header-bg: var(--jc-common-primary-color);
    --jc-common-header-accent: var(--jc-common-primary-yellow);
    --jc-common-header-text: var(--jc-common-white);
    --jc-common-header-text-hover: var(--jc-common-white-hover);
    --jc-common-header-mobile-text: var(--jc-common-primary-color);
    --jc-common-header-mobile-text-hover: var(--jc-common-primary-color-hover);
    --jc-common-header-mobile-top-bg: var(--jc-common-primary-color);
    --jc-common-header-mobile-top-text: var(--jc-common-white);
  }

  &[data-jc-common-theme='dark'] {
    --jc-common-header-border: var(--jc-common-white-20);
    --jc-common-header-mobile-section-bg: var(--jc-common-white-20);
    --jc-common-header-mobile-text: var(--jc-common-white);
    --jc-common-header-mobile-text-hover: var(--jc-common-white-hover);
    --jc-common-header-mobile-top-bg: var(--jc-common-header-bg);
    --jc-common-header-mobile-top-text: var(--jc-common-white);
  }

  &[data-jc-common-theme='light'] {
    --jc-common-header-text: var(--jc-common-primary-color);
    --jc-common-header-text-hover: var(--jc-common-primary-color-hover);
    --jc-common-header-mobile-top-bg: var(--jc-common-header-bg);
    --jc-common-header-mobile-top-text: var(--jc-common-primary-color);
  }

  .jc-common-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: var(--jc-common-type-button-3-size);
    line-height: var(--jc-common-type-button-3-line-height);
    font-weight: var(--jc-common-type-button-3-weight);
    white-space: nowrap;
    outline-width: 2px;
    outline-style: solid;
  }

  .jc-common-cta:hover {
    outline-width: 2px;
    outline-style: solid;
  }

  .jc-common-header-icon-btn {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 100%;
  }

  .jc-common-header-icon-btn svg {
    width: 24px;
    height: 24px;
  }

  .jc-common-header-notification-badge {
    position: absolute;
    background: var(--jc-common-primary-color);
    color: var(--jc-common-white);
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

}

[data-jc-drawer-backdrop-for] {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 1219;

  &.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

[data-jc-common-header] {
  .jc-common-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1920px;
    z-index: 1200;
    transform: translateY(0);
    transition: transform 0.3s ease;
  }

  .jc-common-header-fixed.is-hidden {
    transform: translateY(-100%);
  }

  .jc-common-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding-left: 20px;
    padding-right: 20px;
  }

  &[data-jc-common-header-type="core-business"] .jc-common-header-top {
    background: var(--jc-common-header-mobile-section-bg);

  }

  &[data-jc-common-header-type="campaign"] .jc-common-header-top {
    display: none;
    background: var(--jc-common-white);
    border-bottom: 1px solid var(--jc-common-border-main);
  }

  .jc-common-header-top .jc-common-header-icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .jc-common-header-top .jc-common-header-icon-btn:hover svg {
    color: var(--jc-common-primary-color-hover);
  }

  .jc-common-header-top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 100%;
  }

  .jc-common-header-top-text {
    color: var(--jc-common-gray);
    font-size: var(--jc-common-type-body-3-size);
    line-height: var(--jc-common-type-body-3-line-height);
  }

  .jc-common-header-top-explore {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .jc-common-header-top-explore .jc-common-header-dropdown-panel {
    min-width: 332px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    left: 0;
    right: unset;
  }

  .jc-common-header-top-explore .jc-common-header-dropdown-link {
    min-height: 40px;
  }

  .jc-common-header-top-right {
    display: none;
    align-items: stretch;
    gap: 20px;
    height: 100%;
    margin-left: 20px;
  }

  .jc-common-header-top-main {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
  }

  .jc-common-header-marquee-viewport {
    height: 100%;
    overflow: hidden;
    width: 100%;
  }

  .jc-common-header-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    height: 100%;
  }

  .jc-common-header-top-main.is-animating .jc-common-header-marquee-track {
    animation-name: jc-common-header-marquee-scroll;
    animation-duration: var(--jc-marquee-duration, 30s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
  }

  .jc-common-header-marquee-viewport.is-paused .jc-common-header-marquee-track {
    animation-play-state: paused;
  }

  .jc-common-header-announcement-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    color: var(--jc-common-notice);
    margin-left: 20px;
  }

  .jc-common-header-announcement-item:first-child {
    margin-left: 0;
  }

  .jc-common-header-top-main.is-animating .jc-common-header-announcement-item {
    margin-left: 20px;
  }

  .jc-common-header-announcement-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: inherit;
  }

  .jc-common-header-announcement-icon svg {
    width: 20px;
    height: 20px;
  }

  .jc-common-header-announcement-title,
  .jc-common-header-announcement-description {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .jc-common-header-announcement-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
    color: inherit;
    text-decoration: none;
  }

  .jc-common-header-announcement-arrow {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .jc-common-header-announcement-arrow svg {
    width: 28px;
    height: 28px;
  }

  .jc-common-header-top-main.is-touch-device .jc-common-header-announcement-item {
    user-select: none;
  }

  .jc-common-header-top .jc-common-header-lang [data-jc-dropdown-trigger] {
    padding: 0;
  }

  .jc-common-header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 8px 0 20px;
    background: var(--jc-common-header-bg);
    color: var(--jc-common-header-text);
  }

  .jc-common-header-nav-left {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .jc-common-header-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 0;
    height: 36px;
    --jc-common-header-brand-sep-bg: var(--jc-common-header-border);
    --jc-common-header-brand-sep-margin-x: 8px;
  }

  .jc-common-header-brand:not(:has(.jc-common-header-secondary-logo)) {
    --jc-common-header-brand-sep-margin-x: 16px;
  }

  .jc-common-header-logo-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
  }

  .jc-common-header-logo-link img {
    display: block;
    width: auto;
    max-height: 100%;
    max-width: 168px;
  }

  .jc-common-header-logo-link.is-desktop {
    display: none;
  }

  .jc-common-header-logo-link.is-mobile {
    display: inline-flex;
  }

  .jc-common-header-brand-sep {
    width: 1px;
    height: 100%;
    border-radius: 999px;
    background-color: var(--jc-common-header-brand-sep-bg);
    margin: 0 var(--jc-common-header-brand-sep-margin-x);
    flex-shrink: 0;
  }

  &[data-jc-common-header-type="campaign"][data-jc-common-theme='default'] .jc-common-header-brand {
    --jc-common-header-brand-sep-bg: var(--jc-common-white-20);
  }

  &[data-jc-common-header-type="core-business"] .jc-common-header-brand:not(:has(.jc-common-header-secondary-logo)) .jc-common-header-brand-sep {
    display: none;
  }

  .jc-common-header-secondary-logo-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
  }

  .jc-common-header-secondary-logo-link.is-desktop {
    display: none;
  }

  .jc-common-header-secondary-logo-link.is-mobile {
    display: inline-flex;
  }

  .jc-common-header-secondary-logo {
    display: block;
    height: 36px;
    width: auto;
  }

  a.jc-common-header-site-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: var(--jc-common-header-text);
    text-decoration: none;
    overflow-wrap: break-word;
  }

  .jc-common-header-brand:has(.jc-common-header-secondary-logo)>.jc-common-header-site-link,
  .jc-common-header-brand:has(.jc-common-header-secondary-logo)+.jc-common-header-brand-secondary {
    margin-left: 32px;
  }

  .jc-common-header-site-link-logo {
    display: block;
    width: auto;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  a.jc-common-header-site-link:hover {
    color: var(--jc-common-header-text-hover);
  }

  .jc-common-header-brand-secondary {
    display: none;
    height: 100%
  }

  .jc-common-header-brand-secondary-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    color: var(--jc-common-header-text);
    white-space: nowrap;
  }

  a.jc-common-header-brand-secondary-label-link {
    color: inherit;
    text-decoration: none;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
    font-size: var(--jc-common-type-button-3-size);
    line-height: var(--jc-common-type-button-3-line-height);
    white-space: nowrap;
  }

  a.jc-common-header-brand-secondary-label-link:hover {
    color: var(--jc-common-header-text-hover);
    text-decoration: none;
  }

  .jc-common-header-brand-secondary.is-open a.jc-common-header-brand-secondary-label-link {     border-bottom-color: var(--jc-common-header-accent);
  }

  .jc-common-header-brand-secondary .jc-common-header-caret {
    color: var(--jc-common-header-text);
  }

  .jc-common-header-brand-secondary .jc-common-header-dropdown-panel {
    left: 0;
    right: auto;
    min-width: 328px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 0;
  }

  .jc-common-header-desktop-wrap {
    display: none;
    align-items: center;
    min-width: 0;
    flex: 1;
    height: 100%;
    gap: 20px;
  }

  .jc-common-header-desktop-scroll-area {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
  }

  .jc-common-header-desktop-menu {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .jc-common-header-desktop-menu-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    width: max-content;
    margin-left: auto;
  }

  .jc-common-header-desktop-menu::-webkit-scrollbar {
    display: none;
  }

  .jc-common-header-scroll-btn {
    position: absolute;
    top: 50%;
    z-index: 1201;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: var(--jc-common-header-text);
    background: linear-gradient(90deg, var(--jc-common-header-bg) 50%, transparent);
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  .jc-common-header-scroll-btn.is-visible {
    display: inline-flex;
  }

  .jc-common-header-scroll-btn.is-disabled {
    opacity: 0;
    pointer-events: none;
  }

  .jc-common-header-scroll-btn.is-left {
    left: 0;
  }

  .jc-common-header-scroll-btn.is-left svg {
    transform: rotate(90deg);
  }

  .jc-common-header-scroll-btn.is-right {
    right: 0;
    background: linear-gradient(270deg, var(--jc-common-header-bg) 50%, transparent);
  }

  .jc-common-header-scroll-btn.is-right svg {
    transform: rotate(-90deg);
  }

  .jc-common-header-menu-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--jc-common-header-text);
    white-space: nowrap;
  }

  .jc-common-header-menu-link-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .jc-common-header-menu-label {
    border-bottom: 2px solid transparent;
    padding: 6px 0 4px;
    color: inherit;
    display: inline-block;
    font-size: var(--jc-common-type-button-3-size);
    line-height: var(--jc-common-type-button-3-line-height);
  }

  .jc-common-header-menu-link:hover .jc-common-header-menu-label,
  .jc-common-header-menu-link.is-active .jc-common-header-menu-label {
    border-bottom-color: var(--jc-common-header-accent);
  }

  .jc-common-header-menu-link .jc-common-header-caret {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
  }

  .jc-common-header-menu-link.is-active .jc-common-header-caret {
    transform: rotate(180deg);
  }

  &[data-jc-common-header-type="core-business"] .jc-common-header-cta {
    color: var(--jc-common-primary-color);
    background: transparent;
    outline-color: var(--jc-common-primary-color);
  }

  &[data-jc-common-header-type="core-business"] .jc-common-header-cta:hover {
    color: var(--jc-common-primary-color-hover);
    background: transparent;
    outline-color: var(--jc-common-primary-color-hover);
  }

  &[data-jc-common-header-type="campaign"] .jc-common-header-cta {
    color: var(--jc-common-primary-color);
    background: var(--jc-common-primary-yellow);
    outline-color: var(--jc-common-primary-yellow);
  }

  &[data-jc-common-header-type="campaign"] .jc-common-header-cta:hover {
    color: var(--jc-common-primary-color-hover);
    background: var(--jc-common-primary-yellow-hover);
    outline-color: var(--jc-common-primary-yellow-hover);
  }

  &[data-jc-common-theme='light'] .jc-common-header-cta,
  &[data-jc-common-theme='dark'] .jc-common-header-cta {
    color: var(--jc-common-white);
    background: var(--jc-common-header-accent);
    outline-color: var(--jc-common-header-accent);
  }

  &[data-jc-common-theme='dark'] .jc-common-header-cta:hover,
  &[data-jc-common-theme='dark'] .jc-common-header-cta:hover {
    background: var(--jc-common-header-accent);
    outline-color: var(--jc-common-header-accent);
  }

  .jc-common-header-cta.is-desktop {
    display: none;
    flex-shrink: 0;
  }

  .jc-common-header-mobile-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .jc-common-header-mobile-open {
    color: var(--jc-common-header-text);
  }

  .jc-common-header-notification-trigger {
    position: relative;
  }

  .jc-common-header-notification-badge {
    top: 11px;
    right: 0;
    min-width: 10px;
    height: 10px;
    border-radius: 3px;
    font-size: 7px;
    line-height: 10px;
  }

  .jc-common-header-login {
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .jc-common-header-login-name {
    color: var(--jc-common-default-foreground);
    display: inline-flex;
    gap: 4px;
  }

  .jc-common-header-login-name span {
    max-width: 77px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jc-common-header-login-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .jc-common-header-login-logout {
    color: var(--jc-common-primary-color);
    cursor: pointer;
    padding: 0;
  }

  .jc-common-header-login-preference {
    color: var(--jc-common-default-foreground);
  }

  .jc-common-header-login-sep {
    width: 1px;
    height: 12px;
    border-radius: 999px;
    background: var(--jc-common-border-color);
  }

  .jc-common-header-login-free-text {
    color: var(--jc-common-default-foreground);
  }

  .jc-common-header-member-link {
    color: var(--jc-common-primary-color);
  }

  .jc-common-header-dropdown {
    position: relative;
  }

  .jc-common-header-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--jc-common-white);
    border-radius: 4px;
    box-shadow: var(--jc-common-header-panel-shadow);
    padding: 8px 0;
    z-index: 1210;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
  }

  .jc-common-header-dropdown.is-open .jc-common-header-dropdown-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
  }

  a.jc-common-header-dropdown-link {
    display: flex;
    align-items: center;
    min-height: 40px;
    color: var(--jc-common-primary-color);
    text-decoration: none;
    white-space: nowrap;
    border: 0;
    background: transparent;
    width: fit-content;
    text-align: left;
  }

  a.jc-common-header-dropdown-link:hover {
    color: var(--jc-common-primary-color-hover);
  }

  .jc-common-header-caret {
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
  }

  .jc-common-header-dropdown.is-open .jc-common-header-caret {
    transform: rotate(180deg);
  }

  .jc-common-header-explore-trigger {
    font-size: var(--jc-common-type-button-3-size);
    line-height: var(--jc-common-type-button-3-line-height);
    font-weight: var(--jc-common-type-button-3-weight);
    color: var(--jc-common-primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .jc-common-header-explore-trigger span {
    color: var(--jc-common-primary-color);
  }

  .jc-common-header-explore-trigger:hover span {
    color: var(--jc-common-primary-color-hover);
  }

  .jc-common-header-lang .jc-common-header-dropdown-panel {
    min-width: 140px;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    padding: 20px;
    gap: 4px;
  }

  a.jc-common-header-lang-item {
    text-align: left;
    height: 40px;
    font-weight: 400;
    color: var(--jc-common-default-foreground);
  }

  a.jc-common-header-lang-item:hover {
    color: var(--jc-common-default-foreground);
  }

  a.jc-common-header-lang-item[data-jc-lang-value="en-us"] {
    font-family: var(--rh-global-eng-font-family,
        var(--jc-common-font-family-text));
  }

  a.jc-common-header-lang-item[data-jc-lang-value="zh-hk"] {
    font-family: var(--rh-global-chi-font-family,
        var(--jc-common-font-family-text));
  }

  a.jc-common-header-lang-item[data-jc-lang-value="zh-cn"] {
    font-family: var(--rh-global-sc-font-family,
        var(--jc-common-font-family-text));
  }


  a.jc-common-header-lang-item.is-active {
    color: var(--jc-common-active-blue);
    font-weight: 700;
  }

  .jc-common-header-ewin .jc-common-header-dropdown-panel {
    border-radius: 0;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .jc-common-header-ewin .jc-common-header-dropdown-link {
    min-height: 40px;
  }

  .jc-common-header-ewin-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    text-decoration: none;
    color: var(--jc-common-primary-color);
    background: transparent;
    height: 100%;
  }

  &[data-jc-common-header-type="core-business"] .jc-common-header-ewin-trigger {
    background: var(--jc-common-primary-yellow);
  }

  &[data-jc-common-header-type="campaign"] .jc-common-header-ewin-trigger {
    background: var(--jc-common-white);
  }

  .jc-common-header-ewin-trigger.is-collapse {
    padding-right: 10px;
  }

  .jc-common-header-ewin-trigger img {
    width: 74px;
    height: 28px;
    object-fit: contain;
  }

  .jc-common-header-mega {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1210;
    pointer-events: none;
  }

  &.is-mega-open .jc-common-header-mega {
    display: block;
  }

  .jc-common-header-mega-panel {
    position: absolute;
    top: 0;
    left: 12px;
    width: max-content;
    max-width: calc(100% - 24px);
    max-height: calc(100vh - 125px);
    overflow: auto;
    background: var(--jc-common-white);
    box-shadow: var(--jc-common-header-panel-shadow);
    pointer-events: auto;
    border-radius: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
  }

  .jc-common-header-mega-panel.is-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .jc-common-header-mega-grid {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 24px;
  }

  .jc-common-header-share-feedback {
    top: 0;
    left: 0;
  }

  .jc-common-header-top .jc-common-header-icon-btn,
  .jc-common-header-top .jc-common-header-caret,
  .jc-common-header-top .jc-common-header-lang .jc-common-header-icon-btn {
    color: var(--jc-common-primary-color);
  }

  .jc-common-header-top .jc-common-header-icon-btn:hover {
    color: var(--jc-common-primary-color-hover);
  }

  .jc-common-header-mega-col.is-slogan {
    width: 280px;
    padding-right: 24px;
    border-right: 1px solid var(--jc-common-border-color);
  }

  .jc-common-header-mega-col.is-slogan h4 {
    font-size: 30px;
    line-height: 1.2;
    color: var(--jc-common-primary-color);
    margin-bottom: 20px;
  }

  .jc-common-header-mega-col.is-slogan p,
  a.jc-common-header-mega-slogan-desc {
    margin: 0;
    color: var(--jc-common-default-foreground);
    margin-bottom: 40px;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
  }

  a.jc-common-header-mega-slogan-desc:hover {
    color: var(--jc-common-primary-color);
  }

  .jc-common-header-mega-btn {
    outline-color: var(--jc-common-primary-color);
    color: var(--jc-common-primary-color);
    width: fit-content;
  }

  .jc-common-header-mega-col.is-image {
    width: 240px;
  }

  .jc-common-header-mega-image-link {
    display: block;
    text-decoration: none;
  }

  a.jc-common-header-mega-image-link:hover .jc-common-header-mega-image-label {
    color: var(--jc-common-primary-color-hover);
  }

  .jc-common-header-mega-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    background: var(--jc-common-white-hover);
    margin-bottom: 12px;
  }

  .jc-common-header-mega-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .jc-common-header-mega-image-label {
    display: block;
    color: var(--jc-common-primary-color);
  }

  .jc-common-header-mega-col.is-navs {
    width: 240px;
  }

  .jc-common-header-mega-group+.jc-common-header-mega-group {
    margin-top: 36px;
  }

  a.jc-common-header-mega-group-title {
    color: var(--jc-common-primary-color);
    text-decoration: none;
    display: block;
  }

  a.jc-common-header-mega-group-title:hover {
    color: var(--jc-common-primary-color-hover);
  }

  .jc-common-header-mega-sub-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  a.jc-common-header-mega-sub-link {
    color: var(--jc-common-default-foreground);
    text-decoration: none;
  }

  a.jc-common-header-mega-sub-link:hover {
    color: var(--jc-common-primary-color);
  }

  .jc-common-header-mobile-controls .jc-common-header-icon-btn {
    width: 44px;
    height: 44px;
  }

  @media (min-width: 481px) {
    .jc-common-header-mobile-ewin-link {
      padding: 0 16px;
    }
  }

  @media (min-width: 680px) {
    .jc-common-header-nav {
      gap: 40px;
    }

    .jc-common-header-logo-link img {
      max-width: 200px;
    }

    .jc-common-header-mobile-controls {
      gap: 12px;
    }

    .jc-common-header-site-link {
      font-size: var(--jc-common-type-button-2-size);
      line-height: var(--jc-common-type-button-2-line-height);
    }

    .jc-common-header-mobile-image-grid {
      grid-template-columns: repeat(3, minmax(0, 225px));
    }
  }

  @media (max-width: 1199px) {

    .jc-common-header-announcement-title,
    .jc-common-header-announcement-description,
    .jc-common-header-announcement-link-label {
      font-size: 14px;
      line-height: 20px;
    }
  }

  @media (min-width: 1200px) {
    .jc-common-header-top {
      padding-left: 40px;
      padding-right: 0;
    }

    .jc-common-header-top-right {
      display: flex;
    }

    &[data-jc-common-header-type="campaign"] .jc-common-header-top {
      display: flex;
    }

    .jc-common-header-announcement-item,
    .jc-common-header-top-main.is-animating .jc-common-header-announcement-item {
      margin-left: 40px;
    }

    .jc-common-header-announcement-item:first-child {
      margin-left: 0;
    }

    .jc-common-header-nav {
      height: 84px;
      padding: 0 24px 0 40px;
    }

    .jc-common-header-brand {
      height: 48px;
      --jc-common-header-brand-sep-margin-x: 10px;
    }

    .jc-common-header-brand:not(:has(.jc-common-header-secondary-logo)) {
      --jc-common-header-brand-sep-margin-x: 20px;
    }

    .jc-common-header-brand:has(.jc-common-header-secondary-logo)>.jc-common-header-site-link,
    .jc-common-header-brand:has(.jc-common-header-secondary-logo)+.jc-common-header-brand-secondary {
      margin-left: 40px;
    }

    &[data-jc-common-header-type="core-business"] .jc-common-header-brand:not(:has(.jc-common-header-secondary-logo)) .jc-common-header-brand-sep {
      display: block;
    }


    &[data-jc-common-header-type="core-business"] .jc-common-header-brand-sep {
      background-color: var(--jc-common-border-color);
    }

    &[data-jc-common-header-type="campaign"] .jc-common-header-brand-sep {
      background-color: var(--jc-common-white);
    }

    &[data-jc-common-theme='light'] .jc-common-header-brand-sep,
    &[data-jc-common-theme='light'] .jc-common-header-brand-sep--logo {
      background-color: var(--jc-common-border-color);
    }

    .jc-common-header-logo-link {
      height: 48px;
    }

    .jc-common-header-logo-link.is-desktop {
      display: inline-flex;
    }

    .jc-common-header-logo-link.is-mobile {
      display: none;
    }
    
    .jc-common-header-secondary-logo-link.is-desktop {
      display: inline-flex;
    }

    .jc-common-header-secondary-logo-link.is-mobile {
      display: none;
    }

    .jc-common-header-secondary-logo {
      height: 40px;
    }

    .jc-common-header-brand-secondary {
      display: inline-flex;
      align-items: center;
    }

    .jc-common-header-desktop-wrap {
      display: inline-flex;
    }

    .jc-common-header-cta.is-desktop {
      display: inline-flex;
    }

    .jc-common-header-menu-label {
      color: var(--jc-common-header-text);
      line-height: 20px;
    }

    .jc-common-header-mobile-controls {
      display: none;
    }

  }

  @media (min-width: 1400px) {
    .jc-common-header-nav {
      padding: 0 40px;
    }

    .jc-common-header-desktop-menu {
      gap: 0;
    }

    .jc-common-header-desktop-menu-inner {
      gap: 32px;
    }

    a.jc-common-header-brand-secondary-label-link {
      font-size: var(--jc-common-type-button-2-size);
      line-height: var(--jc-common-type-button-2-line-height);
    }

    .jc-common-header-menu-label {
      font-size: var(--jc-common-type-button-2-size);
      line-height: var(--jc-common-type-button-2-line-height);
      font-weight: var(--jc-common-type-button-2-weight);
    }

    .jc-common-header-mega-col.is-slogan {
      width: 370px;
    }

    .jc-common-header-mega-col.is-image {
      width: 290px;
    }

    .jc-common-header-mega-col.is-navs {
      width: 290px;
    }
  }
}

[data-jc-common-drawer] {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100%;
  min-height: 100dvh;
  transform: translateX(100%);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  z-index: 1221;
  background: var(--jc-common-header-mobile-bg);
  color: var(--jc-common-header-mobile-text);
  display: flex;
  flex-direction: column;
  color: var(--jc-common-primary-color);
  opacity: 0;
  pointer-events: none;
  font-family: inherit;

  &.jc-common-header-notification-drawer {
    .jc-common-header-drawer-top {
      padding: 20px 60px 8px 20px;
      border-bottom: 1px solid rgba(5, 5, 5, 0.06);
      position: relative;
    }

    .jc-common-header-drawer-top-nav {
      padding: 0;
    }

    .jc-common-header-icon-btn[data-jc-mobile-close] {
      position: absolute;
      top: 12px;
      right: 12px;

      svg {
        width: 32px;
        height: 32px;
      }
    }

    .jc-common-header-drawer-body {
      background-color: #02216908;
      padding-left: 24px;
      padding-right: 24px;
    }

    .jc-common-header-notification-drawer-title {
      margin-bottom: 24px;
      color: var(--jc-common-primary-color);
    }

    .jc-common-header-notification-drawer-subtitle {
      margin: 0;
      color: var(--jc-common-default-foreground);
    }

    .jc-common-header-notification-drawer-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .jc-common-header-notification-drawer-item {
      position: relative;
      background: var(--jc-common-white);
      border-radius: 4px;
      box-shadow: var(--jc-common-header-panel-shadow);
      padding: 16px;
      color: var(--jc-common-default-foreground);
    }

    .jc-common-header-notification-drawer-item.is-pinned {
      padding-right: 52px;
    }

    .jc-common-header-notification-drawer-item-title {
      margin-bottom: 16px;
      color: var(--jc-common-primary-color);
    }

    .jc-common-header-notification-drawer-item-content {
      margin-bottom: 8px;
    }

    .jc-common-header-notification-drawer-item-time {
      margin-bottom: 0;
    }

    .jc-common-header-notification-drawer-item-pin {
      position: absolute;
      top: 8px;
      right: 8px;
    }

    .jc-common-header-notification-drawer-empty {
      min-height: 120px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--jc-common-default-foreground);
    }
  }

  &.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  &.is-nested {
    z-index: 1222;
  }

  .jc-common-header-drawer-top-nav {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    background-color: var(--jc-common-header-mobile-top-bg);
    color: var(--jc-common-header-mobile-top-text);
  }

  .jc-common-header-icon-btn {
    width: 44px;
    height: 44px;
  }

  .jc-common-header-icon-btn svg {
    width: 24px;
    height: 24px;
  }

  .jc-common-header-drawer-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .jc-common-header-drawer-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .jc-common-header-drawer-footer {
    flex-shrink: 0;
  }

  .jc-common-header-mobile-caption {
    margin: 0 0 8px;
    color: var(--jc-common-default-foreground);
    font-weight: 400;
  }

  .jc-common-header-notification-trigger {
    position: relative;
  }

  .jc-common-header-notification-badge {
    top: 10px;
    right: 9px;
    min-width: 12px;
    height: 12px;
    border-radius: 5px;
    font-size: 9px;
    line-height: 11px;
  }
  
  &[data-jc-common-header-type="campaign"][data-jc-common-theme='default'] .jc-common-header-notification-badge,
  &[data-jc-common-header-type="campaign"][data-jc-common-theme='dark'] .jc-common-header-notification-badge {
    background: var(--jc-common-white);
    color: var(--jc-common-primary-color);
  }

  .jc-common-header-mobile-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 16px;
    color: var(--jc-common-header-mobile-text);
  }

  .jc-common-header-mobile-member-greeting {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    font-weight: 400;
  }

  .jc-common-header-mobile-member-greeting span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jc-common-header-mobile-member-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .jc-common-header-mobile-member-logout,
  .jc-common-header-mobile-member-preference {
    color: var(--jc-common-header-mobile-text);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .jc-common-header-mobile-member-logout {
    padding: 0;
  }

  .jc-common-header-mobile-member-sep {
    width: 1px;
    height: 12px;
    border-radius: 999px;
    background: var(--jc-common-header-border);
  }

  &[data-jc-common-theme='dark'] .jc-common-header-mobile-caption {
    color: var(--jc-common-gray-light);
  }

  .jc-common-header-mobile-secondary-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
  }

  .jc-common-header-mobile-secondary-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .jc-common-header-mobile-secondary-accordion-panel {
    overflow: hidden;
    transition: max-height 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  a.jc-common-header-mobile-secondary-accordion-title-link {
    flex: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 8px 0;
    color: var(--jc-common-header-mobile-text);
    width: fit-content;
  }

  a.jc-common-header-mobile-secondary-accordion-title-link:hover {
    text-decoration: none;
    color: var(--jc-common-header-mobile-text-hover);
  }

  .jc-common-header-mobile-secondary-accordion-title-link~.jc-common-accordion-toggle {
    color: var(--jc-common-header-mobile-text);
  }

  .jc-common-header-mobile-secondary-accordion-title-link~.jc-common-accordion-toggle:hover {
    color: var(--jc-common-header-mobile-text-hover);
  }

  .jc-common-header-mobile-secondary-links-sep {
    width: 100%;
    height: 1px;
    background: var(--jc-common-header-border);
    flex-shrink: 0;
  }

  .jc-common-header-mobile-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
  }

  a.jc-common-header-mobile-section-title-link {
    color: var(--jc-common-header-mobile-text);
  }

  a.jc-common-header-mobile-section-title-link:hover {
    text-decoration: none;
    color: var(--jc-common-header-mobile-text-hover);
  }

  a.jc-common-header-mobile-section-title-link~.jc-common-accordion-toggle {
    color: var(--jc-common-header-mobile-text);
  }

  a.jc-common-header-mobile-section-title-link~.jc-common-accordion-toggle:hover {
    color: var(--jc-common-header-mobile-text-hover);
  }

  .jc-common-header-mobile-section-body {
    background-color: var(--jc-common-header-mobile-section-bg);
    padding: 8px 16px;
    border-radius: 4px;
  }

  .jc-common-header-mobile-sections-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .jc-common-header-mobile-slogan-desc,
  a.jc-common-header-mobile-slogan-desc {
    color: var(--jc-common-header-mobile-text);
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  a.jc-common-header-mobile-slogan-desc:hover {
    color: var(--jc-common-header-mobile-text-hover);
  }

  .jc-common-header-mobile-lv3-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
  }

  .jc-common-header-mobile-lv3-row.has-children {
    margin-right: -16px;
  }

  .jc-common-header-mobile-lv3-label,
  a.jc-common-header-mobile-lv3-label {
    color: var(--jc-common-header-mobile-text);
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  a.jc-common-header-mobile-lv3-label:hover {
    color: var(--jc-common-header-mobile-text-hover);
  }

  .jc-common-header-mobile-lv3-forward-icon {
    color: var(--jc-common-header-mobile-text);
  }

  .jc-common-header-mobile-lv3-forward-icon:hover {
    color: var(--jc-common-header-mobile-text-hover);
  }

  .jc-common-header-mobile-lv3-open {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transform: rotate(-90deg);
  }

  .jc-common-header-mobile-lv3-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .jc-common-header-mobile-lv3-links .jc-common-header-mobile-sub-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
  }

  .jc-common-header-mobile-image-grid {
    margin-top: 24px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 225px));
    gap: 16px;
  }

  .jc-common-header-mobile-image-card,
  a.jc-common-header-mobile-image-card {
    display: block;
    color: var(--jc-common-header-mobile-text);
    text-decoration: none;
  }

  a.jc-common-header-mobile-image-card:hover {
    color: var(--jc-common-header-mobile-text-hover);
  }

  .jc-common-header-mobile-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
  }

  .jc-common-header-mobile-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .jc-common-header-mobile-image-label {
    display: block;
    margin-top: 12px;
  }

  a.jc-common-header-mobile-sub-link {
    display: block;
    color: var(--jc-common-header-mobile-text);
    text-decoration: none;
    min-height: 30px;
    padding: 4px 0;
    font-size: 14px;
  }

  a.jc-common-header-mobile-sub-link:hover {
    color: var(--jc-common-header-mobile-text-hover);
  }

  .jc-common-header-mobile-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .jc-common-header-mobile-cta {
    outline-color: var(--jc-common-primary-color);
    color: var(--jc-common-primary-color);
    width: 100%;
    max-width: 400px;
  }

  .jc-common-header-mobile-cta:hover {
    outline-color: var(--jc-common-primary-color-hover);
    color: var(--jc-common-primary-color-hover);
  }

  &[data-jc-common-theme='light'] .jc-common-header-mobile-cta,
  &[data-jc-common-theme='light'] .jc-common-header-mobile-cta:hover,
  &[data-jc-common-theme='dark'] .jc-common-header-mobile-cta,
  &[data-jc-common-theme='dark'] .jc-common-header-mobile-cta:hover {
    outline-color: var(--jc-common-header-accent);
    color: var(--jc-common-header-accent);
  }

  .jc-common-header-mobile-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px 0 24px;
    color: var(--jc-common-primary-color);
  }

  .jc-common-header-mobile-lang-row {
    display: flex;
    align-items: center;
  }

  .jc-common-header-mobile-lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 44px;
    padding: 0 4px;
    border-radius: 0;
    text-align: center;
    text-decoration: none;
    color: var(--jc-common-header-mobile-text);
    font-weight: 400;
  }

  .jc-common-header-mobile-lang-link:hover {
    color: var(--jc-common-header-mobile-text-hover);
  }

  &[data-jc-common-theme='light'] .jc-common-header-mobile-lang-link {
    color: var(--jc-common-primary-color);
  }

  .jc-common-header-mobile-lang-link.is-active {
    font-weight: 700;
  }

  .jc-common-header-mobile-lang-link[data-jc-lang-value="en-us"] {
    font-family: var(--rh-global-eng-font-family,
        var(--jc-common-font-family-text));
  }

  .jc-common-header-mobile-lang-link[data-jc-lang-value="zh-hk"] {
    font-family: var(--rh-global-chi-font-family,
        var(--jc-common-font-family-text));
  }

  .jc-common-header-mobile-lang-link[data-jc-lang-value="zh-cn"] {
    font-family: var(--rh-global-sc-font-family,
        var(--jc-common-font-family-text));
  }

  .jc-common-header-mobile-lang-sep {
    width: 1px;
    height: 12px;
    border-radius: 999px;
    background: var(--jc-common-header-border);
    flex-shrink: 0;
  }

  .jc-common-header-mobile-ewin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 12px;
    height: 60px;
  }

  .jc-common-header-mobile-ewin img {
    width: 33px;
    height: 35px;
    object-fit: contain;
  }

  .jc-common-header-mobile-ewin-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  a.jc-common-header-mobile-ewin-link {
    color: var(--jc-common-header-mobile-text);
    text-decoration: none;
    min-height: 44px;
    padding: 0 6px;
    display: flex;
    align-items: center;
  }

  a.jc-common-header-mobile-ewin-link:hover {
    color: var(--jc-common-header-mobile-text-hover);
  }

  .jc-common-header-mobile-ewin-sep {
    width: 1px;
    height: 12px;
    background: var(--jc-common-header-border);
  }

  @media (min-width: 1200px) {
    &.jc-common-header-notification-drawer {
      max-width: 600px;

      .jc-common-header-drawer-top {
        padding-top: 60px;
        padding-left: 24px;
      }

      .jc-common-header-notification-drawer-title {
        margin-bottom: 32px;
      }
    }
  }
}