/*
 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.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
*/

/* ============================================================
   GLOBAL SLIM HEADER - "OrthodontistNearMe" SaaS Navigation
   ============================================================ */

:root {
    --primary-blue: #2563eb;
    --primary-teal: #0d9488;
    --primary-amber: #f59e0b;
    --slate-gray: #64748b;
    --border-color: #e2e8f0;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Hide the old MyListing header entirely */
.c27-main-header,
.c27-top-content-margin {
    display: none !important;
}

/* Slim Top Nav - Handled in header-drawer.css */
/* Mobile Sidebar Drawer Navigation - Handled in header-drawer.css */
/* Side Drawer - Handled in header-drawer.css */

/* Remove "Add Location" button and limit to 1 location */
.add-location,
.location-count-wrapper,
.mylisting-add-location-button,
.add-new-location,
.location-add-more,
.ml-map-add-location {
    display: none !important;
}

/* ============================================================
   WOOCOMMERCE CHECKOUT BRANDING - SaaS Style
   ============================================================ */

.woocommerce-checkout {
    font-family: var(--font-family);
    color: var(--text-main);
}

.woocommerce-checkout .container {
    max-width: 1170px;
    margin: 0 auto;
}

.woocommerce-checkout h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* Form Fields */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
}

.woocommerce-checkout .form-row label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.woocommerce-checkout .form-row input.input-text:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Order Summary Box */
#order_review_heading {
    margin-top: 40px;
}

#order_review {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.woocommerce-checkout-review-order-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 24px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.woocommerce-checkout-review-order-table .order-total {
    border-bottom: none;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-blue);
}

/* Payment Section */
#payment {
    background: transparent !important;
    border: none !important;
}

#payment ul.payment_methods {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
}

#payment div.payment_box {
    background: var(--bg-light) !important;
    border-radius: 10px !important;
    padding: 16px !important;
    font-size: 14px !important;
    color: var(--text-muted) !important;
}

#payment div.payment_box::before {
    display: none !important;
}

/* Place Order Button */
#place_order {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 18px 32px !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

/* ============================================================
   ULTRA-CLEAN SaaS CHECKOUT RESET
   ============================================================ */

.woocommerce-checkout {
    background-color: #f3f4f6 !important;
    padding: 60px 0 !important;
}

.woocommerce-checkout #c27-site-wrapper>div,
.woocommerce-checkout main,
.woocommerce-checkout .content-area,
.woocommerce-checkout .site-main,
.woocommerce-checkout .col-md-10,
.woocommerce-checkout .col-md-12 {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    left: 0 !important;
}

/* Layout Fix: Flexbox 2-Column Grid */
.woocommerce-checkout .container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 20px !important;
    display: block !important;
}

.woocommerce-checkout form.checkout {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    align-items: flex-start !important;
    justify-content: center !important;
    /* Center the columns */
}

@media (min-width: 992px) {
    #customer_details {
        flex: 1 1 600px !important;
        margin: 0 !important;
        float: none !important;
    }

    #order_review_heading {
        display: none !important;
        /* redundant in this layout */
    }

    #order_review {
        flex: 0 0 450px !important;
        width: 450px !important;
        margin: 0 !important;
        float: none !important;
        position: sticky !important;
        top: 20px;
    }
}

@media (max-width: 991px) {

    #customer_details,
    #order_review {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
}

/* Form Box Styling */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
#order_review {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 20px !important;
}

.woocommerce-additional-fields,
.woocommerce-checkout h3#order_review_heading {
    display: none !important;
}


/* THE FIX: Force labels and inputs to stay stacked and 100% width */
.woocommerce-checkout .form-row {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout .form-row label {
    display: block !important;
    width: 100% !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-bottom: 8px !important;
    text-align: left !important;
}

.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select {
    display: block !important;
    width: 100% !important;
    height: 50px !important;
    padding: 0 15px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

/* Order Summary Refinement */
.shop_table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border: none !important;
}

.shop_table th,
.shop_table td {
    padding: 15px 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.order-total th,
.order-total td {
    font-size: 24px !important;
    color: #2563eb !important;
    border: none !important;
}

/* Button Refinement */
#place_order {
    padding: 20px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
}

#place_order:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3) !important;
}
}

