/* 05-modifiers.css
 * Modifier and state-based overrides (dodo-page classes, sticky cart, shipping texts)
 */

/* Sidebar & filter visibility per page class */
.dodo-loop-page #secondary {
  display: block !important;
}
.dodo-loop-page #secondary .widget.WOOF_Widget {
  display: block !important;
}
@media screen and (min-width: 1024px) {
  .dodo-loop-page .woof-slide-out-div.ui-slideouttab-panel {
    display: none !important;
  }
}
@media screen and (max-width: 1024px) {
  .dodo-loop-page #secondary .widget.WOOF_Widget {
    display: none !important;
  }
  .dodo-loop-page .woof-slide-out-div.ui-slideouttab-panel {
    display: block !important;
  }
}

.dodo-transaction-page #secondary {
  display: none !important;
}

.dodo-solo-page #secondary .widget.WOOF_Widget,
.dodo-solo-page .woof-slide-out-div.ui-slideouttab-panel {
  display: none !important;
}
@media screen and (max-width: 1024px) {
  .dodo-solo-page #secondary {
    display: block !important;
  }
}

/* Mobile sticky cart */
#mobile-sticky-cart {
  display: none;
  position: fixed;
  bottom: 60px;
  left: 0;
  width: 100%;
  background: var(--accent);
  text-align: center;
  padding: 0.75em 0;
  z-index: 9999;
}
#mobile-sticky-cart.active {
  display: block !important;
}
#mobile-sticky-cart a {
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
}
@media (min-width: 769px) {
  #mobile-sticky-cart,
  #mobile-sticky-cart.active {
    display: none !important;
  }
}

/* Shipping & returns texts */
.dodo-shipping-desktop {
  /* default shown */
}
.dodo-shipping-mobile {
  display: none;
}
@media (max-width: 768px) {
  .dodo-shipping-desktop {
    display: none;
  }
  .dodo-shipping-mobile {
    display: block;
  }
}

/* ───────────────────────────────────────────────────────
   Force “Get in Touch” links in sidebar widgets to use
   the exact same alt-button text colour
──────────────────────────────────────────────────────── */

/* default state */
.widget-area
  .widget
  .wp-block-buttons
  .wp-block-button__link.wp-element-button {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: var(--main-bg);
}

/* hover / focus / active */
.widget-area
  .widget
  .wp-block-buttons
  .wp-block-button__link.wp-element-button:hover,
.widget-area
  .widget
  .wp-block-buttons
  .wp-block-button__link.wp-element-button:focus,
.widget-area
  .widget
  .wp-block-buttons
  .wp-block-button__link.wp-element-button:active {
  background-color: #5b022d;
  border-color: #5b022d;
  color: var(--main-bg);
}

/* Variation panel */
.dodo-variant-panel {
  background: #faf9f7;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.2em; /* align with site rhythm */
  margin: 1em 0;
  font-family: var(--body-font), sans-serif;
  color: var(--text);
}

/* ——— Typography + spacing inside the panel ——— */

/* kill the global white borders in this table */
.dodo-variant-panel table.variations,
.dodo-variant-panel table.variations th,
.dodo-variant-panel table.variations td {
  border: 0 !important;
  background: transparent;
}

/* attribute labels */
.dodo-variant-panel table.variations th {
  padding: 0 0 0.25em;
  font-weight: var(--font-weight-regular);
  font-size: 1em; /* same as body */
  line-height: 1.4;
  color: #555;
}

/* attribute controls */
.dodo-variant-panel table.variations td {
  padding: 0 0 0.75em;
}
.dodo-variant-panel select {
  font-family: var(--body-font), sans-serif;
  font-size: 1em;
  line-height: 1.5;
  box-shadow: none;
}

/* “Clear” link next to selects */
.dodo-variant-panel .reset_variations {
  font-size: 0.9em;
  margin-left: 0.25em;
  color: var(--text);
  text-decoration: none;
  opacity: 0.75;
}
.dodo-variant-panel .reset_variations:hover {
  opacity: 1;
  text-decoration: underline;
}

/* variation price — match single product price scale */
.dodo-variant-panel .single_variation .price {
  font-size: 1.618em;
  line-height: 1.2;
  font-weight: var(--font-weight-bold);
  margin: 0.5em 0 0.25em;
}

/* small meta lines under price (stock, size, etc.) */
.dodo-variant-panel .single_variation .stock,
.dodo-variant-panel .dodo-range,
.dodo-variant-panel .dodo-kv {
  font-size: 0.9em;
  line-height: 1.4;
  color: #555;
  margin: 0.25em 0;
}
.dodo-variant-panel .dodo-kv label {
  font-weight: var(--font-weight-regular);
  margin-right: 0.4em;
}

/* qty + add-to-cart spacing */
.dodo-variant-panel .quantity,
.dodo-variant-panel .single_add_to_cart_button {
  margin-top: 0.25em;
}
