/* WordPress and WooCommerce integration layered over the original static CSS. */

/* Keep the primary navigation visible even if Tailwind's runtime utilities are
   delayed or unavailable on a WordPress-rendered page. */
#edai-ai-navbar {
  position: sticky !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999 !important;
  width: 100%;
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

#edai-ai-navbar.edai-navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(9, 9, 11, 0.09);
}

/* body.admin-bar #edai-ai-navbar {
  top: 32px;
} */

.edai-content-shell {
  max-width: 1160px;
  min-height: 48vh;
  margin: 0 auto;
  padding: 5rem 1rem;
}

.edai-commerce-main {
  min-height: 60vh;
  padding: 5rem 1rem;
  background: #fafafa;
}

.edai-content-shell > article,
.edai-commerce-shell {
  color: var(--ink, #173132);
}

.edai-content-shell > article > h1,
.edai-commerce-shell .page-title,
.edai-commerce-shell .entry-title {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.045em;
}

.edai-empty-state {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.edai-wlb-paddle-wrap {
  display: block;
  width: 100%;
}

.edai-wlb-paddle-wrap .button {
  width: 100%;
}

.cta-actions .edai-wlb-paddle-wrap {
  width: auto;
}

.cta-actions .edai-wlb-paddle-wrap .button {
  width: auto;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.wc-block-components-button {
  border: 0;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.wc-block-components-button:hover {
  background: #4338ca;
  color: #fff;
  transform: translateY(-1px);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  min-height: 48px;
  border: 1px solid #cbd8d5;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 26px;
}

.woocommerce form.checkout,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation,
.woocommerce table.shop_table,
.woocommerce .cart_totals,
.woocommerce .woocommerce-order-details,
.woocommerce .woocommerce-customer-details {
  border-color: #dce6e3;
  border-radius: 16px;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce-MyAccount-content,
.woocommerce .cart_totals,
.woocommerce .woocommerce-order-details,
.woocommerce .woocommerce-customer-details {
  padding: clamp(1rem, 3vw, 2rem);
  background: #fff;
  box-shadow: 0 16px 45px rgba(8, 42, 42, 0.07);
}

.woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e4ece9;
  color: #153737;
  font-weight: 750;
  text-decoration: none;
}

.woocommerce-MyAccount-navigation .is-active a {
  border-radius: 10px;
  background: #e7f5f1;
  color: #0a706a;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: #4f46e5;
  border-radius: 10px;
  background: #fff;
}

.woocommerce ul.products li.product {
  padding: 1.25rem;
  border: 1px solid #dce6e3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(8, 42, 42, 0.06);
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #4f46e5;
  font-weight: 850;
}

.woocommerce-checkout #payment {
  border-radius: 14px;
  background: #edf6f3;
}

@media (max-width: 782px) {
  body.admin-bar #edai-ai-navbar {
    top: 46px;
  }
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    margin-top: 1.25rem;
  }
}
