.wefix-hide {
	display:none;
}

BODY.e-preview--show-hidden-elements .wefix-hide{
	display:block!important;
}

.wefix-code-error {
	color:red;
}

.wefix-button[disabled] {
	background-color:#c7c7c7;
}

/* Search Suggestions Box */
.wefix_search_results_box {
	position: absolute;
	width: 100%;
	background: white;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
	display: none;
	z-index: 999;
	max-height: 250px;
	overflow-y: auto;
}

/* Customer Service Requests Styling */
#wefix-customer-requests-container {
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

#wefix-customer-requests-container .wefix-sr-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 8px;
    margin-bottom: 12px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    position: relative;
}

#wefix-customer-requests-container .wefix-sr-item-header {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

#wefix-customer-requests-container .wefix-sr-item-details {
    flex-basis: 100%;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

#wefix-customer-requests-container .wefix-sr-item.details-visible .wefix-sr-item-details {
    display: block;
}

#wefix-customer-requests-container .wefix-sr-project-desc {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.6;
}

#wefix-customer-requests-container .wefix-sr-interested-providers h4 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #222;
}

#wefix-customer-requests-container .wefix-sr-interested-providers ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#wefix-customer-requests-container .wefix-sr-interested-providers li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

#wefix-customer-requests-container .wefix-sr-interested-providers li:last-child {
    border-bottom: none;
}

#wefix-customer-requests-container .wefix-sr-interested-providers a {
    text-decoration: none;
    color: #0073aa;
}

#wefix-customer-requests-container .wefix-sr-interested-providers a:hover {
    text-decoration: underline;
}

#wefix-customer-requests-container .wefix-sr-item:last-child {
    margin-bottom: 0;
}

#wefix-customer-requests-container .wefix-sr-item::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 12px;
}

#wefix-customer-requests-container .wefix-sr-item.status-active::before {
    background-color: #4CAF50; /* Green for active requests */
}

#wefix-customer-requests-container .wefix-sr-item.status-pending::before {
    background-color: #FFC107; /* Yellow for pending if needed in the future */
}

#wefix-customer-requests-container .wefix-sr-item-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 8px;
}

#wefix-customer-requests-container .wefix-sr-status-text-closed, #wefix-customer-requests-container .wefix-sr-actions {
    cursor: default!important;
}

#wefix-customer-requests-container .wefix-sr-item.status-closed .wefix-sr-item-header {
    border-right-color: #F44336;
}

#wefix-customer-requests-container .wefix-sr-item.status-active .wefix-sr-item-header {
    border-right-color: #4CAF50;
}

#wefix-customer-requests-container .wefix-sr-item-details {
    padding: 0 15px 15px 15px;
    border-top: 1px solid #eee;
}

#wefix-customer-requests-container .wefix-sr-item.details-visible .wefix-sr-item-details {
    display: block;
}

#wefix-customer-requests-container .wefix-sr-item-details hr {
    width: 80%;
    margin: 20px auto;
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
}

#wefix-customer-requests-container .wefix-sr-project-desc {
    margin: 15px 0;
    color: #333;
    line-height: 1.6;
}

#wefix-customer-requests-container .wefix-sr-interested-providers h4 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #222;
}

#wefix-customer-requests-container .wefix-sr-interested-providers ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#wefix-customer-requests-container .wefix-sr-interested-providers li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

#wefix-customer-requests-container .wefix-sr-interested-providers li:last-child {
    border-bottom: none;
}

#wefix-customer-requests-container .wefix-sr-interested-providers a {
    text-decoration: none;
    color: #0073aa;
}

#wefix-customer-requests-container .wefix-sr-interested-providers a:hover {
    text-decoration: underline;
}

#wefix-customer-requests-container .wefix-sr-item.status-closed::before {
    background-color: #F44336; /* Red for closed requests */
}

