/* ========================================
   SHARED COMPONENT RESET
   Neutralizes combined.css and template CSS damage
   for booking UI and account management.
   Loaded by ALL templates.
   ======================================== */

/* --- Typography reset --- */
#appointments,
#customer_profile {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
}

#appointments p,
#customer_profile p {
    font-size: 14px;  /* undo combined.css p { font-size: 20px } */
}

#appointments h1, #appointments h2, #appointments h3,
#appointments h4, #appointments h5, #appointments h6,
#customer_profile h1, #customer_profile h2, #customer_profile h3,
#customer_profile h4, #customer_profile h5, #customer_profile h6 {
    font-family: inherit;
    text-transform: none;       /* undo combined.css uppercase */
    font-weight: 500;
}

#appointments section h2,
#customer_profile section h2 {
    font-size: 1.5rem;          /* undo combined.css section h2 { font-size: 23px } */
    display: block;
    padding: 0;
    border: none;
    margin-bottom: 0.5rem;
}

/* --- Button reset (undo combined.css .btn-primary destruction) --- */
#appointments .btn-primary,
#customer_profile .btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    font-size: 1rem;
    padding: 0.375rem 0.75rem;
    height: auto;
    line-height: 1.5;
    border-radius: 0.375rem;
    font-weight: 400;
    text-transform: none;
    transform: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#appointments .btn-primary:hover,
#customer_profile .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: none;
}

/* --- Form controls --- */
#appointments .form-control,
#customer_profile .form-control {
    margin-bottom: 0;           /* undo combined.css .form-control { margin-bottom: 20px } */
    border-top-left-radius: 0.375rem;  /* undo combined.css border-radius removal */
}

/* --- Row margin fix --- */
#appointments .row,
#customer_profile .row {
    margin: 0;                  /* keep combined.css .row { margin: 0 } -- this is fine */
}

/* --- Customer profile specific --- */
#customer_profile .btn,
#customer_profile .btn-sm,
#customer_profile .btn-xs {
    background-image: none;
    text-shadow: none;
    border-radius: 4px;
    text-transform: none;
    letter-spacing: normal;
    line-height: normal;
    vertical-align: middle;
}

/* Font Awesome in customer profile buttons */
#customer_profile .btn i,
#customer_profile .btn .fa,
#customer_profile .btn .fas {
    display: inline-block;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 4px;
    font-size: inherit;
}

/* --- Mobile reset (undo combined.css mobile btn-primary shrink) --- */
@media (max-width: 768px) {
    #appointments .btn-primary,
    #customer_profile .btn-primary {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
        height: auto;
        line-height: 1.5;
    }
}
