/*
 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:      0.1
*/


/* ================================
   Mobile Footer & Layout Tweaks
   (No Astra/UAGB dependencies)
================================ */

/* Bundle Product Box */
.asnp-BundleGridItemTwo-ProductBox {
  width: 95% !important;
  max-width: 480px !important;
  margin: 15px auto !important;
  padding: 15px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1) !important;
  border-radius: 10px !important;
  background-color: #ffffff !important;
}

/* Bundle Image Box */
.asnp-BundleGridItemTwo-imageBox {
  width: 100% !important;
  height: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}
.asnp-BundleGridItemTwo-imageBox img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
}

/* Product Info */
.asnp-BundleGridItemTwo-product-info {
  width: 100% !important;
  text-align: center !important;
  padding: 10px !important;
}
.asnp-product-name {
  font-family: 'Lustria', serif !important;
  font-size: 1.6rem !important;
  line-height: 1.5 !important;
  color: #333 !important;
  margin: 10px 0 !important;
}
.asnp-product-Price {
  font-family: 'Lustria', serif !important;
  font-size: 1.4rem !important;
  font-weight: bold !important;
  color: #555 !important;
  margin-top: 5px !important;
}

/* WooCommerce Notices */
.woocommerce-error {
  color: #ff0000;
  background: #ffeeee;
  padding: 10px;
  border: 1px solid #ff0000;
  margin: 10px 0;
}
ul.woocommerce-error::before {
  display: none !important;
}

/* NEW Badge */
.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #F8A877;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 5px;
  z-index: 10;
}
.product { position: relative; }

/* Review Styling */
.review-count {
  font-weight: bold;
  color: #E3905D !important;
}
@media (max-width: 768px) {
  .review-rating {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: left;
  }
  .review-rating .star-rating,
  .review-rating .review-count {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 14px;
  }
  .review-rating .review-count {
    white-space: nowrap;
  }
}

/* Inline Error Message */
.checkout-inline-error-message {
  background-color: #ffdddd;
  border: 2px solid #ff0000;
  color: #b00000;
  padding: 10px;
  border-radius: 5px;
  display: block;
  margin-top: 5px;
}

/* Variation Hide */
dl.variation:has(.variation-Offer) { display: none !important; }
.asnp-product-quantity-field { display: none !important; }

/* Bundle Image Thumb */
.asnp-bundleListItem-imageBox.asnp-bundleListItemTwo-imageBox.asnp-medium {
  width: 60px !important;
  height: 60px !important;
  background-size: cover !important;
  background-position: center !important;
}

/* IWB Benefits Grid */
.iw-benefits-wrap { margin-top: 20px; line-height: 1.1; }
.iw-benefits-wrap ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.iw-benefits-wrap li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .iw-benefits-wrap { font-size: 15px; }
  .iw-benefits-wrap ul { grid-template-columns: 1fr; }
}

/* Reviews: Add Flag */
.woocommerce-review__author::after {
  content: " 🇺🇸";
  font-size: 16px;
  margin-left: 4px;
}

/* Clean Review Summary */
.cr-summaryBox-wrap,
.ivole-summaryBox {
  background: white !important;
  box-shadow: none !important;
  border: none;
  padding: 24px 0;
}
.cr-overall-rating-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
}
.cr-average-rating {
  font-size: 2.8rem;
  font-weight: 600;
  color: #111;
}
.cr-average-rating-stars { display: flex; gap: 4px; }
.cr-total-rating-count {
  font-size: 14px;
  color: #555;
  text-align: right;
}

