/* Tab navigation */
.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #e0f2e9;
    background-color: #f6fcf9;
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
}

.woocommerce-tabs ul.tabs li {
    margin-right: 10px;
}

.woocommerce-tabs ul.tabs li a {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    color: #3d8155;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 12px;
    background-color: #e9f8f0;
    transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    background-color: #fddccf;
    color: #d14400;
}

/* Tab content box */
.woocommerce-Tabs-panel--additional_information {
    background-color: #ffffff;
    border: 2px solid #e0f2e9;
    border-top: none;
    padding: 25px;
    border-radius: 0 0 16px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Attributes table inside tab */
.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0f2e9;
    font-size: 16px;
}

.woocommerce-product-attributes th {
    text-align: left;
    color: #3d8155;
    font-weight: 600;
    background-color: #f6fcf9;
}

.woocommerce-product-attributes td {
    color: #444;
}

/* Make "Plant Details" title pop */
.woocommerce-tabs .panel h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    color: #3d8155;
    margin-bottom: 20px;
    border-left: 5px solid #fddccf;
    padding-left: 10px;
}
.woocommerce-product-attributes-item--weight,
.woocommerce-product-attributes-item--dimensions {
    display: none !important;
}
/* 🔒 Base: Hide all banners by default */
.banner-full-sun,
.banner-bright-indirect,
.banner-low-light,
.banner-small-tabletop-plants,
.banner-medium-floor,
.banner-large-statement,
.banner-size-growth,
.banner-one-of-a-kind {
  display: none !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ✅ Show banners when matching body class is present */
body.show-banner-full-sun .banner-full-sun,
body.show-banner-bright-indirect .banner-bright-indirect,
body.show-banner-low-light .banner-low-light,
body.show-banner-small-tabletop-plants .banner-small-tabletop-plants,
body.show-banner-medium-floor .banner-medium-floor,
body.show-banner-large-statement .banner-large-statement,
body.show-banner-size-growth .banner-size-growth,
body.show-banner-one-of-a-kind .banner-one-of-a-kind {
  display: block !important;
  visibility: visible;
  opacity: 1;
}

/* ===== 305 Greenery — Mega Menu Typography (menu-style only) ===== */

/* ===== 305 Greenery — Mega Menu Spacing Fix (menu-style only) ===== */

/* Add spacing between columns */
.menu-style > .popup .sub-menu > li {
  padding-right: 20px !important;  /* space on the right */
  margin-right: 10px !important;   /* small gap between items */
  box-sizing: border-box;
}

/* Make sure long text wraps nicely */
.menu-style > .popup .sub-menu > li > a {
  white-space: normal !important;
  word-break: break-word; /* prevent overflow */
  max-width: 220px;       /* keeps columns from stretching too wide */
}

.menu-style > .popup .sub-menu > li > a {
  text-transform: none !important;   /* remove ALL CAPS */
  font-weight: 400 !important;       /* normal weight */
  font-size: 15px !important;        /* clean readable size */
  line-height: 1.6 !important;       /* comfortable spacing */
  letter-spacing: 0 !important;      /* no extra spacing */
  color: #2e5339 !important;         /* 305 Greenery deep green */
  font-family: 'Segoe UI', sans-serif !important; /* match brand font */
  display: block;
  padding: 4px 0;
  text-decoration: none;
}

/* Hover style */
.menu-style > .popup .sub-menu > li > a:hover {
  color: #d36135 !important;         /* warm coral hover */
  text-decoration: none !important;
}

/* Optional: style column headers if some items are parents */
.menu-style > .popup .sub-menu > li.menu-item-has-children > a {
  font-weight: 600 !important;       /* semi-bold for section headers */
  margin-bottom: 6px !important;
}

/* Scope to our Info Box */
.qty-discount-trigger { position: relative; }

/* Popover base (hidden) */
.qty-discount-trigger .qty-discount-popover {
  position: absolute;
  left: 0; top: 110%;
  width: 280px;
  padding: 0; margin: 0;
  z-index: 9999;

  visibility: hidden; opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  transform: translateY(6px);
}

/* Inner styling - 305 Greenery look */
.qty-discount-trigger .qty-discount-popover__inner {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  font-family: "Segoe UI", Arial, sans-serif;
  color: #2e5339;
  line-height: 1.55;
  padding: 14px 16px;
}
.qty-discount-trigger .qty-discount-popover__inner strong { color: #d06e5a; }
.qty-discount-trigger .qty-discount-popover__inner ul {
  margin: 10px 0 6px 18px; padding: 0;
}
.qty-discount-trigger .qty-discount-popover__inner em {
  font-size: 12px; color: #777;
}

/* Show on hover/focus (works in menu dropdowns) */
.qty-discount-trigger:hover .qty-discount-popover,
.qty-discount-trigger:focus-within .qty-discount-popover,
.qty-discount-trigger.is-open .qty-discount-popover {
  visibility: visible; opacity: 1; transform: translateY(0);
}

/* Keep it inside wide mega menus */
@media (max-width: 1024px){
  .qty-discount-trigger .qty-discount-popover { left: 0; right: auto; }
}

/* === 305 Greenery Global MailPoet Form Styling === */

/* Form container */
.mailpoet_form {
  max-width: 960px;
  margin: 20px auto;
  background: #ffffff;
  border: 1px solid #dfe8df;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #2e4e32;
}

/* Labels and paragraphs */
.mailpoet_form label,
.mailpoet_form p {
  font-size: 15px;
  color: #2e4e32;
  margin-bottom: 8px;
}

/* Input fields */
.mailpoet_form input[type="email"],
.mailpoet_form input[type="text"],
.mailpoet_form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #cfd9cf;
  border-radius: 10px;
  background: #f9f8f4;
  color: #2e4e32;
  outline: none;
  box-sizing: border-box;
}

/* Submit button */
.mailpoet_form input[type="submit"],
.mailpoet_form .mailpoet_submit button {
  display: inline-block;
  width: 100%;
  background: #d06e5a; /* coral */
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Button hover */
.mailpoet_form input[type="submit"]:hover,
.mailpoet_form .mailpoet_submit button:hover {
  background: #b8433d; /* darker coral */
}

/* Success message */
.mailpoet_validate_success {
  background: #f4fbf7;
  border: 1px dashed #cfe3d2;
  color: #2e5339;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-size: 15px;
}

/* Error messages */
.mailpoet_error,
.mailpoet_error input {
  border-color: #d06e5a !important; /* coral border for errors */
  color: #b8433d !important;
}

/* Small print / privacy */
.mailpoet_form .mailpoet_paragraph {
  font-size: 13px;
  color: #58785e;
  margin-top: 10px;
}

/* 305 Greenery — Contact Form 7 complete style */

/* Scope: add 'cf7-305' as Extra class on the column/row that contains the form
   (or leave it off if you want this style site-wide and replace '.cf7-305 ' with nothing). */
.cf7-305,
.cf7-305 .wpcf7 form {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #2e4e32;
}

/* Card */
.cf7-305__wrap {
  background: #f9f8f4;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  padding: 28px;
  max-width: 860px;
  margin: 0 auto 30px;
}

/* Headings */
.cf7-305__title {
  margin: 0 0 6px;
  color: #2e5339;
  font-size: 28px;
  font-weight: 700;
}
.cf7-305__subtitle {
  margin: 0 0 18px;
  font-size: 15px;
  opacity: 0.9;
}

/* Grid */
.cf7-305__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.cf7-305__field--full {
  grid-column: 1 / -1;
}

/* Labels */
.cf7-305__field > label {
  display: block;
  font-size: 13px;
  color: #2e5339;
  margin: 0 0 6px;
  font-weight: 600;
}

/* Inputs & selects */
.cf7-305 input[type="text"],
.cf7-305 input[type="email"],
.cf7-305 input[type="tel"],
.cf7-305 input[type="url"],
.cf7-305 select,
.cf7-305 textarea {
  width: 100%;
  border: 1px solid #dcd8cf;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.cf7-305 textarea {
  min-height: 140px;
  resize: vertical;
}
.cf7-305 input::placeholder,
.cf7-305 textarea::placeholder {
  color: #9aa5a0;
}

/* Focus */
.cf7-305 input:focus,
.cf7-305 textarea:focus,
.cf7-305 select:focus {
  border-color: #d06e5a;
  box-shadow: 0 0 0 3px rgba(208,110,90,0.18);
  background: #fffefb;
}

/* Consent / checkbox line */
.cf7-305__consent .wpcf7-list-item {
  margin: 0; /* remove default spacing */
}
.cf7-305__consent input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-right: 8px;
  vertical-align: middle;
  accent-color: #d06e5a;
}
.cf7-305__consent .wpcf7-list-item-label {
  font-size: 14px;
  font-weight: 500;
  vertical-align: middle;
}

/* Submit button */
.cf7-305__actions {
  display: flex;
  gap: 10px;
}
.cf7-305__actions input[type="submit"] {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 700;
  background: #d06e5a; /* coral */
  color: #fff;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease;
  box-shadow: 0 6px 14px rgba(208,110,90,0.25);
}
.cf7-305__actions input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(208,110,90,0.30);
}
.cf7-305__actions input[type="submit"]:active {
  transform: translateY(0);
}

