/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      1.0.5
*/
body {
  overflow-y: auto;
}

/* WC My Account page */
body.woocommerce-account a.woocommerce-button {
  margin: 0 4px 6px 0;
  padding: 8px 20px;
  font-size: 16px;
}

body.woocommerce-account.woocommerce-view-subscription
  section.woocommerce-customer-details
  .col2-set
  .woocommerce-column {
  width: 100%;
}

.woocommerce-NoticeGroup .woocommerce-error a {
  color: #fff;
}

.ui-dialog.ui-widget.ui-widget-content {
  z-index: 120;
}

/* ============================================================================
   SUBSCRIPTION TOGGLE STYLES
   ============================================================================ */

.mk-subscription-toggle-wrapper {
  margin: 0 0 40px;
  padding: 0;
  margin-top: 40px;
}

.mk-subscription-toggle-label {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

/* Hide default checkbox */
.mk-subscription-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Toggle Slider */
.mk-subscription-toggle-slider {
  position: relative;
  width: 64px;
  height: 32px;
  background: #d1d9e6;
  border-radius: 34px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.mk-subscription-toggle-slider::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Checked state */
.mk-subscription-toggle-input:checked + .mk-subscription-toggle-slider {
  background: linear-gradient(135deg, #c98e1f 0%, #a67617 100%);
  box-shadow: 0 4px 12px rgba(201, 142, 31, 0.3);
}

.mk-subscription-toggle-input:checked + .mk-subscription-toggle-slider::before {
  transform: translateX(32px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Toggle Text */
.mk-subscription-toggle-text {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.mk-subscription-toggle-input:checked ~ .mk-subscription-toggle-text {
  color: #c98e1f;
}

/* Hide old subscription radio buttons only when Dynamic Pricing plugin is active */
.mk-dynamic-pricing-active .mk-subscription-options-list {
  display: none !important;
}

/* Hide original WooCommerce Subscriptions prompt when Dynamic Pricing plugin is active */
.mk-dynamic-pricing-active .wcsatt-options-product-prompt {
  display: none !important;
}

/* Show only when toggle is active (handled by JS) */
.mk-subscription-active .mk-subscription-options-list {
  display: none !important;
}

.mk-subscription-options-list li {
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 !important;
  min-width: 160px !important;
}

.mk-subscription-options-list label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 32px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border: 2px solid #d1d9e6 !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  min-height: 68px !important;
  position: relative !important;
  overflow: visible !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  line-height: 1.4 !important;
  letter-spacing: 0.3px !important;
}

/* Show text content inside labels */
.mk-subscription-options-list label span,
.mk-subscription-options-list label .wcsatt-options-product-option-details,
.mk-subscription-options-list label .wcsatt-options-prompt-action-details,
.mk-subscription-options-list label .wcsatt-options-prompt-action {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/* Hide radio visually but keep accessible */
.mk-subscription-options-list input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

/* Hover state */
.mk-subscription-options-list label:hover {
  border-color: #4a90e2 !important;
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.15) !important;
}

/* Selected state - vibrant and clear */
.mk-subscription-options-list label:has(input:checked) {
  border-color: #c98e1f !important;
  background: linear-gradient(135deg, #c98e1f 0%, #a67617 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(201, 142, 31, 0.25) !important;
}

/* ============================================================================
   PRODUCT TABS STYLES
   ============================================================================ */

/* Common styles for both Ingredients and What to Expect tabs */
.ingredients-tab,
.what-to-expect-tab {
  line-height: 1.8;
}

.ingredients-tab .tab-content-wrapper,
.what-to-expect-tab .tab-content-wrapper {
  max-width: 900px;
}

/* Headings */
.ingredients-tab h2,
.ingredients-tab h3,
.what-to-expect-tab h2,
.what-to-expect-tab h3 {
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.ingredients-tab h2,
.what-to-expect-tab h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.ingredients-tab h3,
.what-to-expect-tab h3 {
  font-size: 1.25rem;
}

/* Lists */
.ingredients-tab ul,
.what-to-expect-tab ul {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.ingredients-tab ul li,
.what-to-expect-tab ul li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.ingredients-tab ul li:before,
.what-to-expect-tab ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
}

/* Ingredients tab specific - green checkmark */
.ingredients-tab ul li:before {
  background: #4caf50;
  color: white;
}

/* What to Expect tab specific - blue checkmark */
.what-to-expect-tab ul li:before {
  background: #2196f3;
  color: white;
}

/* Paragraphs and text */
.ingredients-tab p,
.what-to-expect-tab p {
  margin-bottom: 1.25rem;
}

.ingredients-tab strong,
.what-to-expect-tab strong {
  color: #333;
  font-weight: 600;
}

/* What to Expect specific - highlight box */
.what-to-expect-tab .highlight-box {
  background: #f8f9fa;
  border-left: 4px solid #ff9800;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.what-to-expect-tab .highlight-box p:last-child {
  margin-bottom: 0;
}
