:root {
  --jbl-release-red: #b43a35;
  --jbl-release-red-dark: #8d2d29;
  --jbl-release-ink: #252a30;
  --jbl-release-line: #dfe3e7;
  --jbl-release-paper: #ffffff;
}

body.jbl-safe-release-active {
  margin: 0;
  overflow-x: hidden;
}

/*
 * Elementor's kit CSS is unlayered, while the reviewed migration preview CSS
 * is intentionally kept inside cascade layers.  Restore the reviewed layer
 * for interactive elements so Elementor cannot replace JBL red with its
 * default pink accent.  This remains scoped to the importer-owned release
 * pages and leaves the surrounding WordPress installation untouched.
 */
body.jbl-safe-release-active .jbl-migration-preview {
  --brand-accent: #b43a35;
  --e-global-color-accent: #b43a35;
}

body.jbl-safe-release-active .jbl-migration-preview :is(a, button, input[type="button"], input[type="submit"], input[type="reset"]),
body.jbl-safe-release-active .jbl-migration-preview :is(a, button, input[type="button"], input[type="submit"], input[type="reset"]):hover,
body.jbl-safe-release-active .jbl-migration-preview :is(a, button, input[type="button"], input[type="submit"], input[type="reset"]):focus,
body.jbl-safe-release-active .jbl-migration-preview :is(a, button, input[type="button"], input[type="submit"], input[type="reset"]):active {
  color: revert-layer;
  background-color: revert-layer;
  border-color: revert-layer;
  box-shadow: revert-layer;
  text-decoration: revert-layer;
}

.jbl-release-header,
.jbl-release-footer {
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jbl-release-header *,
.jbl-release-footer * {
  box-sizing: border-box;
}

.jbl-release-header {
  position: relative;
  z-index: 9990;
  width: 100%;
  border-top: 4px solid var(--jbl-release-red);
  border-bottom: 1px solid var(--jbl-release-line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--jbl-release-ink);
}

.jbl-release-header__inner {
  display: flex;
  min-height: 84px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px clamp(18px, 3vw, 46px);
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.jbl-release-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: #262b31;
  text-decoration: none;
}

.jbl-release-brand img {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
  object-position: center;
}

.jbl-release-brand span {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.jbl-release-nav {
  min-width: 0;
  flex: 1 1 auto;
}

.jbl-release-nav > ul,
.jbl-release-submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jbl-release-nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.25vw, 22px);
}

.jbl-release-nav li {
  position: relative;
}

.jbl-release-nav a {
  display: block;
  color: #30363d;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
}

.jbl-release-nav > ul > li > a {
  padding: 18px 0;
  white-space: nowrap;
}

.jbl-release-nav > ul > li > a:hover,
.jbl-release-nav > ul > li > a:focus-visible,
.jbl-release-submenu a:hover,
.jbl-release-submenu a:focus-visible {
  color: var(--jbl-release-red);
}

.jbl-release-submenu-toggle {
  display: none;
}

.jbl-release-nav .has-children > a::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 3px 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.jbl-release-submenu {
  position: absolute;
  top: calc(100% - 4px);
  left: -18px;
  display: grid;
  visibility: hidden;
  width: max-content;
  min-width: 245px;
  max-width: 340px;
  padding: 10px;
  border: 1px solid var(--jbl-release-line);
  background: #fff;
  box-shadow: 0 20px 45px rgba(29, 35, 42, 0.16);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.jbl-release-submenu li + li {
  border-top: 1px solid #edf0f2;
}

.jbl-release-submenu a {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
}

.jbl-release-nav li:hover > .jbl-release-submenu,
.jbl-release-nav li:focus-within > .jbl-release-submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.jbl-release-quote {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  background: var(--jbl-release-red);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.jbl-release-quote:hover,
.jbl-release-quote:focus-visible {
  background: var(--jbl-release-red-dark);
  color: #fff;
}

.jbl-release-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--jbl-release-line);
  background: #fff;
}

.jbl-release-menu-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: #30363d;
}