/* End .woocommerce-checkout */

/* ============================================================
   LISTING FORM BUTTONS - Add/Edit Listing Page
   ============================================================ */
.listing-form-submit-btn {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.listing-form-submit-btn .buttons {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 58px !important;
    min-width: 220px !important;
    padding: 0 32px !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-transform: none !important;
    gap: 12px !important;
    border: none !important;
    white-space: nowrap !important;
}

.listing-form-submit-btn .buttons i,
.listing-form-submit-btn .buttons svg {
    font-size: 20px !important;
}

.listing-form-submit-btn .button-2 {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.25) !important;
}

.listing-form-submit-btn .button-5 {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 2px solid #eff6ff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.listing-form-submit-btn .buttons:hover {
    transform: translateY(-3px) !important;
}

.listing-form-submit-btn .button-2:hover {
    box-shadow: 0 15px 25px -3px rgba(37, 99, 235, 0.35) !important;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
}

.listing-form-submit-btn .button-5:hover {
    background: #f8fafc !important;
    border-color: #dbeafe !important;
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 600px) {
    .listing-form-submit-btn {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .listing-form-submit-btn .buttons {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}

/* Spacing after section */
#form-section-submit,
.form-section-wrapper.form-footer,
#form-section-submit .pf-body,
#form-section-submit .form-section {
    padding-bottom: 10px !important;
    margin-bottom: 0 !important;
}

.i-section {
    padding-bottom: 80px !important;
}

/* footer.footer {
    margin-top: 40px !important;
} */

@media (max-width: 480px) {
    .ml-child-header-site-logo {
        max-height: 42px !important;
    }

    .slim-nav-brand span {
        font-size: 13px !important;
    }

    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* ============================================================
   TIER-BASED LISTING STYLES (Free vs Paid)
   ============================================================ */

/* Paid Listing Highlight - Light blue tint for the profile area */
.is-paid-listing #c27-single-listing {
    background: #f8fafc;
}

.is-paid-listing .profile-header,
.is-paid-listing .profile-body {
    background: #f0f7ff !important;
    /* Soft light blue tint */
}

/* Free Listing - Clean standard look */
.is-free-listing .profile-header,
.is-free-listing .profile-body {
    background: #ffffff !important;
}

/* Registration & Guidance Animations */
.onboarding-guidance {
    animation: slideInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Upgrade Prompt Button Hover */
.upgrade-prompt-wrapper a.button-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4) !important;
    color: #fff !important;
}

.upgrade-prompt-wrapper a.button-5:hover {
    background: #f8fafc !important;
    border-color: #3b82f6 !important;
}



/* 
    html body #form-section-location,
    li#form-section-location-nav {
        display: none !important;
    }
    */

/* ============================================================
   LOGO STYLING - SaaS Navigation
   ============================================================ */
.ml-child-header-site-logo {
    display: block;
    max-width: 100%;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
}


/* ============================================================
   FOR PROVIDERS PAGE - Gutenberg Block Styling
   ============================================================ */