#wefix-customer-requests-container .wefix-sr-date {
    font-size: 14px;
    color: #666;
    margin-right: 16px;
    min-width: 80px;
}

#wefix-customer-requests-container .wefix-sr-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    flex-grow: 1;
    margin-right: 10px;
}

#wefix-customer-requests-container .wefix-sr-city {
    font-size: 14px;
    color: #666;
    margin-left: auto;
    text-align: right;
}

.wefix-sp-requests-container .wefix-sp-interest-user {
    font-size: larger;
    padding:8px;
}

/* Arrow icon removed as requested */

/* Responsive styles */
@media (max-width: 768px) {
    #wefix-customer-requests-container .wefix-sr-item {
        padding: 10px 8px;
    }
    
    #wefix-customer-requests-container .wefix-sr-date {
        font-size: 13px;
        min-width: 70px;
    }
    
    #wefix-customer-requests-container .wefix-sr-title {
        font-size: 14px;
    }
    
    #wefix-customer-requests-container .wefix-sr-city {
        font-size: 13px;
    }
}

/* Search result items */
.wefix_search_result_item {
	padding: 10px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
	transition: background 0.2s;
}

.wefix_search_result_item:last-child {
	border-bottom: none;
}

.wefix_search_result_item:hover {
	background: #f5f5f5;
}

/* Styling for links */
.wefix_search_result_item a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
}

/* No results or loading message */
.wefix_search_no_results,
.wefix_search_loading {
	padding: 10px;
	color: #777;
	text-align: center;
}

.woocommerce-checkout #customer_details {
	display: none;
}

/* Custom Cart Styles */
.wefix-cart-table {
	max-width: 800px;
	margin: 0 auto;
}

.wefix-cart-table table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 2em;
	direction: rtl;
}

.wefix-cart-table th,
.wefix-cart-table td {
	padding: 12px;
	text-align: right;
	border-bottom: 1px solid #e5e5e5;
}

.wefix-cart-table .cart_totals {
	max-width: 400px;
	margin-left: auto;
}

.wefix-cart-table .cart_totals h2 {
	font-size: 1.4em;
	margin-bottom: 1em;
}

.wefix-cart-table .cart_totals table {
	margin-bottom: 0;
}

.wefix-cart-table .order-total {
	font-weight: bold;
	font-size: 1.1em;
	border-bottom: 2px solid #e5e5e5;
}

.wefix-cart-table .recurring-totals th {
	padding-top: 20px;
	font-size: 1.1em;
	text-align: center;
	background: #f8f8f8;
}

.wefix-cart-table .recurring-total {
	background: #f8f8f8;
}

.wefix-cart-table .recurring-total th {
	font-weight: normal;
}

.wefix-cart-table .recurring-total td {
	font-weight: bold;
}

.cart-empty.woocommerce-info {
	text-align: center;
	padding: 20px;
	background: #f7f7f7;
	border-radius: 4px;
}

/**Hide show products in teh profile subscription screen */
.woocommerce_account_subscriptions .no_subscriptions .woocommerce-Button {
	display:none;
}

/** Profile Galeery */
#wefix-profile-gallery-preview {
	display: grid; 
	grid-template-columns: repeat(4, 1fr); 
	gap: 10px; 
	margin-top: 20px;
	align-items: stretch; 
}

#wefix-profile-gallery-preview .profile-gallery-image-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%; 
}

#wefix-profile-gallery-preview .gallery-image {
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    text-align: center; 
}

#wefix-profile-gallery-preview .gallery-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#wefix-profile-gallery-preview .gallery-item-remove-wrapper {
    flex-shrink: 0;
    margin-top: auto; 
    padding-top: 10px;
    text-align: center;
}

.wefix-view-subscription-wrapper a.woocommerce-button {
	font-size: 100%;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding: .618em 1em;
    font-weight: 700;
    border-radius: 3px;
    right: auto;
    color: #515151;
    background-color: #e9e6ed;
    border: 0;
    display: inline-block;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
}

