/*
Atomic Heart Lounge - Phase 11.1 Clean Final Override
This is the single active override layer for cart/checkout/link styling.
*/

/* Weekly buttons */
.lineup-7-copy .button-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Full flyers/cards should not crop */
.event-card img,
.phase8-event-card img,
.cards-grid .event-card img,
.cards-grid .phase8-event-card img,
.discovery-card img,
.preview-discovery-card img {
  width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #090909 !important;
  padding: 10px !important;
}

/* Cart review note */
.ahl-cart-review-note,
.ahl-payment-helper {
  max-width: 940px;
  margin: 0 auto 22px !important;
  background: #111111 !important;
  color: #ffffff !important;
  border-left: 5px solid #d3122a !important;
  padding: 16px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}
.ahl-payment-helper span {
  display: block !important;
  color: rgba(255,255,255,.78) !important;
  font-weight: 700 !important;
  text-transform: none !important;
  margin-top: 5px !important;
}

/* Cart quantity controls */
body.woocommerce-cart .wc-block-components-quantity-selector,
body.woocommerce-cart .quantity {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
  min-width: 150px !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector input,
body.woocommerce-cart .quantity input {
  width: 58px !important;
  height: 52px !important;
  min-height: 52px !important;
  background: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  caret-color: #111111 !important;
  border: 2px solid #d3122a !important;
  border-radius: 8px !important;
  text-align: center !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  padding: 0 !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button,
body.woocommerce-cart .quantity .minus,
body.woocommerce-cart .quantity .plus {
  width: 42px !important;
  height: 52px !important;
  min-height: 52px !important;
  background: #d3122a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 2px solid #d3122a !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  padding: 0 !important;
}

/* Remove/trash */
body.woocommerce-cart .wc-block-cart-item__remove-link,
body.woocommerce-cart a.remove {
  color: #ffffff !important;
  background: #d3122a !important;
  border: 2px solid #ffffff !important;
  border-radius: 8px !important;
  min-width: 38px !important;
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  text-decoration: none !important;
  opacity: 1 !important;
}
body.woocommerce-cart .wc-block-cart-item__remove-link:before,
body.woocommerce-cart a.remove:before {
  content: "×" !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Checkout: hide old custom labels if older functions still print them */
body.woocommerce-checkout .ahl-field-label,
body.woocommerce-checkout .ahl-clean-field-label,
body.woocommerce-checkout .ahl-card-help,
body.woocommerce-checkout .ahl-payment-field-guide {
  display: none !important;
}

/* Checkout input fields: white boxes, black text */
body.woocommerce-checkout input,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout .input-text,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox input,
body.woocommerce-checkout .wc-block-components-address-form input,
body.woocommerce-checkout .components-text-control__input,
body.woocommerce-checkout .wc-block-components-textarea {
  background: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  caret-color: #111111 !important;
  border: 2px solid #d3122a !important;
  border-radius: 10px !important;
  min-height: 54px !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Placeholders */
body.woocommerce-checkout input::placeholder,
body.woocommerce-checkout textarea::placeholder,
body.woocommerce-checkout .wc-block-components-text-input input::placeholder {
  color: #555555 !important;
  -webkit-text-fill-color: #555555 !important;
  opacity: 1 !important;
}

/* Keep WooCommerce Blocks floating labels readable */
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-combobox label,
body.woocommerce-checkout label,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-product-metadata,
body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-checkbox__label {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

body.woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-components-combobox,
body.woocommerce-checkout .wc-block-components-address-form > div,
body.woocommerce-checkout .form-row {
  margin-bottom: 22px !important;
}

/* Stripe containers */
body.woocommerce-checkout .wc-stripe-elements-field,
body.woocommerce-checkout .StripeElement,
body.woocommerce-checkout #stripe-card-element,
body.woocommerce-checkout #stripe-exp-element,
body.woocommerce-checkout #stripe-cvc-element {
  background: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border: 2px solid #d3122a !important;
  border-radius: 10px !important;
  min-height: 54px !important;
  padding: 14px !important;
}

/* Modern wrapper */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout form.checkout,
body.woocommerce-cart .woocommerce {
  background: radial-gradient(circle at top left, rgba(211,18,42,.14), transparent 34%), #050505 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 0 34px rgba(211,18,42,.12) !important;
}

/* Continue buttons */
.ahl-continue-events {
  margin: 22px auto !important;
  max-width: 940px !important;
  text-align: center !important;
}
.ahl-continue-events .ahl-btn {
  margin: 6px !important;
}

/* Discovery/Night pages */
.night-detail-page,
.discovery-landing-page {
  padding: clamp(36px,6vw,90px) 0 !important;
}
.discovery-landing-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(320px,.8fr) !important;
  gap: clamp(28px,5vw,70px) !important;
  align-items: center !important;
}
.discovery-landing-grid h1 {
  color: #f2f0ec !important;
  font-size: clamp(50px,8vw,130px) !important;
  line-height: .84 !important;
  text-transform: uppercase !important;
}
.discovery-landing-grid p,
.discovery-landing-grid li {
  color: rgba(255,255,255,.86) !important;
  font-weight: 700 !important;
}
.discovery-page-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 20px 0 36px !important;
}
.discovery-page-links a {
  background: #ded6ca !important;
  color: #090909 !important;
  border: 2px solid #d3122a !important;
  padding: 12px 16px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: 5px 5px 0 rgba(211,18,42,.45) !important;
}

@media(max-width:900px){
  .discovery-landing-grid{grid-template-columns:1fr!important}
}


/* PHASE 11.2 BAKED FIX: WooCommerce Blocks floating checkout labels
   This exact fix was confirmed working on the live checkout. */
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-combobox label,
body.woocommerce-checkout .wc-block-components-address-form label {
  color: #555555 !important;
  -webkit-text-fill-color: #555555 !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #ffffff !important;
  padding: 0 6px !important;
  z-index: 5 !important;
}

body.woocommerce-checkout .wc-block-components-text-input:not(.is-active) label,
body.woocommerce-checkout .wc-block-components-combobox:not(.is-active) label {
  color: #555555 !important;
  -webkit-text-fill-color: #555555 !important;
  opacity: 1 !important;
}

body.woocommerce-checkout .wc-block-components-text-input.is-active label,
body.woocommerce-checkout .wc-block-components-combobox.is-active label {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  opacity: 1 !important;
}

/* Keep typed info readable in checkout/cart fields. */
body.woocommerce-checkout input,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox input,
body.woocommerce-checkout .wc-block-components-address-form input,
body.woocommerce-checkout .components-text-control__input,
body.woocommerce-checkout .wc-block-components-textarea {
  background: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  caret-color: #111111 !important;
  opacity: 1 !important;
}

body.woocommerce-checkout input::placeholder,
body.woocommerce-checkout textarea::placeholder,
body.woocommerce-checkout .wc-block-components-text-input input::placeholder {
  color: #555555 !important;
  -webkit-text-fill-color: #555555 !important;
  opacity: 1 !important;
}
/* Order confirmation ticket info visibility fix */
.ahl-ticket-confirmation,
.ahl-ticket-confirmation * {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}

.ahl-ticket-confirmation .ticket-info,
.ahl-ticket-confirmation .ticket-line,
.ahl-ticket-confirmation p,
.ahl-ticket-confirmation strong {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}

.ahl-ticket-confirmation .ticket-bar,
.ahl-ticket-confirmation .ticket-meta,
.ahl-ticket-confirmation .ticket-row {
  background: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border-left: 5px solid #d3122a !important;
}