/* ==========================================================================
   08-providers-facet-nextpatient.css
   Provider search, FacetWP, NextPatient widget overrides
   Extracted from aqua.css §1 (search), §2–§8, §13, §20
   ========================================================================== */

/* ==========================================================================
   SEARCH RESULTS PAGE
   ========================================================================== */

/* Search Pagination */
.fa-angle-right:before {
    color: #333;
}
.fa-angle-left:before {
    color: #333;
}

.search-results .pagination li.page-next a, .search-results .pagination li.page-prev a  {
	background: transparent !important;
}

.search-results .pagination .page-prev span.btn-disable-hover {
	display:none !important;
}

.search-results .post-content article + article {
    margin: 0px 0px 0px 0px;
}

/* 2-Column Search Results Grid CSS */
.search-results .post-body .row-parent:not(.row-navigation) {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-results .post-body article {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
}

.search-results .post-body article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.search-results .post-body .entry-header {
    margin-bottom: 16px;
}

.search-results .post-body .entry-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.search-results .post-body .entry-title a {
    color: var(--uncode-palette-color-916765);
    text-decoration: none;
}

.search-results .post-body .entry-title a:hover {
    text-decoration: underline;
    color: var(--uncode-palette-color-916765);
}

.search-results .post-body .entry-summary {
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

/* Add "Read more" links after each excerpt */
.search-results .post-body .entry-summary::after {
    content: 'Read more →';
    display: block;
    margin-top: 16px;
    color: var(--uncode-palette-color-916765);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-results .post-body .entry-summary:hover::after {
    color: var(--uncode-palette-color-916765);
}

/* Category tags */
.search-results .post-body .category_service-cosmetic .entry-header::before {
    content: 'Cosmetic';
    display: block;
    background: #e5e7eb;
    color: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 8px;
    width: fit-content;
}

.search-results .post-body .category_service-medical .entry-header::before {
    content: 'Medical';
    display: block;
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 8px;
    width: fit-content;
}

.search-results .post-body .category-blog .entry-header::before {
    content: 'Blog';
    display: block;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 8px;
    width: fit-content;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-results .post-body .row-parent:not(.row-navigation) {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .search-results .post-body article {
        padding: 20px;
    }
    
    .search-results .post-body .entry-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .search-results .post-body .row-parent:not(.row-navigation) {
        padding: 12px;
    }
    
    .search-results .post-body article {
        padding: 16px;
    }
}

/* ==========================================================================
   FACET WP SELECTIONS
   ========================================================================== */

.fwpl-col.el-ymt9ah {
  /* This is the container that will detect hover for the entire card */
}

/* Style the image container for overflow handling */
.fwpl-item.el-dt925u {
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Style the image link */
.fwpl-item.el-dt925u a {
  display: block;
  overflow: hidden;
}

/* Style the image for smooth transitions */
.fwpl-item.el-dt925u img {
  transition: transform 0.3s ease, filter 0.3s ease;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover effect triggered by hovering ANYWHERE on the entire card */
.fwpl-col.el-ymt9ah:hover .fwpl-item.el-dt925u img {
  transform: scale(1.1); /* Zoom in by 10% */
  filter: brightness(0.9); /* Darken by 10% */
}

/* Optional: Add subtle shadow to image container when card is hovered */
.fwpl-col.el-ymt9ah:hover .fwpl-item.el-dt925u {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Ensure all buttons and links remain fully clickable */
.fwpl-item.el-es29kh a,
.fwpl-item.el-xcdz5j a,
.fwpl-item.el-1jdxae a,
.fwpl-item.el-dt925u a {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.facetwp-selections ul::before {
    display: inline-block;
    content: 'Your Selections: ';
    font-weight: bold;
}

.facetwp-selections li {
    display: inline-block;
    line-height: 1;
    padding: 8px 16px;
    margin: 0px 6px;
    border-radius: 4px;
    background: #f8f8f8;
    font-size: 18px;
}

.facetwp-selections .facetwp-selection-value {
    color: var(--uncode-palette-color-916765);
}

.facetwp-selections .facetwp-selection-label {
    display: none;
}

/* ==========================================================================
   PROVIDER GRID LAYOUT - MAIN STRUCTURE
   ========================================================================== */

/* Target the main layout container */
.fwpl-layout.el-ptvr9j {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Target each result card */
.fwpl-layout.el-ptvr9j .fwpl-result {
    background: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Target the row inside each result */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-row.el-yqt486 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Target the column container */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-row.el-yqt486 .fwpl-col.el-ymt9ah {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

/* Target the image container */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-dt925u {
    text-align: center;
    margin-bottom: 16px;
	overflow: hidden;
	position: relative;
}

.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-dt925u:before {
	content: '';
	position: absolute;
	display: block;
	inset: 0;
	background: #000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: all 0.3s ease 0.1s;
	z-index: 2;
}

/* Target the images */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-dt925u img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover;
	transition: transform 1s ease;
}

.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-dt925u:hover img {
	 transform: scale(1.1);
}
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-dt925u:hover:before {
	opacity: 0.2;
	visibility: visible;
}


/* Target the name container */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-es29kh {
    text-align: center;
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

/* Target the name heading */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-es29kh h3.h6 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Target the name link */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-es29kh h3.h6 a {
    text-decoration: none;
    color: inherit;
}

.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-es29kh h3.h6 a:hover {
    color: var(--uncode-palette-color-916765) ;
}

/* Target the View button container */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-xcdz5j.view-more {
    margin-bottom: 12px;
    margin-top: 0;
    width: 100%;
}

/* Target the Book Appointment button container */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-1jdxae.book {
    margin-bottom: 0;
    width: 100%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .fwpl-layout.el-ptvr9j {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .fwpl-layout.el-ptvr9j .fwpl-result {
        padding: 16px;
    }
    
    .fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-dt925u img {
        width: 100% !important;
    }
}

/* ==========================================================================
   NEXTPATIENT WIDGETS - PRIMARY
   ========================================================================== */

/* NEXTPATIENT APPOINTMENT BOOKING WIDGET */
#nextpatient-widget\.1.aqua-book-appt,
.aqua-book-appt {
    font-family: inherit;
    line-height: 1.6;
}

.nextpatient-provider-table .nextpatient-provider-image-cell {
	
}
.aqua-book-appt .nextpatient-provider-table .nextpatient-provider-image-cell {
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
}

/* SEARCH CRITERIA FORM */
.aqua-book-appt .nextpatient-criteria-container {
    margin-bottom: 30px;
}

.aqua-book-appt .nextpatient-criteria-box {
    margin-bottom: 20px;
}

.aqua-book-appt .nextpatient-criteria-label label {
    font-size: 0.9em;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
    display: block;
}

.aqua-book-appt .nextpatient-criteria-input select,
.aqua-book-appt .nextpatient-criteria-input input[type="text"],
.aqua-book-appt .nextpatient-criteria-input input[name="age"],
.aqua-book-appt .nextpatient-criteria-input input[name="zip"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 1em;
    background: white;
    color: #333333;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.aqua-book-appt .nextpatient-criteria-input select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.aqua-book-appt .nextpatient-criteria-input input[type="submit"] {
    background-color: var(--uncode-palette-color-210407);
    color: white;
    border: 2px solid var(--uncode-palette-color-210407);
    padding: 12px 24px;
    border-radius: 28px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
}

.aqua-book-appt .nextpatient-criteria-input input[type="submit"]:hover {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%), var(--uncode-palette-color-210407);
    border-color: var(--uncode-palette-color-210407);
    color: white;
    transform: none;
    box-shadow: none;
}

.aqua-book-appt .nextpatient-criteria-input input:hover,
.aqua-book-appt .nextpatient-criteria-input select:hover {
    border-color: var(--uncode-palette-color-916765);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.aqua-book-appt .nextpatient-criteria-input input:focus,
.aqua-book-appt .nextpatient-criteria-input select:focus {
    outline: none;
    border-color: var(--uncode-palette-color-916765);
    box-shadow: 0 0 0 3px rgba(0, 84, 154, 0.1);
}

/* PROVIDER RESULTS */
.aqua-book-appt .nextpatient-provider-table {
    margin-top: 30px;
}

.aqua-book-appt .nextpatient-provider {
    margin-bottom: 30px;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: white;
    display: flex;
    align-items: flex-start;
}

.aqua-book-appt .nextpatient-provider:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: var(--uncode-palette-color-916765);
}

.aqua-book-appt .nextpatient-provider-image-cell {
    width: 140px;
    height: 140px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.aqua-book-appt .nextpatient-provider-provider-cell {
    flex: 1;
    padding: 24px 28px;
}

.aqua-book-appt .nextpatient-provider-name-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.aqua-book-appt .nextpatient-provider-name-block-left {
    display: none; /* Hide small photo since we have the large one */
}

.aqua-book-appt .nextpatient-provider-name-block-right {
    flex: 1;
}

.aqua-book-appt .nextpatient-provider-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.aqua-book-appt .nextpatient-provider-address {
    color: #6c757d;
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 6px;
}

.aqua-book-appt .nextpatient-provider-address em {
    color: var(--uncode-palette-color-916765);
    font-weight: 600;
    font-style: normal;
}

.aqua-book-appt .nextpatient-provider-age-range {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 6px;
}

.aqua-book-appt .nextpatient-provider-blurb {
    margin-bottom: 4px;
}

.aqua-book-appt .nextpatient-provider-blurb a {
    color: var(--uncode-palette-color-916765);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
}

.aqua-book-appt .nextpatient-provider-blurb a:hover {
    text-decoration: underline;
}

/* APPOINTMENT TIME SLOTS - FIXED BACKGROUND ISSUE */
.aqua-book-appt .nextpatient-provider-times {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.aqua-book-appt .nextpatient-provider-times > div {
    display: inline-block !important;
    vertical-align: top !important;
    margin: 0 !important;
}

.aqua-book-appt .nextpatient-slot-time {
    padding: 16px 20px !important;
    background: linear-gradient(135deg, var(--uncode-palette-color-206917) 0%, #e8e8e8 100%) !important;
    border: none !important;
    border-radius: 4px !important;
    color: var(--uncode-palette-color-589256) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    min-width: 120px;
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

.aqua-book-appt .nextpatient-slot-time:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--uncode-palette-color-916765) 0%, #0066bb 100%) !important;
    color: white !important;
}

.aqua-book-appt .nextpatient-slot-time-day {
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
    display: block;
}

.aqua-book-appt .nextpatient-slot-time-time {
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

.aqua-book-appt .nextpatient-slot-time-more {
    background: linear-gradient(135deg, var(--uncode-palette-color-916765) 0%, #0066bb 100%) !important;
    color: white !important;
    font-style: italic;
    font-size: 1.1em;
    padding: 16px 24px !important;
}

.aqua-book-appt .nextpatient-slot-time-more:hover {
    background: linear-gradient(135deg, var(--uncode-palette-color-916765) 0%, var(--uncode-palette-color-916765) 100%) !important;
}

/* CALL TO SCHEDULE STYLING */
.aqua-book-appt .call-no-times {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    background: #f8f9fa;
    padding: 18px;
    border-radius: 4px;
    margin-top: 4px;
}

.aqua-book-appt .call-no-times a {
    color: var(--uncode-palette-color-916765);
    text-decoration: none;
    font-weight: 600;
}

.aqua-book-appt .call-no-times a:hover {
    text-decoration: underline;
}

/* RESPONSIVE DESIGN - IMPROVED MOBILE LAYOUT */
@media (max-width: 600px) {
    .aqua-book-appt .nextpatient-provider {
        flex-direction: column;
        align-items: stretch;
    }
    
    .aqua-book-appt .nextpatient-provider-image-cell {
        width: 100%;
        height: 160px;
        order: -1;
    }
    
    .aqua-book-appt .nextpatient-provider-provider-cell {
        padding: 20px;
        width: 100%;
    }
    
    .aqua-book-appt .nextpatient-provider-name {
        font-size: 1.2em;
    }
    
    .aqua-book-appt .nextpatient-provider-times {
        justify-content: center;
        gap: 8px;
    }
    
    .aqua-book-appt .nextpatient-slot-time {
        min-width: 110px;
        padding: 14px 16px !important;
    }
    
    .aqua-book-appt .nextpatient-slot-time-day {
        font-size: 0.85em;
    }
    
    .aqua-book-appt .nextpatient-slot-time-time {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .aqua-book-appt .nextpatient-provider-image-cell {
        height: 140px;
    }
    
    .aqua-book-appt .nextpatient-provider-provider-cell {
        padding: 16px;
    }
    
    .aqua-book-appt .nextpatient-provider-name {
        font-size: 1.1em;
        line-height: 1.2;
    }
    
    .aqua-book-appt .nextpatient-provider-address {
        font-size: 0.9em;
    }
    
    .aqua-book-appt .nextpatient-slot-time {
        min-width: 100px;
        padding: 12px 14px !important;
    }
    
    .aqua-book-appt .nextpatient-slot-time-day {
        font-size: 0.8em;
    }
    
    .aqua-book-appt .nextpatient-slot-time-time {
        font-size: 1em;
    }
}

/* SUBTLE ANIMATION */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.aqua-book-appt .nextpatient-provider {
    animation: fadeIn 0.3s ease forwards;
}

.aqua-book-appt .nextpatient-provider:nth-child(2) { animation-delay: 0.1s; }
.aqua-book-appt .nextpatient-provider:nth-child(3) { animation-delay: 0.2s; }
.aqua-book-appt .nextpatient-provider:nth-child(4) { animation-delay: 0.3s; }

/* ==========================================================================
   NEXTPATIENT WIDGETS - SIDEBAR
   ========================================================================== */

.nextpatient-sidebar.provider #nextpatient-schedule {
    margin-top: 16px;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-location {
    margin-bottom: 20px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    transition: none;
    background: transparent;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-location:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-location-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    padding: 18px 20px 0;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-location-address {
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
    padding: 0 20px 16px;
    border-bottom: 1px solid #f0f2f4;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-times {
    padding: 18px 20px;
}

/* When nextpatient-provider-times contains nextpatient-no-time, make it full width */
.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-times:has(.nextpatient-no-time) {
    display: block;
    width: 100%;
}

/* Empty or whitespace-only nextpatient-provider-times - show "Choose a visit reason above" message */
.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-times:not(:has(*)) {
    color: #6c757d;
    font-style: italic;
    text-align: left;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    margin: 0;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-times:not(:has(*)):after {
    content: "Choose a visit reason above.";
}

/* SELECT STYLING */
.nextpatient-sidebar.provider .nextpatient-reason-select select,
.nextpatient-sidebar.provider select[name="reason_id"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 1em;
    background: white;
    color: #333333;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.nextpatient-sidebar.provider .nextpatient-reason-select select:hover,
.nextpatient-sidebar.provider select[name="reason_id"]:hover {
    border-color: var(--uncode-palette-color-916765);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nextpatient-sidebar.provider .nextpatient-reason-select select:focus,
.nextpatient-sidebar.provider select[name="reason_id"]:focus {
    outline: none;
    border-color: var(--uncode-palette-color-916765);
    box-shadow: 0 0 0 3px rgba(0, 84, 154, 0.1);
}

/* DEFAULT STATE - Before user selects a reason - IMPROVED LAYOUT */
.nextpatient-sidebar.provider #nextpatient-schedule .time-preview-box {
    margin: 0 !important;
    padding: 16px !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, var(--uncode-palette-color-206917) 0%, #e8e8e8 100%) !important;
    border: none !important;
    border-radius: 4px !important;
    color: var(--uncode-palette-color-589256);
    text-decoration: none;
    font-weight: 500;
    cursor: default;
    opacity: 0.6;
    text-align: left !important;
}

.nextpatient-sidebar.provider #nextpatient-schedule .time-line {
    width: 100%;
    margin-bottom: 8px;
    text-align: left;
}

.nextpatient-sidebar.provider #nextpatient-schedule .time-line-label {
    font-size: 0.9em !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    color: #333333;
}

.nextpatient-sidebar.provider #nextpatient-schedule .time-line-time {
    font-size: 0.9em !important;
    font-weight: 600 !important;
    color: #333333;
    margin-left: 8px;
}

.nextpatient-sidebar.provider #nextpatient-schedule .time-line-instructions {
    font-size: 0.85em !important;
    line-height: 1.35 !important;
    text-align: left !important;
    margin: 0 !important;
    color: #555555;
    width: 100%;
    display: block;
}

/* SELECTED STATE - After user selects a reason */
.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-slot-time {
    margin: 4px 4px 4px 0 !important;
    padding: 12px 16px !important;
    display: inline-block !important;
    background: linear-gradient(135deg, var(--uncode-palette-color-206917) 0%, #e8e8e8 100%) !important;
    border: none !important;
    border-radius: 4px !important;
    color: var(--uncode-palette-color-589256) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-weight: 500;
    cursor: pointer;
    opacity: 1;
    text-align: center;
    min-width: 100px;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-slot-time:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--uncode-palette-color-916765) 0%, #0066bb 100%) !important;
    color: white !important;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-slot-time-day {
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 2px;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-slot-time-time {
    font-size: 1.1em;
    font-weight: 600;
}

/* "More times" tile — same flat look as the other slot tiles. */
.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-more-times {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    color: var(--sd-blue-gray) !important;
    font-style: normal !important;
    font-weight: 500 !important;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-more-times:hover,
.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-more-times:focus {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    color: var(--sd-blue) !important;
}

/* No appointments available state - FULL WIDTH */
.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-no-time {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    margin: 0;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-no-time a {
    color: var(--uncode-palette-color-916765);
    text-decoration: none;
    font-weight: 600;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-no-time a:hover {
    text-decoration: underline;
}

/* Hide the "No upcoming appointments" text when appointments are available */
.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-location:has(.nextpatient-slot-time):after {
    display: none !important;
}

/* Responsive design */
@media (max-width: 600px) {
    .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-location-name,
    .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-location-address,
    .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-times {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-slot-time {
        display: block !important;
        margin-bottom: 8px !important;
        text-align: center;
    }
}

/* Subtle animation for loading state */
.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-location {
    animation: fadeIn 0.3s ease forwards;
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-location:nth-child(2) { 
    animation-delay: 0.1s; 
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-location:nth-child(3) { 
    animation-delay: 0.2s; 
}

.nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-location:nth-child(4) { 
    animation-delay: 0.3s; 
}

/* Providers Single Page */
.nextpatient-sidebar h3 {
    margin-bottom: 16px;
}

.nextpatient-sidebar .nextpatient-provider-times {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 0px;
}

.nextpatient-sidebar .nextpatient-provider-times:has(.time-preview-box) {
    grid-template-columns: 1fr;
}

.nextpatient-sidebar .time-line-instructions {
    text-align: left !important;
}

.nextpatient-sidebar .nextpatient-provider-times a {
    width: 100%;
    background: transparent;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(103, 110, 118, 0.08), 0px 0px 0px 1px rgba(103, 110, 118, 0.16), 0px 1px 1px rgba(0, 0, 0, 0.12);
    height: auto !important; 
}

.nextpatient-sidebar .nextpatient-provider-times a:hover {
    border-color: var(--uncode-palette-color-916765);
}

.nextpatient-sidebar #nextpatient-schedule {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================================================
   PROVIDER GRID RESPONSIVE OVERRIDES
   ========================================================================== */

/* Base styles - Mobile first: 1 column */
.fwpl-layout.el-ptvr9j {
  grid-template-columns: 1fr !important;
  grid-gap: 16px !important;
}

/* Tablet: 2 columns above 767px */
@media (min-width: 768px) {
  .fwpl-layout.el-ptvr9j {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-gap: 20px !important;
  }
}

/* Tablet Large: 3 columns above 959px */
@media (min-width: 960px) {
  .fwpl-layout.el-ptvr9j {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 24px !important;
  }
}

/* Desktop: 4 columns above 1200px */
@media (min-width: 1200px) {
  .fwpl-layout.el-ptvr9j {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 36px !important;
  }
}

.fwpl-item.view-more {
  align-self: start;
  margin-top: 16px;
  display: block;
}

.fwpl-item.book {
  align-self: start;
}

.fwpl-item.book a {
    border-radius: 4px;
    margin-top: 8px;
    display: block;
}

.fwpl-item.view-more .fwpl-btn::after {
    content: "\f054"; 
    font-family: "uncodeicon";
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8em;
}

.provider-facets .facetwp-facet {
    margin-bottom: 10px;
}

.fwpl-item.service-types .fwpl-term {
    font-size: 12px;
}

/* Hide services beyond the first 3 */
.fwpl-item.service-types .fwpl-term:nth-child(n+4) {
    display: none;
}

/* ==========================================================================
   PROVIDER SPECIALTIES & CERTIFICATIONS
   ========================================================================== */

.provider-cert {
    margin-top: 12px !important;
}

.provider-specialties {
    background: var(--uncode-palette-color-206917) !important;
    padding: 16px;
    border-radius: 4px;
    margin: 20px 0;
}

.provider-specialties strong {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.provider-specialties ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 8px;
}

/* For smaller screens, allow fewer columns */
@media (max-width: 768px) {
    .provider-specialties ul {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .provider-specialties ul {
        grid-template-columns: 1fr;
    }
}

.provider-specialties li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Blue circle bullet with white checkmark */
.provider-specialties li::before {
    content: "\f00c"; /* Font Awesome checkmark unicode */
    font-family: "uncodeicon";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--uncode-palette-color-916765); /* Updated blue color */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: normal;
    line-height: 1;
}

body.single-provider .provider-specialties a,
body.single-provider .col-lg-8.column_child .uncont > div:nth-child(3) p > a {
  display: inline-block !important;
  background-color: var(--uncode-palette-color-916765) !important;
  color: white !important;
  font-size: 14px !important;
  padding: 8px 16px !important;
  border-radius: 2px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.provider-specialties a:hover {
  background-color: #003d7a;
  transition: background-color 0.2s ease;
}

/* ==========================================================================
   MOBILE BOOK APPOINTMENT
   ========================================================================== */

/* Hide mobile book appointment button by default */
.book-appt.mobile {
  display: none;
}

/* Show mobile book appointment button only on mobile (below 959px) */
@media (max-width: 959px) {
  .book-appt.mobile {
    display: block;
  }
}

/* Add scroll offset for sticky nav - no visual spacing added */
#book-appointment {
  scroll-margin-top: 64px;
}

/* ==========================================================================
   NEXTPATIENT WIDGET ADDITIONAL STYLES
   ========================================================================== */

/* Base Styles & Fonts */
.nextpatient-box {
    width: 100%;
    max-width: 1000px;
    text-align: left;
    padding-bottom: 40px;
}

.nextpatient-font {
    font-size: 16px;
}

.nextpatient-no-times-available {
    font-size: 1.2em;
    margin-top: 5px;
    padding: 10px 0px;
}

/*
 * NextPatient injects a <style> block with single-class rules (e.g. .nextpatient-criteria-container { display: block }).
 * wederm.com wins the cascade the same way: theme uses .aqua-book-appt descendants + !important on layout.
 * Do NOT scope to body.page-id-* or custom body classes — those often do not match production.
 */
/* Space between page headline (e.g. "Search First Available Appointment") and the widget */
.aqua-book-appt .nextpatient-box {
    margin-top: clamp(20px, 3vw, 36px);
}

.aqua-book-appt .nextpatient-criteria-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    gap: 4px 10px !important;
    width: 100% !important;
    margin: 0 0 40px !important;
}

.aqua-book-appt .nextpatient-criteria-box {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.aqua-book-appt .nextpatient-criteria-box:has(input[name="age"]),
.aqua-book-appt .nextpatient-criteria-box:has(select[name="insurance_id"]) {
    display: none !important;
}

.aqua-book-appt .nextpatient-criteria-box:has(select[name="group"]) {
    flex: 0 1 auto !important;
    min-width: min(100%, 200px);
}

.aqua-book-appt .nextpatient-criteria-box:has(select[name="reason_id"]) {
    flex: 0 1 150px !important;
    min-width: 120px;
    max-width: min(100%, 220px);
}

.aqua-book-appt .nextpatient-criteria-box:has(input[name="zip"]) {
    flex: 0 1 auto !important;
    min-width: 0;
}

.aqua-book-appt .nextpatient-criteria-box:has(input[type="submit"]) {
    flex: 0 0 auto !important;
    min-width: 0;
}

.aqua-book-appt .nextpatient-criteria-label,
.aqua-book-appt .nextpatient-criteria-label label {
    display: block;
    margin: 0 0 4px 2px;
    padding-top: 0;
    font-family: var(--sd-font-body), sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--sd-blue-gray);
}

.aqua-book-appt .nextpatient-criteria-label label {
    margin-bottom: 0;
}

.aqua-book-appt .nextpatient-criteria-input {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    min-width: 0;
}

/* Hide inline "within" text (raw text node) like wederm: zero font on wrapper, restore on controls */
.aqua-book-appt .nextpatient-criteria-box:has(input[name="zip"]) .nextpatient-criteria-input {
    align-items: flex-end !important;
    gap: 2px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
}

.aqua-book-appt .nextpatient-criteria-box:has(input[name="zip"]) .nextpatient-criteria-input input,
.aqua-book-appt .nextpatient-criteria-box:has(input[name="zip"]) .nextpatient-criteria-input select {
    font-size: 16px !important;
    line-height: 24px !important;
    font-family: var(--sd-font-body), sans-serif;
    color: var(--sd-blue-gray);
}

.aqua-book-appt .nextpatient-criteria-box:has(input[name="zip"]) .nextpatient-criteria-input [data-lastpass-icon-root] {
    display: none !important;
}

.aqua-book-appt .nextpatient-criteria-box:has(input[type="submit"]) .nextpatient-criteria-label {
    display: none;
}

.aqua-book-appt .nextpatient-criteria-box select,
.aqua-book-appt .nextpatient-criteria-box input:not([type="submit"]) {
    width: 100%;
    height: 56px;
    min-width: 0;
    padding: 0 18px;
    border: 1px solid var(--sd-border-on-light);
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #ffffff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(103, 110, 118, 0.16), 0 2px 5px rgba(103, 110, 118, 0.08);
    font-family: var(--sd-font-body), sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--sd-blue-gray);
}

.aqua-book-appt .nextpatient-criteria-box select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 46px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%23114671' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 24px;
    cursor: pointer;
}

.aqua-book-appt .nextpatient-criteria-box select:disabled {
    color: var(--sd-blue-gray);
    opacity: 1;
    cursor: not-allowed;
}

.aqua-book-appt .nextpatient-criteria-box input[name="zip"]::placeholder {
    color: var(--sd-blue-gray);
    opacity: 1;
}

.aqua-book-appt .nextpatient-criteria-box input[name="zip"] {
    flex: 0 1 104px;
    min-width: 104px;
    width: auto;
}

.aqua-book-appt .nextpatient-criteria-box select[name="max_miles"] {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
}

.aqua-book-appt .nextpatient-criteria-box input:not([type="submit"]):hover,
.aqua-book-appt .nextpatient-criteria-box select:hover {
    border-color: rgba(0, 0, 0, 0.35);
}

.aqua-book-appt .nextpatient-criteria-box input:not([type="submit"]):focus,
.aqua-book-appt .nextpatient-criteria-box select:focus {
    outline: none;
    border-color: var(--sd-orange);
    box-shadow: 0 0 0 3px rgba(238, 127, 0, 0.12);
}

.aqua-book-appt .nextpatient-criteria-box input[type="submit"] {
    width: auto;
    min-width: 120px;
    height: 56px;
    padding: 0 20px 0 46px;
    border: 1px solid var(--sd-orange);
    border-radius: 28px !important;
    box-sizing: border-box;
    background-color: var(--sd-orange);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='9' cy='9' r='5.75' stroke='white' stroke-width='1.5'/%3E%3Cpath d='M13.5 13.5L17 17' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 18px center;
    background-size: 20px;
    box-shadow: none;
    color: #ffffff;
    font-family: var(--sd-font-body), sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.aqua-book-appt .nextpatient-criteria-box:has(input[type="submit"]) .nextpatient-criteria-input {
    display: flex !important;
    align-items: flex-end;
    justify-content: flex-start;
}

.aqua-book-appt .nextpatient-criteria-box:has(select[name="group"]) select,
.aqua-book-appt .nextpatient-criteria-box:has(select[name="reason_id"]) select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.aqua-book-appt .nextpatient-criteria-box input[type="submit"]:hover,
.aqua-book-appt .nextpatient-criteria-box input[type="submit"]:focus {
    background-color: color-mix(in srgb, var(--sd-orange) 88%, black);
    border-color: color-mix(in srgb, var(--sd-orange) 88%, black);
    box-shadow: none;
    transform: none;
}

.aqua-book-appt .nextpatient-criteria-box input[type="submit"]:active {
    background-color: #6f3d53;
    border-color: #6f3d53;
}

@media (max-width: 959px) {
    .aqua-book-appt .nextpatient-criteria-container {
        gap: 8px 10px !important;
        margin-bottom: 32px !important;
    }

    .aqua-book-appt .nextpatient-criteria-box:has(select[name="group"]),
    .aqua-book-appt .nextpatient-criteria-box:has(select[name="reason_id"]) {
        flex: 1 1 calc(50% - 8px) !important;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .aqua-book-appt .nextpatient-criteria-box:has(select[name="group"]),
    .aqua-book-appt .nextpatient-criteria-box:has(select[name="reason_id"]),
    .aqua-book-appt .nextpatient-criteria-box:has(input[name="zip"]) {
        flex: 1 1 100% !important;
        max-width: none;
    }

    .aqua-book-appt .nextpatient-criteria-box:has(input[type="submit"]) {
        flex: 1 1 100% !important;
    }

    .aqua-book-appt .nextpatient-criteria-box:has(input[name="zip"]) .nextpatient-criteria-input {
        gap: 6px;
    }

    .aqua-book-appt .nextpatient-criteria-box input[type="submit"] {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 479px) {
    .aqua-book-appt .nextpatient-criteria-box:has(input[name="zip"]) .nextpatient-criteria-input {
        flex-wrap: wrap !important;
        white-space: normal;
        gap: 8px !important;
    }

    .aqua-book-appt .nextpatient-criteria-box input[name="zip"],
    .aqua-book-appt .nextpatient-criteria-box select[name="max_miles"] {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}

@media (max-width:500px) {
    .nextpatient-provider-table .nextpatient-provider {padding: 5px;}
    .nextpatient-provider-table .nextpatient-provider-name {text-align: left; font-size: 20px; line-height: 22px;}
    .nextpatient-provider-table .nextpatient-provider-blurb {text-align: left; font-size: 14px; margin-top: 6px;}
    .nextpatient-provider-table .nextpatient-provider-image-cell {display: none}
    .nextpatient-provider-table .nextpatient-provider-provider-cell {padding-left: 0px;}
    .nextpatient-provider-table .nextpatient-provider-times {padding-top: 5px; text-align: center;}
    .nextpatient-provider-table .nextpatient-slot-time {width: 100px;}
    .nextpatient-provider-table .nextpatient-provider-more-times {text-align: center;}
    .nextpatient-provider-table .nextpatient-provider-name-block {display: table}
    .nextpatient-provider-table .nextpatient-provider-name-block-left {display: table-cell; vertical-align: top; padding-right: 5px;}
    .nextpatient-provider-table .nextpatient-provider-name-block-right {display: table-cell; vertical-align: top;}
    .nextpatient-provider-table .nextpatient-provider-small-photo {height: 100px; width: 75px; background-size: cover; background-position: center;}
    .nextpatient-provider-table .next-appt-block {text-align: center}
    .nextpatient-provider-table .call-no-times {text-align: center}
}

@media (max-width:430px) {    
    .nextpatient-slot-time {padding: 11px 0px;}
}

/* ==========================================================================
   NEXTPATIENT — LOCATION DETAIL PAGES
   Figma spec: node 14530:4751
   Scoped to body.single-location so it never leaks to the main booking page.
   ========================================================================== */

/* ── Criteria / Filter Bar ──────────────────────────────────────────────── */
body.single-location .nextpatient-criteria-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 0 40px !important;
}

body.single-location .nextpatient-criteria-box {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide Age, Insurance, Zip, and Search — Figma only shows Visit Type + Visit Reason */
body.single-location .nextpatient-criteria-box:has(input[name="age"]),
body.single-location .nextpatient-criteria-box:has(select[name="insurance_id"]),
body.single-location .nextpatient-criteria-box:has(input[name="zip"]),
body.single-location .nextpatient-criteria-box:has(input[type="submit"]) {
    display: none !important;
}

body.single-location .nextpatient-criteria-label,
body.single-location .nextpatient-criteria-label label {
    display: block;
    margin: 0 0 16px 0;
    padding: 0;
    font-family: var(--sd-font-body), sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--sd-blue-gray);
}

body.single-location .nextpatient-criteria-label label {
    margin-bottom: 0;
}

body.single-location .nextpatient-criteria-input {
    display: flex !important;
    align-items: center;
}

body.single-location .nextpatient-criteria-box select {
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    padding: 0 46px 0 18px !important;
    margin: 0 !important;
    border: 1px solid var(--sd-border-on-light) !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    background-color: #ffffff;
    box-shadow: 0 1px 1px rgba(0,0,0,0.12),
                0 0 0 1px rgba(103,110,118,0.16),
                0 2px 5px rgba(103,110,118,0.08);
    font-family: var(--sd-font-body), sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 400;
    color: var(--sd-blue-gray);
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%23114671' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 24px !important;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-overflow: ellipsis;
}

body.single-location .nextpatient-criteria-box select:disabled {
    color: var(--sd-blue-gray);
    opacity: 1;
    cursor: not-allowed;
}

body.single-location .nextpatient-criteria-box select:hover {
    border-color: rgba(0, 0, 0, 0.35) !important;
}

body.single-location .nextpatient-criteria-box select:focus {
    outline: none;
    border-color: var(--sd-orange) !important;
    box-shadow: 0 0 0 3px rgba(238, 127, 0, 0.12);
}

/* ── Provider table / photo / slot output ─────────────────────────────────
   MOVED to 14-nextpatient-results-figma.css (universal `[id^="nextpatient-
   widget"]` scope). Removed from 08 because the prior `body.single-location`
   block was painting the wrong size/radius/colors per Figma node 6509:7446
   and was actively winning the cascade against the new file.
   See 14- for the canonical Sunrise output styling.
   ────────────────────────────────────────────────────────────────────────── */


/* ── Responsive — Location Detail Form (criteria inputs only) ───────────── */

/* Tablet — widget column gets narrow around this point */
@media (max-width: 959px) {
    body.single-location .nextpatient-criteria-container {
        flex-direction: column !important;
        gap: 16px !important;
        margin-bottom: 32px !important;
    }

    body.single-location .nextpatient-criteria-box {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    body.single-location .nextpatient-criteria-box select {
        max-width: 100% !important;
    }
}

/* Narrow phones */
@media (max-width: 400px) {
    body.single-location .nextpatient-criteria-label,
    body.single-location .nextpatient-criteria-label label {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    body.single-location .nextpatient-criteria-box select {
        height: 48px !important;
        font-size: 15px !important;
        padding: 0 40px 0 14px !important;
    }
}


/* ── Providers aesthetic pass (from aqua.css:3113-3401) ── */

/* ==========================================================================
   19. PROVIDERS AESTHETIC PASS
   Archive scope uses provider-specific markup, not page IDs
   ========================================================================== */

article.page-body:has(.provider-facets) #row-unique-0 {
    background: #ffffff !important;
}

article.page-body:has(.provider-facets) #row-unique-0 h1,
article.page-body:has(.provider-facets) #row-unique-0 .h1 {
    margin: 0 0 20px !important;
    font-family: var(--sd-font-display), serif !important;
    font-size: clamp(48px, 6vw, 80px) !important;
    line-height: clamp(56px, 6.6vw, 88px) !important;
    font-weight: 400 !important;
    letter-spacing: -1.5px !important;
    color: var(--sd-blue-gray) !important;
    text-align: center !important;
}

article.page-body:has(.provider-facets) #row-unique-0 h4,
article.page-body:has(.provider-facets) #row-unique-0 .h4,
article.page-body:has(.provider-facets) #row-unique-0 .text-lead,
article.page-body:has(.provider-facets) #row-unique-0 .text-lead > * {
    margin: 0 !important;
    font-family: var(--sd-font-display), serif !important;
    font-size: clamp(22px, 2vw, 24px) !important;
    line-height: 32px !important;
    font-weight: 400 !important;
    color: var(--sd-blue-gray) !important;
    text-align: center !important;
}

article.page-body:has(.provider-facets) #row-unique-1 {
    background: var(--sd-light-blue) !important;
}

.provider-facets > .row > .row-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.provider-facets .wpb_column {
    width: 100% !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.provider-facets .uncol,
.provider-facets .uncoltable,
.provider-facets .uncell,
.provider-facets .uncont {
    height: 100%;
}

.provider-facets .uncell,
.provider-facets .uncont,
.provider-facets .facetwp-facet {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.provider-facets .uncell > *:not(.facetwp-facet),
.provider-facets .uncont > *:not(.facetwp-facet) {
    margin: 0 !important;
    font-family: var(--sd-font-body), sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 500 !important;
    color: var(--sd-blue-gray) !important;
}

.provider-facets .facetwp-facet {
    margin: 0 !important;
}

.provider-facets .facetwp-dropdown {
    width: 100%;
    height: 56px;
    padding: 0 44px 0 18px;
    border: 1px solid var(--sd-border-on-light);
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(103, 110, 118, 0.16), 0 2px 5px rgba(103, 110, 118, 0.08);
    font-family: var(--sd-font-body), sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--sd-blue-gray);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* FacetWP loads a 50×20 SVG with a tiny path; it wins without !important and looks like a speck at 24px width. */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3e%3cpath d='M7 10L12 15L17 10' stroke='%23114671' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 22px 22px !important;
}

.provider-facets .facetwp-dropdown:focus {
    border-color: var(--sd-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(238, 127, 0, 0.12);
}

article.page-body:has(.provider-facets) #row-unique-2 {
    background: var(--sd-blue-gray) !important;
}

.fwpl-layout.el-ptvr9j {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 40px !important;
}

.fwpl-layout.el-ptvr9j .fwpl-result {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.fwpl-layout.el-ptvr9j .fwpl-row.el-yqt486,
.fwpl-layout.el-ptvr9j .fwpl-col.el-ymt9ah {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
}

.fwpl-layout.el-ptvr9j .fwpl-item.el-dt925u {
    position: relative;
    padding-bottom: 100%; /* 1:1 square — Safari-safe replacement for aspect-ratio */
    overflow: hidden;
    border-radius: 24px;
    background: var(--sd-light-blue);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(103, 110, 118, 0.16), 0 2px 5px rgba(103, 110, 118, 0.08);
}

.fwpl-layout.el-ptvr9j .fwpl-item.el-dt925u a,
.fwpl-layout.el-ptvr9j .fwpl-item.el-dt925u img {
    position: absolute !important;
    top: 0;
    left: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.fwpl-layout.el-ptvr9j .fwpl-item.el-dt925u img {
    object-fit: cover;
    object-position: center top;
}

.fwpl-layout.el-ptvr9j .fwpl-item.el-es29kh {
    min-height: 0;
}

.fwpl-layout.el-ptvr9j .fwpl-item.el-es29kh h3.h6,
.fwpl-layout.el-ptvr9j .fwpl-item.el-es29kh h3.h6 a {
    margin: 0 !important;
    font-family: var(--sd-font-display), serif !important;
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none !important;
}

.fwpl-layout.el-ptvr9j .fwpl-item.el-xcdz5j.view-more,
.fwpl-layout.el-ptvr9j .fwpl-item.el-1jdxae.book {
    margin: 0 !important;
}

/* FacetWP card CTAs — Outline Light (View) + Solid Light (Book) Med
   Provider grid sits on var(--sd-blue-gray) (#114671) per #row-unique-2,
   so buttons must use the Light variants (yellow on dark) per Figma §5
   and 04-buttons-forms.css. Hover/active overlays use the same red-tint
   gradients as the canonical Solid/Outline Light specs. */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-xcdz5j.view-more .fwpl-btn,
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-1jdxae.book .fwpl-btn,
.fwpl-layout.el-ptvr9j .fwpl-item.el-xcdz5j.view-more .fwpl-btn,
.fwpl-layout.el-ptvr9j .fwpl-item.el-1jdxae.book .fwpl-btn {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 24px;
    font-family: var(--sd-font-body), sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* View — Outline Light */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-xcdz5j.view-more .fwpl-btn,
.fwpl-layout.el-ptvr9j .fwpl-item.el-xcdz5j.view-more .fwpl-btn {
    border: 1px solid var(--sd-yellow);
    background: transparent !important;
    background-image: none !important;
    color: var(--sd-yellow) !important;
}

/* Outline Light Hover/Active — yellow border inverts to white (#FCFAF7)
   per Figma "Size=Lrg, Style=Secondary, Color=Light, State=Hover, Type=Outline" */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-xcdz5j.view-more .fwpl-btn:hover,
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-xcdz5j.view-more .fwpl-btn:focus,
.fwpl-layout.el-ptvr9j .fwpl-item.el-xcdz5j.view-more .fwpl-btn:hover,
.fwpl-layout.el-ptvr9j .fwpl-item.el-xcdz5j.view-more .fwpl-btn:focus {
    background-color: transparent !important;
    background-image: none !important;
    border-color: var(--sd-white) !important;
    color: var(--sd-white) !important;
}

.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-xcdz5j.view-more .fwpl-btn:active,
.fwpl-layout.el-ptvr9j .fwpl-item.el-xcdz5j.view-more .fwpl-btn:active {
    background-color: transparent !important;
    background-image: none !important;
    border-color: var(--sd-white) !important;
    color: var(--sd-white) !important;
}

/* Book Appointment — Solid Light */
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-1jdxae.book .fwpl-btn,
.fwpl-layout.el-ptvr9j .fwpl-item.el-1jdxae.book .fwpl-btn {
    border: 1px solid var(--sd-yellow);
    background: var(--sd-yellow) !important;
    background-image: none !important;
    color: var(--sd-blue-gray) !important;
    box-shadow: none;
}

.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-1jdxae.book .fwpl-btn:hover,
.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-1jdxae.book .fwpl-btn:focus,
.fwpl-layout.el-ptvr9j .fwpl-item.el-1jdxae.book .fwpl-btn:hover,
.fwpl-layout.el-ptvr9j .fwpl-item.el-1jdxae.book .fwpl-btn:focus {
    background-color: var(--sd-yellow) !important;
    background-image: linear-gradient(rgba(255, 0, 0, 0.10), rgba(255, 0, 0, 0.10)) !important;
    border-color: var(--sd-yellow) !important;
    color: var(--sd-blue-gray) !important;
}

.fwpl-layout.el-ptvr9j .fwpl-result .fwpl-item.el-1jdxae.book .fwpl-btn:active,
.fwpl-layout.el-ptvr9j .fwpl-item.el-1jdxae.book .fwpl-btn:active {
    background-color: var(--sd-yellow) !important;
    background-image: linear-gradient(rgba(255, 0, 0, 0.20), rgba(255, 0, 0, 0.20)) !important;
    border-color: var(--sd-yellow) !important;
    color: var(--sd-blue-gray) !important;
}

article.page-body:has(.provider-facets) #row-unique-3 {
    background: var(--sd-white) !important;
}

article.page-body:has(.provider-facets) #row-unique-3 img {
    border-radius: 24px;
    overflow: hidden;
}

article.page-body:has(.provider-facets) #row-unique-3 h2,
article.page-body:has(.provider-facets) #row-unique-3 h3,
article.page-body:has(.provider-facets) #row-unique-3 .h2,
article.page-body:has(.provider-facets) #row-unique-3 .h3 {
    font-family: var(--sd-font-display), serif !important;
    font-weight: 400 !important;
    color: var(--sd-blue-gray) !important;
}

/* Careers partial — reusable WPB row el_class `.careers` */
.careers {
    background: var(--sd-white) !important;
}

.careers img {
    border-radius: 24px;
    overflow: hidden;
}

.careers h2,
.careers h3,
.careers .h2,
.careers .h3 {
    font-family: var(--sd-font-display), serif !important;
    font-weight: 400 !important;
    color: var(--sd-blue-gray) !important;
}

/* "See Opportunities" CTA — Outline Dark Med (Figma §5).
   Markup uses generic `btn-default.btn-outline` (no Sunrise palette class),
   so canonical 04-buttons-forms.css Outline Dark rules don't match. Pin
   the four states explicitly here so Uncode's default solid-fill hover
   doesn't win. Default border/text = #114671; hover/pressed flip to
   Primary Blue #216CA2 per Figma "State=Hover, Type=Outline". */
.careers .btn.btn-outline {
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid var(--sd-blue-gray) !important;
    color: var(--sd-blue-gray) !important;
}

.careers .btn.btn-outline:hover,
.careers .btn.btn-outline:focus {
    background-color: transparent !important;
    background-image: none !important;
    border-color: var(--sd-blue) !important;
    color: var(--sd-blue) !important;
}

.careers .btn.btn-outline:active {
    background-color: transparent !important;
    background-image: linear-gradient(rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.20)) !important;
    border-color: var(--sd-blue) !important;
    color: var(--sd-blue) !important;
}

body.single-provider .style-dark .breadcrumb {
    margin: 0;
    color: rgba(255, 255, 255, 0.78) !important;
    font-family: var(--sd-font-body), sans-serif;
    font-size: 14px;
    line-height: 24px;
}

body.single-provider .style-dark .breadcrumb > li a {
    color: inherit !important;
}

body.single-provider .single-wrapper,
body.single-provider .tmb,
body.single-provider .t-inside,
body.single-provider .t-entry-visual,
body.single-provider .t-entry-visual-tc,
body.single-provider .uncode-single-media-wrapper {
    width: auto !important;
    height: auto !important;
}

body.single-provider .uncode-single-media-wrapper {
    line-height: normal !important;
}

body.single-provider .uncode-single-media-wrapper > .dummy {
    display: none !important;
}

body.single-provider .t-entry-visual {
    box-shadow: none !important;
    overflow: visible !important;
}
body.single-provider .provider-featured-image img{
    background: var(--sd-light-blue) !important;
}

body.single-provider .single-provider-header .uncode-single-media-wrapper img {
    display: block;
    position: relative !important;
    inset: auto !important;
    border-radius: 24px;
    background: var(--sd-light-blue);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(103, 110, 118, 0.16), 0 2px 5px rgba(103, 110, 118, 0.08);
}

.provider-testimonial-container.is-empty {
    display: none !important;
}

/* ── Single-provider body layout (from aqua.css:3403-3660) ────────────── */

body.single-provider h1.h2 {
    margin: 0 0 16px !important;
    font-family: var(--sd-font-display), serif !important;
    font-size: clamp(48px, 5.75vw, 72px) !important;
    line-height: clamp(56px, 6vw, 80px) !important;
    font-weight: 400 !important;
    letter-spacing: -1px !important;
    color: #ffffff !important;
}

body.single-provider .provider-cert h2 {
    margin: 0 0 24px !important;
    font-family: var(--sd-font-display), serif !important;
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
}

body.single-provider .provider-specialties {
    margin: 0;
    padding: 0;
    background: transparent !important;
}

body.single-provider .provider-specialties strong {
    margin-bottom: 12px;
    font-family: var(--sd-font-body), sans-serif;
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
}

body.single-provider .style-light .provider-specialties strong {
    margin-bottom: 12px;
    font-family: var(--sd-font-body), sans-serif;
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: inherit !important;
}

body.single-provider .provider-specialties ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

body.single-provider .provider-specialties li {
    margin: 0;
    padding-left: 28px;
    color: #ffffff;
}
body.single-provider .style-light .provider-specialties li {
    margin: 0;
    padding-left: 28px;
    color: inherit !important;
}

body.single-provider .provider-specialties li::before {
    top: 2px;
    background-color: var(--sd-orange);
}

body.single-provider .provider-body .col-lg-7 > .uncol > .uncoltable > .uncell,
body.single-provider .provider-body .col-lg-5 > .uncol > .uncoltable > .uncell {
    padding-top: 0;
}

body.single-provider .provider-body h3,
body.single-provider .nextpatient-sidebar.provider h3 {
    margin: 0 0 24px !important;
    font-family: var(--sd-font-display), serif !important;
    font-size: 32px !important;
    line-height: 40px !important;
    font-weight: 400 !important;
    color: var(--sd-blue-gray) !important;
}

body.single-provider .provider-body p,
body.single-provider .provider-body li,
body.single-provider .provider-body .wpb_wrapper {
    font-family: var(--sd-font-body), sans-serif;
    color: var(--sd-blue-gray);
}

body.single-provider .provider-body p,
body.single-provider .provider-body li {
    font-size: 16px;
    line-height: 24px;
}

body.single-provider .provider-body ul {
    padding-left: 22px;
    margin: 0;
}

body.single-provider .provider-body li {
    margin-bottom: 12px;
}

body.single-provider .provider-body li strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 500;
}

body.single-provider .read-more-ov-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: var(--sd-font-body), sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 500 !important;
    color: var(--sd-orange) !important;
    text-transform: none !important;
    text-decoration: none !important;
}

body.single-provider .read-more-ov-trigger:hover {
    color: color-mix(in srgb, var(--sd-orange) 88%, black) !important;
}

body.single-provider .nextpatient-sidebar.provider {
    position: relative;
}

body.single-provider .nextpatient-sidebar.provider .nextpatient-reason-select select,
body.single-provider .nextpatient-sidebar.provider select[name="reason_id"] {
    height: 56px;
    padding: 0 44px 0 18px;
    border: 1px solid var(--sd-border-on-light);
    border-radius: 6px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(103, 110, 118, 0.16), 0 2px 5px rgba(103, 110, 118, 0.08);
    font-family: var(--sd-font-body), sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--sd-blue-gray);
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule {
    gap: 16px;
    margin-top: 24px;
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-location {
    margin-bottom: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-location:hover {
    transform: none;
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-location-name {
    padding: 0;
    margin-bottom: 4px;
    font-family: var(--sd-font-display), serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    color: var(--sd-blue-gray);
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-location-address {
    padding: 0;
    margin: 0 0 16px;
    border-bottom: 0;
    font-size: 14px;
    line-height: 22px;
    color: var(--sd-blue-gray);
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-times {
    padding: 0;
    gap: 10px;
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .time-preview-box,
body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-slot-time {
    min-height: 72px;
    margin: 0 !important;
    padding: 12px 14px !important;
    border-radius: 6px !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(103, 110, 118, 0.16), 0 2px 5px rgba(103, 110, 118, 0.08) !important;
    color: var(--sd-blue-gray) !important;
    opacity: 1;
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .time-line-label,
body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .time-line-time {
    font-size: 14px !important;
    line-height: 20px !important;
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .time-line-instructions {
    font-size: 13px !important;
    line-height: 18px !important;
    color: var(--sd-blue-gray) !important;
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-slot-time:hover,
body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-slot-time:focus {
    transform: none;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    padding: 12px 14px !important;
    color: var(--sd-blue) !important;
    /* Replace the border with a thicker shadow ring on hover so tiles don't jump */
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.12),
        0 0 0 2px var(--sd-blue),
        0 2px 5px rgba(103, 110, 118, 0.08) !important;
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-slot-time:hover .nextpatient-slot-time-day,
body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-slot-time:hover .nextpatient-slot-time-time,
body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-slot-time:focus .nextpatient-slot-time-day,
body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-slot-time:focus .nextpatient-slot-time-time {
    color: var(--sd-blue) !important;
    font-weight: 600 !important;
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-more-times {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    color: var(--sd-blue-gray) !important;
    font-style: normal !important;
    font-weight: 500 !important;
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-more-times:hover,
body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-more-times:focus {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    color: var(--sd-blue) !important;
    padding: 12px 14px !important;
}

body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-no-time {
    border-radius: 6px;
    background: var(--sd-white);
    color: var(--sd-blue-gray);
}

body.single-provider .row-navigation-content-block .row-navigation,
body.single-provider .row-navigation-content-block .row-inner {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding-top: 24px;
}

@media (max-width: 1199px) {
    .fwpl-layout.el-ptvr9j {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 959px) {
    .provider-facets > .row > .row-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.single-provider .provider-specialties ul {
        gap: 10px 16px;
    }
}

@media (max-width: 640px) {
    .provider-facets > .row > .row-inner,
    .fwpl-layout.el-ptvr9j {
        grid-template-columns: 1fr !important;
    }

    .fwpl-layout.el-ptvr9j .fwpl-result,
    .fwpl-layout.el-ptvr9j .fwpl-row.el-yqt486,
    .fwpl-layout.el-ptvr9j .fwpl-col.el-ymt9ah {
        gap: 10px;
    }

    .provider-facets > .row > .row-inner {
        gap: 6px;
    }

    .provider-facets .uncell,
    .provider-facets .uncont,
    .provider-facets .facetwp-facet {
        gap: 6px;
    }

    .provider-facets .wpb_column {
        padding: 0 !important;
    }

    .provider-facets .uncol,
    .provider-facets .uncoltable,
    .provider-facets .uncell {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.single-provider .nextpatient-sidebar.provider #nextpatient-schedule .nextpatient-provider-location {
        padding: 16px;
    }
}

/* ── WPBakery service export helpers (from aqua.css:3661-3775) ──────── */

.sd-text-light h1,
.sd-text-light h2,
.sd-text-light h3,
.sd-text-light p,
.sd-text-light li {
    color: #ffffff;
}

.sd-service-checklist ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 38px;
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
}

.sd-service-checklist li {
    position: relative;
    padding-left: 22px;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

.sd-service-checklist li::before {
    content: '\203A';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
    line-height: 24px;
}

@media (max-width: 959px) {
    .sd-service-checklist ul {
        grid-template-columns: 1fr;
    }
}

body.single-service #what-to-expect .sd-service-checklist ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, auto) !important;
    grid-auto-flow: column !important;
    gap: 20px 44px !important;
    list-style: none !important;
    margin: 32px 0 0 !important;
    padding: 0 !important;
}

body.single-service #what-to-expect .sd-service-checklist li {
    position: relative;
    margin: 0 !important;
    padding: 0 0 0 44px !important;
    list-style: none !important;
    font-family: var(--sd-font-body), sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    min-height: 24px;
    display: flex;
    align-items: center;
}

body.single-service #what-to-expect .sd-service-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10.5' stroke='white' stroke-width='2'/%3E%3Cpath d='M9.75 7.75L14 12L9.75 16.25' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

body.single-service #row-unique-0 .wpb_column.col-lg-6:last-child .uncont > .uncode_text_column:first-child {
    margin-bottom: 0 !important;
}

body.single-service #row-unique-0 .wpb_column.col-lg-6:last-child .uncont > .vc_custom_heading_wrap {
    margin-top: 16px !important;
}

body.single-service #row-unique-0 .wpb_column.col-lg-6:last-child .uncont > .vc_custom_heading_wrap h1.h2 {
    margin: 0 !important;
}

body.single-service #row-unique-3 .faq.uncode-accordion {
    width: 100% !important;
    max-width: none !important;
}

body.single-service #row-unique-3 .faq.uncode-accordion .panel {
    width: 100% !important;
}

@media (max-width: 959px) {
    body.single-service #what-to-expect .sd-service-checklist ul {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        grid-auto-flow: row !important;
        gap: 16px !important;
    }

    body.single-service #what-to-expect .sd-service-checklist li {
        padding-left: 40px !important;
    }
}

/* ── Thumbs border ──────────────────────────────────────────────────────── */
.tmb-light.tmb-border,
.tmb-light.tmb-bordered:not(.tmb-no-bg):not(.tmb-shadowed).tmb > .t-inside,
.tmb-light.tmb-bordered.tmb-no-bg.tmb > .t-inside .t-entry-visual {
    border: 1px solid rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   SINGLE PROVIDER — header section recovery
   --------------------------------------------------------------------------
   Block 72 ("TEMPLATE: Individual Provider") was imported from the Goodman
   site with palette refs that don't exist in Sunrise's Uncode palette
   (color-916765, color-206917, color-lxmt, color-xsdn, color-wayh). Uncode
   emits class hooks like `.style-color-916765-bg` but no rule, so the row
   background is transparent. Combined with `.uncol.style-light` (which
   forces white text everywhere assuming a dark bg), the title and
   credentials read white-on-cream and the provider photo column collapses.
   This block paints the broken header back to life using real Sunrise
   tokens — no theme-options or content-block edits required.
   ========================================================================== */

/* Header row keeps the body cream background (NOT light blue). A subtle
   light-gray hairline under the row separates the header from the body. */
body.single-provider .single-provider-header.style-color-916765-bg,
body.single-provider .single-provider-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Force readable dark text inside the (mis-styled) light-on-dark column.
   Title is rendered as <h1 class="h2 text-color-210407-color"> — orange,
   but `.uncol.style-light *` forces it white. We want Sunrise blue-gray.
   `a:not(.btn)` so the Book Appointment button keeps its own hover color. */
body.single-provider .single-provider-header .uncol.style-light,
body.single-provider .single-provider-header .uncol.style-light p,
body.single-provider .single-provider-header .uncol.style-light h1,
body.single-provider .single-provider-header .uncol.style-light h2,
body.single-provider .single-provider-header .uncol.style-light h3,
body.single-provider .single-provider-header .uncol.style-light a:not(.btn) {
    color: var(--sd-blue-gray) !important;
}

/* Restore the breadcrumb visibility */
body.single-provider .single-provider-header .uncode_text_column,
body.single-provider .single-provider-header .uncode_text_column a {
    color: var(--sd-blue-gray) !important;
}

/* The "Book Appointment" button in the header should stay readable */
body.single-provider .single-provider-header .vc_btn3,
body.single-provider .single-provider-header .vc_general.vc_btn3 {
    color: var(--sd-white) !important;
}

/* ── Provider photo column ─────────────────────────────────────────────────
   `[vc_single_image dynamic="yes" media_width_use_pixel="yes"
   media_width_pixel="480"]` is supposed to render a 480px square circle,
   but the chain collapses at `.single-wrapper` (display:inline-block,
   width:0) because the import dropped the inline width attribute Uncode
   normally emits. From `.single-wrapper` down everything inherits 0×0.
   Force the whole chain to fill its 1/3 column up to the configured 480px,
   then let the existing `.dummy { padding-top: 100% }` aspect-ratio trick
   give it a square height. */
body.single-provider .single-provider-header .uncode-single-media,
body.single-provider .single-provider-header .uncode-single-media .single-wrapper,
body.single-provider .single-provider-header .uncode-single-media .tmb,
body.single-provider .single-provider-header .uncode-single-media .t-inside,
body.single-provider .single-provider-header .uncode-single-media .t-entry-visual,
body.single-provider .single-provider-header .uncode-single-media .t-entry-visual-tc,
body.single-provider .single-provider-header .uncode-single-media-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 480px !important;
}

body.single-provider .single-provider-header .uncode-single-media .t-inside {
    display: block !important; /* override inherited display:table */
    height: auto !important;
}

body.single-provider .single-provider-header .uncode-single-media-wrapper {
    position: relative !important;
}

body.single-provider .single-provider-header .uncode-single-media-wrapper .dummy {
    display: block !important;
    width: 100% !important;
}

body.single-provider .single-provider-header .uncode-single-media-wrapper picture,
body.single-provider .single-provider-header .uncode-single-media-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* The image-circle shape variant should still look round */
body.single-provider .single-provider-header .uncode-single-media-wrapper.img-circle,
body.single-provider .single-provider-header .uncode-single-media-wrapper.img-circle img,
body.single-provider .single-provider-header .uncode-single-media-wrapper.img-circle picture {
    border-radius: 50% !important;
    overflow: hidden;
}

/* ── Single-provider body row recovery ─────────────────────────────────────
   Same pattern as the header for the body row's broken palette refs. */
body.single-provider .provider-body.style-color-206917-bg {
    background-color: var(--sd-white) !important;
}

body.single-provider .provider-testimonial-container.style-color-lxmt-bg {
    background-color: var(--sd-light-gray) !important;
}

/* Provider credentials line under the H1 (e.g. "Board Certified Dermatologist") */
body.single-provider .single-provider-header .provider-cert,
body.single-provider .single-provider-header .provider-cert h3,
body.single-provider .single-provider-header .provider-cert .vc_custom_heading {
    color: var(--sd-blue-gray) !important;
}

/* ── Education / Memberships repeater output styling ───────────────────────
   `[acf_repeater wrap_li="true"]` wraps each row in <li> inside a <ul>.
   Give it a clean bulleted list look that matches the Figma section. */
body.single-provider .provider-body ul,
body.single-provider .provider-body ol {
    margin: 0 0 24px 0;
    padding-left: 1.25em;
}

body.single-provider .provider-body ul li,
body.single-provider .provider-body ol li {
    margin: 0 0 12px 0;
    line-height: 1.45;
}

body.single-provider .provider-body .training-title {
    display: block;
    color: var(--sd-blue-gray);
}


/* ==========================================================================
   SINGLE PROVIDER — NextPatient sidebar widget (Figma 6506:7078)
   --------------------------------------------------------------------------
   Block 72's `[wpcode id="77" ref="provider_nextpatient"]` injects the
   NextPatient `<div id="nextpatient-widget">` (with its own inline <style>
   defaults: grey gradients, dark-grey slot tiles, dark-blue location name,
   pill "More times" button) into the right column of the provider page.
   We restyle to the Sunrise design:
     - "Visit Reason" label injected above the dropdown via ::before
     - Dropdown: rounded white card, custom chevron, full width
     - Hairline divider between dropdown and slot block
     - Location name → Sunrise orange (Figma "Mobile, AL")
     - Slots in a 2-column responsive grid, white fill, light-blue border,
       dark-blue text, no gradient
     - Hover/focus → 2px Sunrise blue-gray border
     - "More times" → solid Sunrise blue-gray button, full row
   Scope is `body.single-provider` so we don't disturb the LOCATION-page
   widget instance, which has its own treatment in 14-…-figma.css.
   ========================================================================== */

/* "Schedule Appointment" h3 — display weight, dark blue */
body.single-provider .nextpatient-sidebar h3 {
    font-family: var(--sd-font-display, var(--sd-font-body)) !important;
    font-weight: 400 !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    color: var(--sd-blue-gray) !important;
    margin: 0 0 24px 0 !important;
}

/* Reason dropdown wrapper — block, with hairline divider underneath */
body.single-provider [id^="nextpatient-widget"] .nextpatient-reason-select {
    display: block !important;
    width: 100% !important;
    margin: 0 0 24px 0 !important;
    padding: 0 0 24px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10) !important;
    font-weight: 400 !important;
}

/* Inject "Visit Reason" label above the dropdown */
body.single-provider [id^="nextpatient-widget"] .nextpatient-reason-select::before {
    content: "Visit Reason";
    display: block;
    font-family: var(--sd-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--sd-blue-gray);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

/* The <select> itself — rounded translucent card with custom chevron,
   matching the Figma dropdown spec (rgba(255,255,255,0.2) fill,
   rgba(0,0,0,0.2) hairline border, 6px radius, shadow-md ring,
   18/26 dark-blue text). */
body.single-provider [id^="nextpatient-widget"] .nextpatient-reason-select select {
    width: 100% !important;
    height: 56px !important;
    padding: 14px 44px 14px 18px !important;
    margin: 0 !important;
    background-color: rgba(255, 255, 255, 0.20) !important;
    border: 1px solid rgba(0, 0, 0, 0.20) !important;
    border-radius: 6px !important;
    font-family: var(--sd-font-body) !important;
    font-size: 18px !important;
    line-height: 26px !important;
    color: var(--sd-blue-gray) !important;
    text-overflow: ellipsis !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23114671'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 24px 24px !important;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(103, 110, 118, 0.16),
        0 2px 5px rgba(103, 110, 118, 0.08) !important;
    cursor: pointer;
}

/* Focus: subtle border tint only — no thick sharp outline */
body.single-provider [id^="nextpatient-widget"] .nextpatient-reason-select select:focus,
body.single-provider [id^="nextpatient-widget"] .nextpatient-reason-select select:focus-visible {
    outline: none !important;
    border-color: var(--sd-blue-gray) !important;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.12),
        0 0 0 1px var(--sd-blue-gray),
        0 2px 5px rgba(103, 110, 118, 0.08) !important;
}

/* Schedule block container */
body.single-provider [id^="nextpatient-widget"] #nextpatient-schedule {
    margin-top: 0 !important;
}

/* Location name — Sunrise orange, semibold (Figma "Mobile, AL") */
body.single-provider [id^="nextpatient-widget"] .nextpatient-location-name {
    font-family: var(--sd-font-body) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: var(--sd-orange) !important;
    margin: 0 0 4px 0 !important;
}

/* Address line — small, dark-blue at 75% */
body.single-provider [id^="nextpatient-widget"] .nextpatient-location-address {
    font-family: var(--sd-font-body) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: var(--sd-blue-gray) !important;
    opacity: 0.75;
    margin: 0 0 16px 0 !important;
}

/* Slot grid — 2 columns, gap, full width */
body.single-provider [id^="nextpatient-widget"] .nextpatient-provider-times {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin: 0 !important;
}

/* NextPatient wraps each slot in <div style="display: inline-block">.
   Defeat the inline-block + fixed widths so grid takes over. */
body.single-provider [id^="nextpatient-widget"] .nextpatient-provider-times > div {
    display: block !important;
    width: 100% !important;
    vertical-align: initial !important;
}

/* Time-slot tile — flat (no white card, no border), dark-blue text.
   Visual edge is provided by the shared shadow-md ring on the older
   .time-preview-box / .nextpatient-slot-time rule above (kept). */
body.single-provider [id^="nextpatient-widget"] .nextpatient-slot-time {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 64px !important;
    padding: 12px 8px !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--sd-blue-gray) !important;
    font-family: var(--sd-font-body) !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: color 0.15s ease, font-weight 0.15s ease, box-shadow 0.15s ease !important;
    box-sizing: border-box !important;
}

body.single-provider [id^="nextpatient-widget"] a.nextpatient-slot-time,
body.single-provider [id^="nextpatient-widget"] a.nextpatient-slot-time:visited {
    color: var(--sd-blue-gray) !important;
}

body.single-provider [id^="nextpatient-widget"] a.nextpatient-slot-time:hover,
body.single-provider [id^="nextpatient-widget"] a.nextpatient-slot-time:focus {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--sd-blue) !important;
    font-weight: 600 !important;
    outline: none !important;
}

body.single-provider [id^="nextpatient-widget"] .nextpatient-slot-time-day {
    font-family: var(--sd-font-body) !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    padding-bottom: 4px !important;
    color: inherit !important;
}

body.single-provider [id^="nextpatient-widget"] .nextpatient-slot-time-time {
    font-family: var(--sd-font-body) !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    color: inherit !important;
}

/* "More times" — same flat tile look as the regular slots: same size,
   same height, same font. No grid-span, no solid bg, no special border. */
body.single-provider [id^="nextpatient-widget"] a.nextpatient-more-times {
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 64px !important;
    padding: 12px 8px !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--sd-blue-gray) !important;
    font-family: var(--sd-font-body) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

body.single-provider [id^="nextpatient-widget"] a.nextpatient-more-times:hover,
body.single-provider [id^="nextpatient-widget"] a.nextpatient-more-times:focus {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    color: var(--sd-blue) !important;
    font-weight: 600 !important;
}

/* Mobile: collapse to single column */
@media (max-width: 600px) {
    body.single-provider [id^="nextpatient-widget"] .nextpatient-provider-times {
        grid-template-columns: 1fr !important;
    }
}