.wefix-view-subscription-wrapper a.button:hover {
	background-color: #dcd7e2;
    text-decoration: none;
    background-image: none;
    color: #515151;
}

/* Service Requests List Layout */
#wefix-sp-requests-container .wefix-sr-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}
#wefix-sp-requests-container .wefix-sr-item > div {
    margin-right: 16px;
}
#wefix-sp-requests-container .wefix-sr-actions {
    margin-left: auto;
}
@media (max-width: 768px) {
    #wefix-sp-requests-container .wefix-sr-item {
        flex-wrap: wrap;
    }
    #wefix-sp-requests-container .wefix-sr-item > .wefix-sr-date,
    #wefix-sp-requests-container .wefix-sr-item > .wefix-sr-title,
    #wefix-sp-requests-container .wefix-sr-item > .wefix-sr-city {
        width: 33.33%;
    }
    #wefix-sp-requests-container .wefix-sr-actions {
        width: 100%;
        margin-top: 8px;
        margin-left: 0;
    }
}

/* Service Requests Actions Buttons */
#wefix-sp-requests-container .wefix-sr-actions .btn-interest {
    background-color: #77DA7E;
    color: #004C99;
    border: 1px solid #77DA7E;
}
#wefix-sp-requests-container .wefix-sr-actions button {
    border-radius: 10px;
}

/* Disabled look for profile email and mobile fields */
#wefix_uprofile_editor input#form-field-uemail:disabled,
#wefix_uprofile_editor input#form-field-umobile:disabled {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 1;
}

.signup-button-disable {
    background-color: #c7c7c7!important;
    cursor: not-allowed;
    border: 1px solid #ccc;
    color: #999;
}

.wefix-sp-signup-standby-notice {
    color:red;
    font-weight: bold;
    padding:5px;
    flex-basis: 100%;
}

select.disabled-loading {
    /* make space for the spinner */
    padding-left: 2rem;
  
    /* spinner on the left, center-vertically */
    background:
      url('../img/spinner1.svg') no-repeat 1.5rem center,
      transparent;
  
    /* visually “disabled” styling */
    opacity: 0.6;
    cursor: not-allowed;
  
    /* (optional) ensure consistent appearance across browsers */
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
  }

button.but-disabled-loading {
    /* make room for spinner */
    padding-left: 2rem;
  
    /* gray background + spinner on the left */
    background:
      url('../img/spinner1.svg') no-repeat 1.5rem center,
      #ccc;
    color: #666;
  
    /* disabled look & feel */
    border: 1px solid #999;
    opacity: 0.6;
    cursor: not-allowed;
  
    /* normalize across browsers */
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
  }