/* Validation + response messages */
.cf7-305 .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #b8433d;
  margin-top: 6px;
}
.cf7-305 div.wpcf7-response-output {
  margin: 16px 0 0;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 12px 14px;
  font-size: 14px;
}
.cf7-305 .wpcf7-form.invalid div.wpcf7-response-output {
  border-color: #e6b8b3;
  background: #fff2f1;
  color: #8c2f2a;
}
.cf7-305 .wpcf7-form.sent div.wpcf7-response-output {
  border-color: #b9e4c9;
  background: #f2fbf6;
  color: #2e5339;
}

/* Porto/WPBakery spacing niceties */
.cf7-305 .wpcf7 form p { margin-bottom: 0; }

/* Mobile tweaks */
@media (max-width: 768px) {
  .cf7-305__grid { grid-template-columns: 1fr; }
  .cf7-305__wrap { padding: 22px; }
  .cf7-305__title { font-size: 24px; }
  .cf7-305__actions input[type="submit"] {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    font-size: 18px;
  }
}

.cf7-305__consent .wpcf7-list-item-label {
  font-size: 13px;
  opacity: .9;
}

/* Contact sidebar — force 305 Greenery colors */
.contact-aside-305 { color: #2e5339; }

.contact-aside-305 h1,
.contact-aside-305 h2,
.contact-aside-305 h3,
.contact-aside-305 .vc_custom_heading,
.contact-aside-305 .porto-sicon-title { color: #2e5339 !important; }

.contact-aside-305 a { color: #2e5339 !important; text-decoration: none; }
.contact-aside-305 a:hover,
.contact-aside-305 a:focus { color: #d06e5a !important; }

/* Porto info box bits */
.contact-aside-305 .porto-sicon-box .porto-sicon,
.contact-aside-305 .porto-sicon-box .porto-svg-icon,
.contact-aside-305 .porto-sicon-box .porto-sicon-header,
.contact-aside-305 .porto-sicon-box .porto-sicon-header .porto-sicon-title {
  color: #2e5339 !important;
  border-color: #2e5339 !important;
  fill: #2e5339 !important;
}

/* Neutralize Porto's primary text class in this column */
.contact-aside-305 .text-color-primary { color: #2e5339 !important; }

/* ✅ Mega menu hardening (desktop only) */
@media (min-width: 1200px) {
  /* Default safety net = 4 columns when JS/classes don't load yet */
  .main-menu .menu-item.wide .popup > .inner > ul.sub-menu {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px;
  }
  .main-menu .menu-item.wide .popup > .inner > ul.sub-menu > li {
    width: auto !important;
    float: none !important;
  }

  /* If Porto adds a .col-X class, respect it automatically */
  .main-menu .menu-item.wide.col-3 .popup > .inner > ul.sub-menu { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .main-menu .menu-item.wide.col-4 .popup > .inner > ul.sub-menu { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .main-menu .menu-item.wide.col-5 .popup > .inner > ul.sub-menu { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .main-menu .menu-item.wide.col-6 .popup > .inner > ul.sub-menu { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}