.onm-hero-block,
.hero {
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(160deg, #f0f7ff 0%, #ffffff 50%, #f0fdf4 100%) !important;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    overflow: visible !important;
}

.onm-block-section {
    padding: 100px 20px;
}

.onm-hero-block {
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(160deg, #f0f7ff 0%, #ffffff 50%, #f0fdf4 100%);
    padding: 120px 20px !important;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    overflow: visible !important;
}

.onm-hero-block * {
    pointer-events: auto !important;
}

.onm-hero-block .wp-block-buttons,
.onm-hero-block .wp-block-button {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.onm-hero-heading {
    font-family: 'DM Serif Display', serif !important;
    font-size: 56px !important;
    line-height: 1.1 !important;
    color: #0f172a;
    position: relative;
    z-index: 10;
}

.onm-hero-heading em {
    font-style: italic;
    color: #2563eb;
}

/* Force all Gutenberg buttons to be clickable */
.wp-block-button__link {
    position: relative !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
}

/* Disable hover text color change */
.wp-block-button__link:hover {
    color: inherit !important;
}

.onm-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.onm-stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 42px;
    color: #2563eb;
    line-height: 1;
    margin-bottom: 8px;
}

.onm-feat-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.onm-feat-card:hover {
    border-color: #2563eb;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1);
    transform: translateY(-5px);
}

.onm-pricing-card {
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 28px;
    padding: 60px 40px 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
    max-width: 500px;
    margin: 40px auto;
    position: relative;
}

.onm-pricing-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.onm-pricing-disclaimer {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 25px !important;
    display: block;
}

.onm-faq-details summary {
    list-style: none;
    padding: 25px 0;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 19px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0f172a;
    transition: color 0.2s;
}

.onm-faq-details summary:hover {
    color: #2563eb;
}

.onm-faq-details summary::-webkit-details-marker {
    display: none;
}

.onm-faq-details summary::after {
    content: '+';
    color: #94a3b8;
    font-size: 24px;
    font-weight: 300;
}

.onm-faq-details[open] summary::after {
    content: '×';
    color: #2563eb;
}

.onm-faq-content {
    padding: 10px 0 30px;
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
    border-bottom: 1px solid #e2e8f0;
}

.onm-cta-box {
    background: #2563eb;
    padding: 80px 40px;
    border-radius: 24px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.2);
    margin-top: 40px;
}

a.btn-hero {
    text-decoration: none;
    justify-content: center;
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 10px;
}

.btn-hero.btn-hero-primary:hover {
    color: #fff !important
}

.onm-cta-box h2 {
    color: #fff !important;
    font-family: 'DM Serif Display', serif !important;
    font-size: 42px !important;
    margin-bottom: 20px !important;
}

.onm-cta-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin-bottom: 35px;
}

.fieldset-city.field-type-term-select.form-group.term-type-single-select,
.fieldset-region.field-type-term-select.form-group.term-type-single-select,
.location-actions {
    display: none;
}


.woocommerce-shipping-fields {
    display: none;
}

.woocommerce-billing-fields h3 {
    font-size: 18px !important;
}

.add-listing-step #submit-job-form {
    padding-bottom: 0 !important;
}

.listing-form-submit-btn {
    justify-content: center !important;
    gap: 20px;
}

/* My Listings dashboard: Resume / Delete icons swapped to Material Icons
   because Icomoon / Font Awesome 5 Free aren't loaded on this page. */
.cts-listing-action-resume a::before {
    font-family: "Material Icons" !important;
    content: "play_circle_outline" !important;
    font-weight: normal !important;
    font-style: normal !important;
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}
.job-dashboard-action-delete::before,
.cts-listing-action-delete a::before {
    font-family: "Material Icons" !important;
    content: "delete_outline" !important;
    font-weight: normal !important;
    font-style: normal !important;
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

/* Edit listing "Your changes have been saved." banner — same icon-font
   fallback fix as above. */
#submit-job-form .job-manager-message::before,
.c27-submit-listing-form .job-manager-message::before,
.job-manager-message.job-manager-message::before {
    font-family: "Material Icons" !important;
    content: "check_circle" !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #10b981 !important;
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}
.job-manager-message.job-manager-error::before {
    content: "error_outline" !important;
    color: #dc2626 !important;
}

.page-id-1603 .pricing-card{
	width: 100%;
}
#c27-single-listing{
	background-color:#fff!important;
}

#c27-single-listing ul.no-list-style li.c27-listing-call {
    margin: 15px auto;
	padding-left: 15px;
}