/* Provider Reviews Frontend Styles */
.wefix-sp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.wefix-sp-review-item {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wefix-sp-review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.wefix-sp-review-item .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.wefix-sp-review-item .header .date {
    color: #888;
    font-size: 0.85em;
}
.wefix-sp-review-item .header .reviewer {
    font-weight: bold;
    color: #333;
}
.wefix-sp-review-item .header .stars {
    font-size: 1.1em;
    color: #ffb400;
}
.wefix-sp-review-item .subheader {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.wefix-sp-review-item .subheader .cat-rating {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    color: #555;
}
.wefix-sp-review-item .details {
    font-size: 0.95em;
    line-height: 1.6;
    color: #444;
    margin-top: 10px;
}

/** Service Provider Review Invite Form */
form#sp_review_invite_fr .elementor-field-group-customer_email, form#sp_review_invite_fr .elementor-field-group-customer_sms, form#sp_review_invite_fr .elementor-field-type-submit {
    display: none  ;
}

/** REVIEW FORM STYLING*/
/* 1) Flatten the span wrappers so inputs & labels are direct siblings */
#wfx_review_fr .elementor-field-subgroup .elementor-field-option {
    display: contents;
  }
  
  /* 2) Flex layout (DOM order 5→1, visual 1→5), center‐aligned, super-tight gap */
  #wfx_review_fr .elementor-field-subgroup {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 0.05em;            /* ≈1px at 2rem */
  }
  
  /* 3) Visually hide the native radios but keep for A11y */
  #wfx_review_fr .elementor-field-subgroup input[type="radio"] {
    position: absolute;
    width: 1px; 
    height: 1px;
    margin: -1px; 
    padding: 0;
    border: 0; 
    clip: rect(0 0 0 0);
    overflow: hidden;
  }
  
  /* 4) Style labels as star containers (hides any literal “☆” text) */
  #wfx_review_fr .elementor-field-subgroup label {
    position: relative;
    font-size: 2rem;       /* star size */
    color: transparent;    /* hide the HTML ☆ */
    cursor: pointer;
    margin: 0; 
    padding: 0;
    line-height: 1;
  }
  
  /* 5) Draw the empty star via ::before */
  #wfx_review_fr .elementor-field-subgroup label::before {
    content: "\2606";      /* ☆ */
    color: #ccc;
    display: inline-block;
    line-height: 1;
  }
  
  /* 6) Preview (on hover) & persist (on click) 
       fill the hovered/selected star + all stars “before” it */
  #wfx_review_fr .elementor-field-subgroup label.hover::before,
  #wfx_review_fr .elementor-field-subgroup label.hover ~ label::before,
  #wfx_review_fr .elementor-field-subgroup label.selected::before,
  #wfx_review_fr .elementor-field-subgroup label.selected ~ label::before {
    content: "\2605";      /* ★ */
    color: gold;
  }
  
  /* 7) Tighter vertical spacing between each rating group */
  #wfx_review_fr .elementor-field-type-radio.elementor-field-group {
    margin-bottom: 0.25em;
  }
  
 

/** END REVIEW FORM STYLING */

