/*
 Theme Name:   My Listing Child
 Theme URI:    http://mylisting.27collective.net/my-city/
 Description:  MyListing Child Theme
 Author:       27collective
 Author URI:   https://27collective.net/
 Template:     my-listing
 Version:      1.2.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         one-column, two-columns, three-columns, left-sidebar, right-sidebar, grid-layout, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  my-listing-child
*/


/*Grey out Non-editable User account details*/

input[readonly] {
    background-color: #f9f9f9;
    border-color: #ddd;
    color: #333;
}

/*Pending Approval template styles*/

.pending-approval {
    text-align: center;
    padding: 50px;
}

.pending-approval .page-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.pending-approval .page-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pending-approval .button {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.pending-approval .button:hover {
    background-color: #005f7a;
}

/*Automatic Renewal Toggle*/

/* Toggle Switch Container */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    margin-left: 10px;
}

/* Hide the default checkbox */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Toggle Slider */
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

/* Toggle Circle */
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* When Checked */
.toggle-switch input:checked + .toggle-slider {
    background-color: #4caf50;
}

/* Move Circle When Checked */
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(14px);
}

/*Auto-renew Popup styles*/
#auto-renew-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#auto-renew-popup .popup-content {
    text-align: center;
}

#auto-renew-popup h2 {
    margin-bottom: 15px;
}

#auto-renew-popup select {
    margin-bottom: 15px;
    width: 100%;
    padding: 5px;
}

#auto-renew-popup button {
    margin-right: 10px;
}

.promocionar-link-container {
    margin-top: 10px; /* Add spacing between sections */
}

.promocionar-link {
    display: inline-block;
    background-color: #0073aa; /* Button color */
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.promocionar-link:hover {
    background-color: #005a87; /* Darker shade on hover */
}

/*Hide the Auto-renewal credits in the popup*/

#promo-modal .promo-product-item[data-package-id="346"], #promo-modal .promo-product-item[data-package-id="3326"] {
    display: none;
}

#phone-numbers-content-dump {
    display: none;
}

li.ml-track-btn[data-phone-added=false] {
    display: none;
}

/*Hide quick actions if their href value has not been modified*/

.quick-listing-actions a[href="https://api.whatsapp.com/send?phone=34undefined"], .quick-listing-actions a[href="https://api.whatsapp.com/send?phone=34"], .quick-listing-actions a[href="tel:+34undefined"], .quick-listing-actions a[href="tel:+34"], .quick-listing-actions a[href="tel:34undefined"], .quick-listing-actions a[href="https://t.me/34undefined"], .quick-listing-actions a[href="https://t.me/+34"] {
    display: none;
}

/*Registration form submit button disabling*/

.disabled-button {
    pointer-events: none !important;
    opacity: 0.5 !important;
}

/*Email confirmation error message*/

.emails-error-message {
    padding: 0px 10px;
    width: max-content;
}

.emails-error-message p {
    margin-bottom: 0;
    color: red;
}


/*Changing icon for free promotion*/
.job-dashboard-actions a.listing-action-switch:before {
    content: "\e994" !important;
}

/*Disable editing email in the Edit listing form*/

.edit-listing-form .fieldset-correo-electrnico {
    pointer-events: none;
}

/*Free listing preview edits*/

.lf-item-container.free-renewal-active .lf-head-btn.ad-badge::after {
    content: "Renueva Gratis";
}

.lf-item-container.free-renewal-active .level-promoted .ad-badge:not(.auto-renew-badge) {
    background: green;
    border-color: green;
    color: white;
}