/* Histogram */
.cr-histogramTable { width: 100%; margin-top: 12px; border-collapse: collapse; }
.ivole-histogramCell1, .ivole-histogramCell3 { font-size: 14px; color: #333; white-space: nowrap; }
.ivole-meter-bar { background: #F9A673 !important; transition: width 0.3s ease; }
.cr-rating-icon-bg { stroke: #F9A673 !important; fill: none !important; }
.cr-rating-icon { fill: #F9A673 !important; stroke: none !important; }

/* Mobile Review Summary */
@media screen and (max-width: 600px) {
  .cr-overall-rating-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cr-total-rating-count { text-align: left; }
}

/* Express Checkout */
.wc-block-components-express-payment__event-buttons {
  margin: 0 auto !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wc-block-components-express-payment__event-buttons li {
  width: 100% !important;
}
.wc-block-components-express-payment__event-buttons li iframe,
.gpay-card-info-container, .gpay-card-info-container-fill, .gpay-card-info-container-fill > button {
  width: 100% !important;
  height: 48px !important;
  border: none !important;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
  font-size: 14px !important;
  color: #1c1c1c !important;
  padding-top: 16px !important;
}
.woocommerce-breadcrumb a {
  color: #cb906b !important;
  text-decoration: none !important;
}
.woocommerce-breadcrumb a:hover { text-decoration: underline !important; }

/* Out of Stock Badge */
.out-of-stock-badge {
  position: absolute;
  top: 10px; right: 10px;
  background-color: #FF0000;
  color: #FFFFFF;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 99;
}

.asnp-productList-wrapper {
  display: none !important;
}

.asnp-plus-icon {
  display: none !important;
}

.asnp-info-icon {
  display: none !important;
}

/* Pasture Points notice styling */
.wc-block-store-notice.wc-block-components-notice-banner.is-info {
  background-color: #221e1d; /* Black background */
  border: none; /* No border */
  border-left: 6px solid #E3905D; /* Orange accent bar */
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700; /* Bold text */
  color: #ffffff; /* White text */
}

/* Info icon */
.wc-block-store-notice.wc-block-components-notice-banner.is-info svg {
  fill: #E3905D; /* Orange */
  flex-shrink: 0;
}

/* Dismiss button */
.wc-block-store-notice.wc-block-components-notice-banner.is-info 
.wc-block-components-notice-banner__dismiss {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.wc-block-store-notice.wc-block-components-notice-banner.is-info 
.wc-block-components-notice-banner__dismiss svg {
  fill: #E3905D; /* Orange */
  transition: fill 0.2s ease;
}

.wc-block-store-notice.wc-block-components-notice-banner.is-info 
.wc-block-components-notice-banner__dismiss:hover svg {
  fill: #F9A673; /* Light orange on hover */
}

/* Hide the offer title completely */
.cuw-offer-title {
  display: none !important;
}

/* Style the CTA text */
.cuw-offer-cta-text {
  font-weight: 700; /* Bold */
  color: #E3905D;   /* Darker orange */
}

/* 🔸 Apply rounded corners to ALL buttons across the site */
button,
a.button,
input[type="submit"],
.wp-element-button {
  border-radius: 3px !important; /* adjust radius as needed */
}

/* 🔸 WooCommerce buttons full width + centered on mobile */
@media (max-width: 768px) {
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .woocommerce #respond input#submit {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 10px auto !important;
  }
}

/* Hide TrackShip branding sitewide (front-end only) */
body:not(.wp-admin) .trackship_branding {
  display: none !important;
}

/* Hide footer widgets on mobile only */
@media (max-width: 768px) {
  #footer-widgets.site.footer-widgets {
    display: none !important;
  }
}

/* Apply 3px rounding to all Gutenberg/GenerateBlocks images */
.gb-element-33451a6a,
.gb-element-33451a6a figure,
.gb-element-33451a6a img,
.wp-block-image,
.wp-block-image img {
    border-radius: 10px;
    overflow: hidden; /* keeps images clipped to the radius */
}

#tab-description > h2 {
    display: none !important;
}

#tab-title-additional_information {
    display: none !important;
}

html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  #asnp_easy_product_bundle .asnp-bundleListItem-productBox {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .gb-element-153a3341,
  .gb-element-153a3341 p,
  .gb-element-153a3341 * {
    font-size: 14px !important;
    line-height: 1.4em; /* optional for readability */
  }
}

.woocommerce-store-notice {
  background-color: #221e1d !important;
  color: #ffffff !important;
}

.woocommerce-store-notice a,
.woocommerce-store-notice strong {
  color: #ffffff !important;
}