/** NEW Service Request Desing in SP  Profile */
/* Unified CSS for Collapsed and Expanded “wefix-sr2-request-item” States */

  .wefix-sr2-request-item {
    direction: rtl;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  /* Header: meta + title */
  .wefix-sr2-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
  }
  .wefix-sr2-meta-small {
    font-size: 12px;
    color: #999;
  }
  .wefix-sr2-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
  }
  
  /* Body (free-text description) */
  .wefix-sr2-body {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  
  /* Extra labeled data (price range, client hours) */
  .wefix-sr2-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
  }
  .wefix-sr2-extra-item {
    font-size: 14px;
    color: #555;
  }
  .wefix-sr2-extra-item strong {
    font-weight: 600;
  }
  
  /* Actions row (buttons) */
  .wefix-sr2-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
  }
  .wefix-sr2-btn {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
  }
  
  /* Collapsed-state buttons */
  .wefix-sr2-btn--primary {
    background-color: #6CC070;
    color: #fff;
    border-color: #6CC070;
  }
  .wefix-sr2-btn--primary:hover {
    background-color: #5bb35f;
    border-color: #5bb35f;
  }
  .wefix-sr2-btn--secondary {
    background-color: transparent;
    color: #E84545;
    border-color: #E84545;
  }
  .wefix-sr2-btn--secondary:hover {
    background-color: rgba(232,69,69,0.1);
  }
  
  /* Expanded-state banner */
  .wefix-sr2-await-note {
    font-size: 13px;
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 12px;
    text-align: center;
  }
  
  /* Expanded-state client info */
  .wefix-sr2-client-section {
    background: #f1f8ff;
    border: 1px solid #cce5ff;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
  }
  .wefix-sr2-client-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
  }
  .wefix-sr2-contact-link {
    font-size: 15px;
    color: #0056b3;
    text-decoration: none;
    margin-left: 16px;
  }
  .wefix-sr2-contact-link:hover {
    text-decoration: underline;
  }

  .wefix-sr2-contact-link.phone img{
    filter:
      grayscale(1)            /* remove original colors */
      brightness(0)           /* make it fully black */
      invert(12%)             /* shift toward red base */
      sepia(90%)              /* warm up */
      saturate(7500%)         /* intensify */
      hue-rotate(358deg)      /* land on true red */
      brightness(95%)         /* lighten slightly */
      drop-shadow(0 0 1px rgb(0, 0, 0))   /* 1px red outline */
      drop-shadow(0 0 1px rgb(0, 0, 0))   /* double up for solidity */
    ;
  }

  .wefix-sr2-contact-link.email img { 
    filter:
      drop-shadow(0 0 1px black)  /* 1px black outline */
      drop-shadow(0 0 1px black)  /* double up for solidity */
    ;
  }
  
  /* Expanded-state buttons */
  .wefix-sr2-btn--complete, .wefix-sr2-btn--complete:focus {
    background-color: #bdd7ee;    /* light blue */
    border-color:   #bdd7ee;
    color:          #0d3b66;      /* dark slate blue */
  }
  .wefix-sr2-btn--complete:hover {
    background-color: #a3c9e3;
    border-color:   #a3c9e3;
  }


  .wefix-sr2-btn--decline:hover {
    background-color: #eebfc2;
    border-color:   #eebfc2;
  }

  /* Disabled state for all wefix-sr2 buttons */
  .wefix-sr2-btn:disabled,
  .wefix-sr2-btn[disabled] {
    opacity: 0.6;                   /* visually dim the button */
    background-color: #e0e0e0 !important;  /* neutral grey background */
    border-color:     #e0e0e0 !important;  /* match border to background */
    color:            #888 !important;     /* muted text color */
    cursor:           not-allowed; /* show the not-allowed cursor */
    pointer-events:   none;        /* prevent any interaction */
  }
    
    /* Footer note (collapsed only) */
    .wefix-sr2-footer-note {
      font-size: 12px;
      color: #777;
      text-align: center;
    }

    /* Container for thumbnails */
.wefix-sr2-images {
  display: flex;
  flex-wrap: wrap;
  /*justify-content: center;*/
  gap: 12px;
  margin-bottom: 12px;
  /* ensure no extra line-height around inline elements */
  line-height: 0;
}

/* Each link wraps a fixed-size thumbnail */
.wefix-sr2-images a {
  display: inline-block;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* The image fills its container, cropping to fit */
.wefix-sr2-images .wefix-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover/focus state for better affordance */
.wefix-sr2-images a:hover,
.wefix-sr2-images a:focus {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}



    
    /* Responsive: stack elements on small screens */
    @media (max-width: 600px) {
      .wefix-sr2-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
      }
      .wefix-sr2-extra {
        flex-direction: column;
      }
      .wefix-sr2-actions {
        flex-direction: column;
      }
      .wefix-sr2-btn {
        width: 100%;
        text-align: center;
      }

      .wefix-sr2-images {
        gap: 8px;
      }
      .wefix-sr2-images a {
        width: 60px;
        height: 60px;
      }
    }
   

/** END */

/* Customer Requests List Enhancements */
#wefix-customer-requests-container .wefix-sr-title .wefix-sr-city-inline {
    font-weight: normal;
    font-size: 0.95em;
    color: #555;
}

#wefix-customer-requests-container .wefix-sr-actions {
    margin-left: auto;
    padding-left: 15px;
    flex-shrink: 0; /* Prevent shrinking */
}

#wefix-customer-requests-container .wefix-sr-status-text-closed {
    font-weight: 600;
    color: #888;
    font-size: 14px;
}

.wefix-customer-request-close-btn {
    background-color: #f5f5f5;
    color: #757575;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    line-height: 1.5;
}

.wefix-customer-request-close-btn:hover {
    background-color: #d32f2f;
    color: white;
    border-color: #d32f2f;
}