/* =========================================================
   WHOLESALE REQUEST FORM
   ========================================================= */

.wholesale-form-page-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.wholesale-form-page-container * {
    box-sizing: border-box;
}

/* Main Heading */

.wholesale-form-page-container .form-main-title {
    text-align: center;
    margin: 0 0 20px;
    font-size: 28px;
    line-height: 1.25;
    font-family: 'Inter';
}

#wholesale-address::placeholder {
    color: #aaa !important;
    opacity: 1;
}

.wholesale-form-page-container .form-tagline {
    margin: 0 auto 35px;
    text-align: center;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* Form */

.wholesale-request-form {
    width: 100%;
}

/* Section Heading */

.wholesale-request-form .form-section-title {
    margin: 35px 0 20px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
}

.wholesale-request-form .form-section-title:first-child {
    margin-top: 0;
}

/* =========================================================
   TWO COLUMN GRID
   ========================================================= */

.wholesale-request-form .wholesale-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
}

/* Full width field */

.wholesale-form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Group */

.wholesale-request-form .wholesale-form-grid .form-group {
    width: 100%;
    margin-bottom: 20px;
}
/* Labels */

.wholesale-form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #333;
}

/* Required star */

.wholesale-form-group label .required {
    color: #e54c1f;
}

/* Inputs / Select / Textarea */

.wholesale-form-group input[type="text"],
.wholesale-form-group input[type="email"],
.wholesale-form-group input[type="tel"],
.wholesale-form-group input[type="date"],
.wholesale-form-group select,
.wholesale-form-group textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Textarea */

.wholesale-form-group textarea {
    min-height: 110px;
    resize: vertical;
}

/* Focus */

.wholesale-form-group input:focus,
.wholesale-form-group select:focus,
.wholesale-form-group textarea:focus {
    border-color: #e54c1f;
    box-shadow: 0 0 0 1px rgba(229, 76, 31, 0.12);
}

/* Select */

.wholesale-form-group select {
    cursor: pointer;
    appearance: auto;
}

/* Placeholder */

.wholesale-form-group input::placeholder,
.wholesale-form-group textarea::placeholder {
    color: #999;
}

/* =========================================================
   CONDITIONAL TEA FIELDS
   ========================================================= */

#wholesale-tea-packs-group,
#wholesale-tea-weight-group {
    display: none;
}

/* =========================================================
   RADIO / CHECKBOX IF USED
   ========================================================= */

.wholesale-form-group .radio-group,
.wholesale-form-group .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.wholesale-form-group .radio-item,
.wholesale-form-group .checkbox-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 400;
}

/* =========================================================
   VALIDATION ERRORS
   ========================================================= */

.wholesale-form-group .validation-error {
    display: block;
    margin-top: 5px;
    color: #d93025;
    font-size: 12px;
    line-height: 1.4;
}

/* =========================================================
   CAPTCHA
   ========================================================= */

.wholesale-captcha-group {
    margin-top: 10px;
    margin-bottom: 25px;
}

#hcaptcha-wholesale-target {
    min-height: 78px;
}

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.wholesale-submit-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    min-height: 46px;
    padding: 12px 25px;
    border: none;
    border-radius: 3px;
    background: #e54c1f;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wholesale-submit-button:hover {
    background: #cf421a;
}

.wholesale-submit-button:disabled {
    background: #cfcfcf;
    color: #777;
    cursor: not-allowed;
}

/* =========================================================
   LOADER
   ========================================================= */

.wholesale-submit-button .loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wholesaleLoader 0.7s linear infinite;
}

@keyframes wholesaleLoader {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   FOOTER TEXT
   ========================================================= */

.wholesale-footer-text {
    margin-top: 30px;
    text-align: center;
}

.wholesale-footer-heading {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 600;
}

.wholesale-footer-subtext {
    margin: 0;
    color: #777;
    font-size: 13px;
}


/* Mobile */
@media (max-width: 767px) {

    .wholesale-request-form .wholesale-form-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

}
/* Wholesale Form Error Message Styling */
.field-error-msg {
  color: #dc3545; /* Red color */
  font-size: 14px;  /* Small font size */
  line-height: 1.3;
  margin-top: 4px;
  display: block;
}

/* Optional: Red border on invalid inputs */
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #dc3545 !important;
}

