/* OddPixel Factory v1.7.1 — dedicated demo dropdown and card CTAs.
   This stylesheet touches only menu items created for the demo catalog and
   the paired Free-product links. No global Astra theme settings are changed. */

/* Astra sometimes assigns white text to its white dropdown. Keep contrast. */
#masthead .op-dlib-menu-root > ul.sub-menu,
#ast-mobile-header .op-dlib-menu-root > ul.sub-menu,
.op-dlib-menu-root > ul.sub-menu {
  background: #101a43 !important;
  border: 1px solid #49488d !important;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 35px rgba(5, 12, 46, .28);
  min-width: 235px;
  max-width: min(92vw, 380px);
  overflow: hidden;
}
#masthead .op-dlib-menu-root ul.sub-menu li,
#ast-mobile-header .op-dlib-menu-root ul.sub-menu li,
.op-dlib-menu-root ul.sub-menu li {
  background: #101a43 !important;
}
#masthead .op-dlib-menu-root ul.sub-menu a,
#ast-mobile-header .op-dlib-menu-root ul.sub-menu a,
.op-dlib-menu-root ul.sub-menu a {
  display: block;
  color: #f8f8ff !important;
  background-color: #101a43 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal !important;
  padding: 13px 18px !important;
  text-decoration: none !important;
  opacity: 1 !important;
}
#masthead .op-dlib-menu-root ul.sub-menu li:hover > a,
#masthead .op-dlib-menu-root ul.sub-menu a:focus-visible,
#masthead .op-dlib-menu-root ul.sub-menu li.current-menu-item > a,
#ast-mobile-header .op-dlib-menu-root ul.sub-menu li:hover > a,
#ast-mobile-header .op-dlib-menu-root ul.sub-menu a:focus-visible,
.op-dlib-menu-root ul.sub-menu li:hover > a,
.op-dlib-menu-root ul.sub-menu a:focus-visible,
.op-dlib-menu-root ul.sub-menu li.current-menu-item > a {
  color: #fff !important;
  background: #373083 !important;
  text-decoration: none !important;
}
.op-dlib-menu-root ul.sub-menu a:focus-visible {
  outline: 2px solid #c3baff;
  outline-offset: -3px;
}
@media (max-width: 921px) {
  .op-dlib-menu-root > ul.sub-menu {
    min-width: 0;
    max-width: none;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
  }
}

/* Align the existing Free button and the demo button with a real gap. */
.oddpixel-root .op-dlib-free-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
}
.oddpixel-root .op-product-body .op-dlib-free-actions .op-button,
.oddpixel-root .op-dlib-free-actions .op-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 13px 20px;
  min-height: 48px;
  line-height: 1.35;
  text-align: center;
}
.oddpixel-root .op-dlib-free-actions .op-dlib-demo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin: 0 !important;
  padding: 12px 19px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  color: #5541c7 !important;
  background: #f0edff !important;
  border: 1px solid #8676fa;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: none;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.oddpixel-root .op-dlib-free-actions .op-dlib-demo-link:hover,
.oddpixel-root .op-dlib-free-actions .op-dlib-demo-link:focus-visible {
  color: #fff !important;
  background: #5343d5 !important;
  border-color: #5343d5;
}
.oddpixel-root .op-dlib-free-actions .op-dlib-demo-link:focus-visible {
  outline: 3px solid #a89bff;
  outline-offset: 3px;
}
@media(max-width: 620px) {
  .oddpixel-root .op-dlib-free-actions { flex-direction: column; gap: 12px; }
  .oddpixel-root .op-dlib-free-actions .op-button,
  .oddpixel-root .op-dlib-free-actions .op-dlib-demo-link { width: 100%; }
}