.jbl-release-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 50px clamp(20px, 4vw, 64px) 22px;
  background: #262b31;
  color: #dce1e5;
}

.jbl-release-footer__grid {
  display: grid;
  max-width: 1360px;
  margin: 0 auto;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 38px;
}

.jbl-release-footer__grid > div:not(.jbl-release-footer__brand) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jbl-release-footer strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

.jbl-release-footer a {
  color: #bfc7cf;
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

.jbl-release-footer a:hover,
.jbl-release-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.jbl-release-footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.jbl-release-footer__brand img {
  display: block;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  object-fit: contain;
  object-position: center;
}

.jbl-release-footer__brand strong {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.jbl-release-footer__brand p {
  margin: 0;
  color: #aeb7c0;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.jbl-release-footer__bottom {
  display: flex;
  max-width: 1360px;
  margin: 38px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #9ca7b1;
  font-size: 12px;
}

.jbl-safe-release-active dialog[open] {
  display: block;
  z-index: 10020;
}

.jbl-safe-release-active dialog .jbl-dialog-media {
  display: flex;
  max-height: calc(92dvh - 70px);
  padding: 16px;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: #f4f6f7;
}

.jbl-safe-release-active dialog .jbl-dialog-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(92dvh - 110px);
  object-fit: contain;
}

.jbl-release-form-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--jbl-release-red);
  background: #f8eeee;
  color: #30363d;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .jbl-release-header__inner {
    min-height: 76px;
  }

  .jbl-release-brand img {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .jbl-release-menu-toggle {
    display: block;
    margin-left: auto;
    order: 2;
  }

  .jbl-release-quote {
    order: 1;
  }

  .jbl-release-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100dvh - 76px);
    padding: 10px clamp(18px, 3vw, 46px) 22px;
    overflow-y: auto;
    border-top: 1px solid var(--jbl-release-line);
    background: #fff;
    box-shadow: 0 20px 35px rgba(29, 35, 42, 0.13);
  }

  .jbl-release-header.is-menu-open .jbl-release-nav {
    display: block;
  }

  .jbl-release-nav > ul {
    display: block;
  }

  .jbl-release-nav > ul > li {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid #edf0f2;
  }

  .jbl-release-nav > ul > li > a {
    padding: 14px 4px;
  }

  .jbl-release-nav .has-children > a::after {
    display: none;
  }

  .jbl-release-submenu-toggle {
    position: relative;
    display: block;
    width: 44px;
    border: 0;
    background: transparent;
  }

  .jbl-release-submenu-toggle::before,
  .jbl-release-submenu-toggle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #4b5560;
    content: "";
    transform: translate(-50%, -50%);
  }

  .jbl-release-submenu-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.15s ease;
  }

  .jbl-release-submenu-toggle[aria-expanded="true"]::after {
    transform: translate(-50%, -50%) rotate(0);
  }

  .jbl-release-submenu {
    position: static;
    display: none;
    visibility: visible;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0 0 12px 14px;
    border: 0;
    border-left: 2px solid #eee;
    box-shadow: none;
    opacity: 1;
    grid-column: 1 / -1;
    transform: none;
  }

  .jbl-release-submenu.is-open {
    display: block;
  }
}

@media (max-width: 1040px) {
  .jbl-release-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .jbl-release-footer__grid > div {
    min-width: 0;
  }

  .jbl-release-footer a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  .jbl-release-header__inner {
    min-height: 68px;
    padding: 8px 14px;
    gap: 10px;
  }

  .jbl-release-brand {
    gap: 9px;
  }

  .jbl-release-brand img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .jbl-release-brand span {
    font-size: 14px;
  }

  .jbl-release-quote {
    display: none;
  }

  .jbl-release-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .jbl-release-nav {
    max-height: calc(100dvh - 68px);
    padding-right: 14px;
    padding-left: 14px;
  }

  .jbl-release-footer {
    padding: 38px 20px 20px;
  }

  .jbl-release-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .jbl-release-footer__brand img {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .jbl-release-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