/* =========================================================
   WHOLESALE SUBMIT BUTTON
   ========================================================= */

.wholesale-request-form #wholesaleSubmitButton {
    display: flex !important;
    width: 120px !important;
    min-width: 420px !important;
    max-width: 420px !important;
    margin: 30px auto 0 !important;
    padding: 12px 15px !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .wholesale-request-form #wholesaleSubmitButton {
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        margin: 25px auto 0 !important;
    }

}


/* Unpackaged product label for front-end (cart, checkout) */
.unpackaged-label {
    color: #666 !important;
}

/* Unpackaged product label for admin view */
.unpackaged-label-admin {
    margin-top: 5px !important;
    font-style: italic;
    color: #666 !important;
}

/* Style to make the label a block element for a new line */
.unpackaged-label-line-break {
    display: block !important;
    color: #666 !important;
    font-size: small !important;
}

.loading-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Styles for error messages */
.error-message {
    color: red;
    display: none;
}

/* Styles for margins */
.mt-10 {
    margin-top: 10px;
}


.product-select-wrapper {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: -14px;}

.product-select-wrapper select {
  flex: 1;
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 15px;
}

.product-select-wrapper button {
  padding: 7px 13px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.product-select-wrapper button:hover {
  background-color: black;
}

#variation-container{
  margin-top: 10px;
}

#custom-add-to-cart-btn {
  line-height: 40px; 
}


.adding-to-cart {
  background-color: #bfbfbf !important;
}

.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.custom-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.custom-modal-close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}
.custom-modal-close:hover {
  color: #000;
}

.custom-slick-gallery {
  margin-top: 30px;
}

#wholesale-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wholesale-loader-content {
  background: #fff;
  padding: 20px 40px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: flex;
   align-items: center; 
   gap: 10px;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 4px solid #ccc;
  border-top: 4px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Hide Zota quick view modal permanently */
.tbay-modal-quickview,
.quickview-wrapper,
.quickview-loading {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  z-index: -9999 !important;
}

.product_meta{
  margin-top: 5px;
}

.label-with-spinner {
    display: flex;
    align-items: anchor-center;
    gap: 8px;
    margin-bottom: 4px;
}

.inline-spinner {
    display: none; 
}

.inline-spinner .spinner{
  width: 17px;
  height: 17px;
  margin-top: 5px;
}

.spinner.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 4px solid #ccc;
  border-top: 4px solid #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
  margin-bottom: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.price-details {
  font-size: 14 !important;
  margin-top: 10px;
}
.price-old {
  text-decoration: line-through;
  color: #999;
  font-size: 14px !important;
  margin-right: 6px;
}

.price-old {
  text-decoration: line-through;
  color: #999;
  margin-right: 6px;
}

.price-regular {
  color: #196e30cf !important;
}

#price-info.form-group {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.shipping-charges {
  margin-top: 8px;
  font-style: italic;
  font-weight: 500;
  color: #ff1a30;
}
.swiper,
.swiper-wrapper,
.swiper-slide {
  width: 100%;
  height: auto;
}
.swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin-top: 25px;
}
.swiper-button-next,
.swiper-button-prev {
  width: 27px;
  height: 38px;
  font-size: 16px;
  color: black;
  border-radius: 10%;
}

.product-gallery {
 --swiper-navigation-size: 27px;
}
#custom-product-modal-body {
  font-size: 14px; 
  color: #000;
}

#custom-product-modal-body ul li,
#custom-product-modal-body p,
#custom-product-modal-body .product_meta,
#custom-product-modal-body strong {
  font-size: 15px !important;
  color: #000 !important;
  line-height: 1.5;
  text-align: justify;
}

#custom-product-modal-body h2 {
  font-size: 18px !important;
  font-weight: bold !important;
  color: #000 !important;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .product-select-wrapper {
    flex-direction: column !important;
    margin-left: -10px;
    margin-right: 10px;
  }
  #product_dropdown,
  #view-product-btn {
    width: 100%;
  }
  #view-product-btn {
    margin-top: 10px;
  }
}

#packets_count,
#weight_pounds {
  display: none !important;
}

body.woocommerce-checkout .wc-block-components-product-metadata__description {
  display: none !important;
}

.page_content_wrap:has(#wholesale-request-form) {
    padding-top: 0 !important;
}