/*==============================================================================
    MediRed - site styles
    Loaded after the Curoxa template stylesheet (assets/css/template/style.css).
    Sections 1 to 8 come from the CISMed landing (assets/css/cismed.css).
    Brand colors are defined as RGB triplets to match the template variables,
    so they work with rgba(var(--main-color), alpha).
==============================================================================*/

/*
    1. Brand tokens
    2. Accessibility
    3. Brand logo
    4. Header
    5. Shared components
    6. Inner pages - page header
    7. Error pages (404, 503)
    8. WhatsApp
    9. Home page
    10. Search form and filters
    11. Listing
    12. Doctor card and initials
    13. Pagination
    14. Profile page
    15. Free times
    16. Legal pages
    17. Cookie consent
    18. Doctor contact (external doctors)
    19. For doctors page
    20. Booking
    21. Conditions
    22. Review
    23. Ratings
    24. Sponsored
    25. Google rating
*/

/**=====================
  1. Brand tokens
==========================**/
/* The same colors as CISMed (constitution 6.5) */
:root {
  --main-color: 0, 114, 232;
  --main-light: 213, 239, 255;
  --accent-color: 0, 182, 122;
  --secondary-color: 6, 40, 75;
  --content-color: 58, 58, 58;
  --border-color: 239, 239, 239;
  /* Darker brand blue for small text: keeps WCAG AA contrast (4.5:1) on tinted backgrounds */
  --main-text-color: 0, 94, 194;
}

/**=====================
  2. Accessibility
==========================**/
/* Entrance animations (AOS) start off-screen; never let them create horizontal scroll */
html,
body {
  overflow-x: clip;
}

/* The template gives buttons and links a display of their own, which would show them even when hidden */
[hidden] {
  display: none !important;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 25px;
  background-color: rgba(var(--main-color), 1);
  color: rgba(var(--white), 1);
}

.theme-title .subtitle,
.home-content .subtitle,
.navbar-menu .menu-item.active,
.breadcrumb .breadcrumb-item.active {
  color: rgba(var(--main-text-color), 1);
}

:focus-visible {
  outline: 2px solid rgba(var(--main-color), 1);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/**=====================
  3. Brand logo
==========================**/
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.brand-mark img {
  width: clamp(36px, 2.9vw, 44px);
  height: auto;
  margin: 0 !important;
}

.brand-mark .brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(var(--secondary-color), 1);
}

.brand-mark .brand-name span {
  color: rgba(var(--main-color), 1);
}

.brand-mark-light .brand-name,
.brand-mark-light .brand-name span {
  color: rgba(var(--white), 1);
}

.brand-mark-light .brand-name span {
  opacity: 0.8;
}

/**=====================
  4. Header
==========================**/
header .brand-logo img {
  height: auto;
}

/* Spanish uses sentence case: undo the template's capitalize */
h1,
.navbar-menu .menu-item {
  text-transform: none;
}

header .right-btns .btn-main > span > span {
  padding: 0;
  background: none;
}

/* "Contáctanos" (WhatsApp): on narrow phones the menu, the logo and the label do not fit in one row,
   so the button keeps only the WhatsApp icon; its aria-label still names it */
header .btn-header-contact .whatsapp-icon {
  color: #1da851;
}

@media (max-width: 399px) {
  header .btn-header-contact .btn-label {
    display: none;
  }

  header .btn-header-contact > span {
    padding: 10px 14px;
  }
}

header .menu-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(var(--black), 1);
}

/* Off-canvas menu: keep its links out of the keyboard tab order while it is closed */
@media (max-width: 1199px) {
  .navbar-menu .menu-items {
    visibility: hidden;
    transition: left 0.3s ease-out, visibility 0s linear 0.3s;
  }

  .navbar-menu .menu-items.open {
    visibility: visible;
    transition: left 0.3s ease-out, visibility 0s;
  }

  .navbar-menu .menu-pill {
    display: none;
  }
}

/* Desktop: logo left, centered iOS-style segmented navigation, action button right */
@media (min-width: 1200px) {
  header#header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  header#header .brand-logo {
    justify-self: start;
  }

  header#header .navbar-menu {
    justify-self: center;
  }

  header#header .right-btns {
    justify-self: end;
    margin-left: 0;
  }

  .navbar-menu .menu-items {
    gap: 2px;
    padding: 5px;
    border: 1px solid rgba(var(--main-color), 0.12);
    border-radius: 50px;
    background-color: rgba(var(--main-color), 0.06);
  }

  .navbar-menu .menu-link-item {
    position: relative;
    z-index: 1;
  }

  .navbar-menu .menu-items .menu-item.first-item {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    color: rgba(var(--secondary-color), 1);
    transition: color 0.3s ease;
  }

  .navbar-menu .menu-items > li:hover > a.menu-item {
    color: rgba(var(--main-text-color), 1) !important;
  }

  .navbar-menu .menu-items > li > a.menu-item.active,
  .navbar-menu .menu-items > li:hover > a.menu-item.active {
    color: rgba(var(--white), 1) !important;
  }

  /* Page load: the active link carries the pill look itself, so nothing moves or flickers */
  .navbar-menu .menu-items .menu-item.first-item.active,
  .navbar-menu .menu-pill {
    background: linear-gradient(180deg, rgba(var(--main-color), 1) 0%, rgba(var(--main-text-color), 1) 100%);
    box-shadow: 0 6px 16px -6px rgba(var(--main-text-color), 0.7);
  }

  .navbar-menu .menu-pill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 50px;
    opacity: 0;
    pointer-events: none;
    /* The template animates every menu <li>; the pill is moved only by main.js (Web Animations API) */
    transition: none;
  }

  /* After a click: the sliding pill takes over from the static highlight until the next page loads */
  .navbar-menu .menu-items.is-sliding .menu-pill {
    opacity: 1;
  }

  .navbar-menu .menu-items.is-sliding .menu-item.first-item.active {
    background: none;
    box-shadow: none;
  }
}

/**=====================
  5. Shared components
==========================**/
.theme-title .subtitle svg,
.home-content .subtitle svg {
  width: 16px;
  height: 16px;
}

/* Template buttons used on a <button>: drop the browser's own border and background */
button.btn-main,
button.btn-outline {
  border: 0;
  background: none;
  cursor: pointer;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(var(--content-color), 1);
}

.check-list li + li {
  margin-top: 14px;
}

.check-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 1px;
  border-radius: 50%;
  background-color: rgba(var(--accent-color), 0.12);
  color: rgba(var(--accent-color), 1);
  stroke-width: 3;
}

/**=====================
  6. Inner pages - page header
==========================**/
.breadcrumb-section .breadcrumb svg {
  width: 16px;
  height: 16px;
}

.breadcrumb-section .breadcrumb-titles h1 {
  color: rgba(var(--secondary-color), 1);
}

.breadcrumb-section .breadcrumb-titles p {
  color: rgba(var(--content-color), 1);
}

/* Anchored sections must not hide behind the sticky header */
[id] {
  scroll-margin-top: 110px;
}

/**=====================
  7. Error pages (404, 503)
==========================**/
/* The landing's "not found" page, shared by the 404 and the 503 page */
.error-page-section {
  padding: clamp(160px, 14vw, 220px) 0 clamp(60px, 7vw, 100px);
  background: linear-gradient(180deg, #e6f1fd 0%, rgba(249, 248, 246, 1) 100%);
}

.error-page-content {
  text-align: center;
}

.error-page-content > p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: rgba(var(--content-color), 1);
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-page-content > .error-page-code {
  max-width: none;
  margin: 0 0 8px;
  text-align: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(110px, 16vw, 220px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, rgba(var(--main-color), 1), rgba(var(--accent-color), 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page-section h1 {
  margin-bottom: 14px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  color: rgba(var(--secondary-color), 1);
}

/**=====================
  8. WhatsApp
==========================**/
.whatsapp-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: clamp(78px, 6vw, 92px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 50px;
  color: #fff;
  background-color: #25d366;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-color: #25d366;
  animation: whatsapp-pulse 2.4s ease-out infinite;
}

/* Keep the floating button out of the way while the mobile menu is open */
.menu-open .whatsapp-float {
  opacity: 0;
  pointer-events: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.75);
}

.whatsapp-float .whatsapp-icon {
  width: 30px;
  height: 30px;
}

.whatsapp-float-label {
  display: none;
  padding-right: 6px;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .whatsapp-float:hover .whatsapp-float-label,
  .whatsapp-float:focus-visible .whatsapp-float-label {
    display: inline;
  }
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; }
}

/**=====================
  9. Home page
==========================**/
.home-hero {
  padding: clamp(150px, 13vw, 210px) 0 clamp(50px, 6vw, 90px);
  background: linear-gradient(180deg, #e6f1fd 0%, rgba(249, 248, 246, 1) 100%);
}

.home-hero-titles {
  max-width: 760px;
  margin: 0 auto clamp(28px, 3vw, 40px);
  text-align: center;
}

.home-hero h1 {
  margin-bottom: 14px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: rgba(var(--secondary-color), 1);
}

.home-hero-titles p {
  margin: 0;
  font-size: clamp(16px, 1.2vw, 19px);
  color: rgba(var(--content-color), 1);
}

.home-search {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid rgba(var(--main-color), 0.12);
  border-radius: 20px;
  background-color: rgba(var(--white), 1);
  box-shadow: 0 24px 60px -30px rgba(var(--secondary-color), 0.35);
}

/* Phones: one column; tablets: two; desktop: the four selects, then the name beside the button */
.home-search-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.home-search-action {
  display: flex;
  align-items: flex-end;
}

@media (min-width: 576px) {
  .home-search-fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .home-search-fields {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-search-name {
    grid-column: span 3;
  }
}

.home-directory .theme-title {
  margin-bottom: clamp(20px, 2.4vw, 32px);
  text-align: center;
}

.home-directory .theme-title h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(26px, 2.6vw, 40px);
  color: rgba(var(--secondary-color), 1);
}

.directory-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.directory-links a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(var(--border-color), 1);
  border-radius: 14px;
  background-color: rgba(var(--white), 1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.directory-links a:hover {
  border-color: rgba(var(--main-color), 0.35);
  box-shadow: 0 12px 30px -18px rgba(var(--secondary-color), 0.35);
}

.directory-link-icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: rgba(var(--main-color), 1);
  background-color: rgba(var(--main-color), 0.08);
}

.directory-link-icon svg {
  width: 22px;
  height: 22px;
}

.directory-link-name {
  font-weight: 600;
  line-height: 1.3;
  color: rgba(var(--secondary-color), 1);
}

.directory-link-count {
  font-size: 14px;
  color: rgba(var(--content-color), 1);
}

.home-directory-more {
  margin-top: clamp(24px, 2.6vw, 36px);
  text-align: center;
}

/**=====================
  10. Search form and filters
==========================**/
.filter-box .filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(var(--secondary-color), 1);
}

.filter-box .filter-label svg {
  width: 18px;
  height: 18px;
  color: rgba(var(--main-color), 1);
}

.filter-box .form-select,
.filter-box .form-control {
  border: 1px solid rgba(var(--border-color), 1);
  border-radius: 10px;
  font-size: 16px;
  background-color: rgba(var(--white), 1);
}

.filter-box .form-select:disabled {
  color: rgba(var(--content-color), 0.7);
  background-color: rgba(var(--border-color), 0.5);
}

.listing-section .listing-sidebar .filter-listing .filter-box + .filter-box {
  margin-top: 20px;
}

.listing-section .listing-sidebar .filter-submit {
  margin-top: 24px;
}

.listing-section .listing-sidebar .clear-btn {
  margin-top: 16px;
  text-align: center;
  font-weight: 500;
  color: rgba(var(--main-text-color), 1);
}

.listing-section .mobile-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 16px;
  border: 1px solid rgba(var(--border-color), 1);
  border-radius: 50px;
  font-weight: 500;
  text-transform: none;
  color: rgba(var(--secondary-color), 1);
  background-color: rgba(var(--white), 1);
}

.listing-section .mobile-filter-btn svg {
  width: 18px;
  height: 18px;
}

.filter-drawer-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.filter-close {
  padding: 4px;
  border: 0;
  background: none;
  color: rgba(var(--secondary-color), 1);
}

/* Phones: the drawer and its overlay sit above the sticky header. While closed, its fields stay out of
   the keyboard tab order, as the off-canvas menu does (section 4) */
@media (max-width: 991px) {
  .listing-section .listing-sidebar {
    z-index: 1001;
    visibility: hidden;
    transition: left 0.5s ease, visibility 0s linear 0.5s;
  }

  .listing-section .listing-sidebar.open {
    visibility: visible;
    transition: left 0.5s ease, visibility 0s;
  }

  .filters-open .whatsapp-float {
    opacity: 0;
    pointer-events: none;
  }

  .listing-section .filter-overlay {
    z-index: 1000;
    cursor: pointer;
  }
}

@media (min-width: 992px) {
  .listing-section .filter-overlay {
    display: none;
  }

  .listing-section .listing-sidebar {
    position: sticky;
    top: 120px;
  }
}

.listing-section .search-bar {
  display: flex;
  align-items: center;
}

.listing-section .search-bar input {
  padding-right: 56px;
}

.listing-section .search-bar .search-submit {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: rgba(var(--white), 1);
  background-color: rgba(var(--main-color), 1);
}

.listing-section .search-bar .search-submit svg {
  width: 20px;
  height: 20px;
}

/**=====================
  11. Listing
==========================**/
.listing-section .filter-apply-tab .left-content .found-tab {
  margin: 0;
}

.listing-section .applied-label {
  font-size: 14px;
  color: rgba(var(--content-color), 1);
}

/* Chips: the darker blue keeps their text and links readable on the tinted background (WCAG AA) */
.listing-section .filter-apply-tab .left-content .applied-filters li {
  color: rgba(var(--main-text-color), 1);
}

.listing-section .filter-apply-tab .left-content .applied-filters li a {
  color: inherit;
}

.listing-empty {
  padding: clamp(30px, 4vw, 50px) 20px;
  border: 1px dashed rgba(var(--main-color), 0.25);
  border-radius: 16px;
  text-align: center;
  background-color: rgba(var(--white), 1);
}

.listing-empty p {
  margin-bottom: 18px;
  font-size: 17px;
  color: rgba(var(--content-color), 1);
}

/**=====================
  12. Doctor card and initials
==========================**/
.listing-section .doctor-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.listing-section .doctor-box .doctor-top {
  flex: 1;
}

.listing-section .doctor-box .doctor-top .dr-content h2 a {
  color: rgba(var(--secondary-color), 1);
}

.listing-section .doctor-box .doctor-top .dr-content h2 a:hover {
  color: rgba(var(--main-text-color), 1);
}

.listing-section .doctor-box .dr-specialties {
  margin: 0;
  font-size: 15px;
  color: rgba(var(--main-text-color), 1);
}

.listing-section .doctor-box .dr-specialties a {
  color: inherit;
}

.listing-section .doctor-box .doctor-top .dr-content ul li a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(var(--content-color), 0.3);
  text-underline-offset: 3px;
}

.listing-section .doctor-box .ctc-btn a {
  width: 100%;
}

/* The initials: the common case while few doctors publish a photo. Same size and shape as the photo */
.dr-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(var(--main-text-color), 1);
  background-color: rgba(var(--main-light), 1);
}

/* The template styles every span of .dr-img as its "online" dot; the initials are not that dot */
.listing-section .doctor-box .doctor-top .dr-img .dr-initials {
  position: static;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/**=====================
  13. Pagination
==========================**/
.theme-pagination .pagination {
  flex-wrap: wrap;
}

.theme-pagination .pagination .page-link {
  display: grid;
  place-items: center;
  color: rgba(var(--secondary-color), 1);
}

.theme-pagination .pagination .page-link svg {
  width: 18px;
  height: 18px;
}

.theme-pagination .pagination .page-item.disabled .page-link {
  opacity: 0.45;
}

.theme-pagination .pagination .page-gap .page-link {
  border: 0;
  background: none;
}

/**=====================
  14. Profile page
==========================**/
.profile-header .dr-main-box {
  margin: clamp(18px, 2vw, 28px) 0 0;
}

.profile-header .dr-avatar {
  flex-shrink: 0;
  width: 128px;
  height: 128px;
}

.profile-header .dr-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(var(--main-color), 0.1);
  object-fit: cover;
}

.profile-header .dr-avatar .dr-initials {
  border-radius: 12px;
  font-size: 40px;
}

@media (max-width: 991px) {
  .profile-header .dr-avatar {
    width: 100px;
    height: 100px;
  }

  .profile-header .dr-avatar .dr-initials {
    font-size: 32px;
  }
}

.profile-header h1 {
  margin-bottom: 6px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(26px, 2.6vw, 38px);
  color: rgba(var(--secondary-color), 1);
}

.profile-header .dr-specialties {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 500;
  color: rgba(var(--main-text-color), 1);
}

.profile-header .exp-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.profile-header .exp-details p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: rgba(var(--content-color), 1);
}

.profile-header .exp-details svg {
  width: 18px;
  height: 18px;
  color: rgba(var(--main-color), 1);
}

.profile-header .exp-details a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(var(--content-color), 0.3);
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .profile-header .exp-details {
    justify-content: center;
  }
}

.profile-section .dr-detail-box + .dr-detail-box {
  margin-top: 24px;
}

/* On phones the two columns become one list, so the reviews and Google's rating can go last, after the payment
   methods, as the owner set. The columns step aside (display: contents) and their boxes are spaced by the gap */
@media (max-width: 991.98px) {
  .profile-section .profile-columns {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-right: 0;
    margin-left: 0;
    margin-top: 0;
  }

  .profile-section .profile-columns > [class*="col-"] {
    display: contents;
  }

  .profile-section .profile-columns .dr-detail-box {
    margin-top: 0;
  }

  .profile-section .profile-columns .reviews-box,
  .profile-section .profile-columns .google-rating-box {
    order: 1;
  }
}

.profile-specialties ul li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 12px 0;
}

.profile-specialties ul li + li {
  border-top: 1px solid rgba(var(--border-color), 1);
}

.profile-specialties .specialty-name {
  font-weight: 600;
  color: rgba(var(--secondary-color), 1);
}

.profile-specialties .specialty-license {
  font-size: 15px;
  color: rgba(var(--content-color), 1);
}

.profile-specialties .specialty-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: #007a52;
  background-color: rgba(var(--accent-color), 0.12);
}

.profile-specialties .specialty-verified svg {
  width: 16px;
  height: 16px;
}

.profile-biography {
  margin: 0;
  color: rgba(var(--content-color), 1);
}

.education-sec .edu-content h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.education-sec .edu-content p {
  margin: 0;
  color: rgba(var(--content-color), 1);
}

.service-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
}

.service-list li + li {
  border-top: 1px solid rgba(var(--border-color), 1);
}

.service-list p {
  margin: 0;
}

.service-list .service-name {
  font-weight: 500;
  color: rgba(var(--secondary-color), 1);
}

.service-list .service-specialty {
  font-size: 14px;
  color: rgba(var(--content-color), 1);
}

.service-list .service-price {
  flex-shrink: 0;
  font-weight: 600;
  color: rgba(var(--main-text-color), 1);
}

.consultation-places {
  color: rgba(var(--content-color), 1);
}

.place-box {
  height: 100%;
  padding: 16px;
  border: 1px solid rgba(var(--border-color), 1);
  border-radius: 12px;
}

.place-box h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.place-box p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  color: rgba(var(--content-color), 1);
}

.place-box p svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: rgba(var(--main-color), 1);
}

.place-box p a {
  color: rgba(var(--main-text-color), 1);
}

.place-box .place-extension {
  margin-left: 6px;
}

.place-box .place-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: rgba(var(--main-text-color), 1);
}

.place-box .place-map svg {
  width: 16px;
  height: 16px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tags li {
  padding: 5px 12px;
  border: 1px solid rgba(var(--border-color), 1);
  border-radius: 50px;
  font-size: 15px;
  color: rgba(var(--secondary-color), 1);
}

.profile-tags li a {
  color: rgba(var(--main-text-color), 1);
}

.profile-social li + li {
  margin-top: 10px;
}

.profile-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: rgba(var(--main-text-color), 1);
}

.profile-social svg {
  width: 18px;
  height: 18px;
}

/**=====================
  15. Free times
==========================**/
.availability-box .schedule + .schedule {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--border-color), 1);
}

.availability-box .schedule h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.availability-box .schedule-until,
.availability-box .availability-failed {
  font-size: 15px;
  color: rgba(var(--content-color), 1);
}

.week-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.week-tablist [role="tab"] {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid rgba(var(--border-color), 1);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(var(--secondary-color), 1);
  background-color: rgba(var(--white), 1);
}

.week-tablist [role="tab"][aria-selected="true"] {
  border-color: rgba(var(--main-color), 1);
  color: rgba(var(--white), 1);
  background-color: rgba(var(--main-color), 1);
}

/* Without JavaScript every week is shown under its title; with tabs, the tab names the week */
.week-title {
  margin: 16px 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(var(--secondary-color), 1);
}

.tabs-ready .week-title {
  display: none;
}

.free-day + .free-day {
  margin-top: 14px;
}

.free-day-date {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(var(--secondary-color), 1);
}

.free-day-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.free-day-times li {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: rgba(var(--main-text-color), 1);
  background-color: rgba(var(--main-color), 0.08);
}

/**=====================
  16. Legal pages
==========================**/
/* From the CISMed landing; the template's .terms-section styles the table of contents and the lists */
.legal-section .list-group {
  top: 110px;
}

.legal-section .list-group > span {
  display: block;
}

.legal-content article {
  padding-top: 12px;
}

.legal-content article + article {
  margin-top: clamp(24px, 3vw, 36px);
}

.legal-content h2 {
  color: rgba(var(--secondary-color), 1);
  font-weight: 600;
}

.legal-content p,
.legal-content li {
  line-height: 1.7;
  color: rgba(var(--content-color), 1);
}

.legal-content a {
  font-weight: 500;
  color: rgba(var(--main-text-color), 1);
}

.legal-updated {
  font-size: 14px;
}

/**=====================
  17. Cookie consent
==========================**/
/* From the CISMed landing. The banner exists only when analytics_enabled() (production hosts with a GA4 id) */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(760px, calc(100% - 32px));
  padding: 16px 18px;
  border: 1px solid rgba(var(--main-color), 0.12);
  border-radius: 20px;
  background-color: rgba(var(--white), 1);
  box-shadow: 0 24px 60px -20px rgba(var(--secondary-color), 0.35);
  transform: translateX(-50%);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cookie-banner-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(var(--content-color), 1);
}

.cookie-banner-content a {
  font-weight: 500;
  color: rgba(var(--main-text-color), 1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: rgba(var(--main-color), 1);
  background-color: rgba(var(--main-color), 0.08);
}

.cookie-banner-icon svg {
  width: 24px;
  height: 24px;
}

.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-banner-actions button span {
  padding: 9px 20px;
  font-size: 15px;
}

/* While the banner is visible, lift the WhatsApp button so they do not overlap */
body:has(.cookie-banner:not([hidden])) .whatsapp-float {
  bottom: 150px;
}

@media (max-width: 767px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    bottom: 12px;
  }

  .cookie-banner-icon {
    display: none;
  }

  .cookie-banner-actions button {
    flex: 1;
  }

  .cookie-banner-actions button span {
    width: 100%;
  }

  body:has(.cookie-banner:not([hidden])) .whatsapp-float {
    bottom: 220px;
  }
}

/* "Preferencias de cookies" looks like the other footer links */
footer .footer-link-button {
  padding: 0;
  border: 0;
  background: none;
  font-size: clamp(14px, 1vw, 16px);
  color: rgba(var(--white), 1);
  cursor: pointer;
  transition: letter-spacing 0.5s ease;
}

footer .footer-link-button:hover {
  letter-spacing: 0.05em;
}

/**=====================
  18. Doctor contact (external doctors)
==========================**/
/* The phone or WhatsApp button of a doctor who cannot be booked (docs/specs/external-doctors.md) */
/* «Contactar» in the profile header jumps to the block, which phones show below the main column */
.profile-header .profile-contact-link {
  display: inline-flex;
  margin-top: 16px;
}

.profile-header .profile-contact-link svg {
  width: 18px;
  height: 18px;
}

.contact-box > p {
  margin-bottom: 16px;
  color: rgba(var(--content-color), 1);
}

.contact-box .contact-button {
  display: flex;
  width: 100%;
}

.contact-box .contact-button span {
  justify-content: center;
  width: 100%;
  gap: 8px;
  overflow-wrap: anywhere;
}

.contact-box .contact-button svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.contact-box .contact-phone {
  margin: 10px 0 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: rgba(var(--content-color), 1);
}

/**=====================
  19. For doctors page
==========================**/
.for-doctors-section .theme-title {
  margin-bottom: clamp(20px, 2.4vw, 32px);
}

.for-doctors-section .theme-title h2 {
  text-transform: none;
}

.for-doctors-list {
  width: fit-content;
  max-width: 760px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.for-doctors-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid rgba(var(--border-color), 1);
  border-radius: 20px;
  background-color: rgba(var(--white), 1);
}

.for-doctors-card h3 {
  margin: 16px 0 10px;
  color: rgba(var(--secondary-color), 1);
}

.for-doctors-card p {
  margin-bottom: 12px;
  color: rgba(var(--content-color), 1);
}

.for-doctors-card > .btn-main,
.for-doctors-card > .btn-outline {
  margin-top: auto;
}

.for-doctors-card .btn-outline svg {
  width: 16px;
  height: 16px;
}

.for-doctors-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: rgba(var(--main-color), 1);
  background-color: rgba(var(--main-color), 0.08);
}

.for-doctors-card-icon svg {
  width: 24px;
  height: 24px;
}

.for-doctors-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding: 0;
  margin: 6px 0 8px;
  list-style: none;
}

.for-doctors-prices li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  background-color: rgba(var(--main-color), 0.06);
}

.for-doctors-period {
  font-size: 14px;
  color: rgba(var(--content-color), 1);
}

.for-doctors-price {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(var(--secondary-color), 1);
}

.for-doctors-note {
  font-size: 13px;
  color: rgba(var(--main-text-color), 1);
}

.for-doctors-prices-note {
  font-size: 14px;
}

.for-doctors-terms {
  margin: 12px 0 0;
  font-size: 14px;
}

.for-doctors-terms a {
  font-weight: 500;
  color: rgba(var(--main-text-color), 1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 575px) {
  .for-doctors-prices {
    grid-template-columns: 1fr;
  }
}

/**=====================
  20. Booking
==========================**/
/* The booking of a free time (docs/specs/booking.md). The template's .booking-wrap, .summary-box and
   .booking-success-detail give the boxes; these rules add the steps, the fields, the messages and the
   initials in place of the template's photo */

/* «Agendar cita» in the profile header, as «Contactar» for an external doctor */
.profile-header .profile-book-link {
  display: inline-flex;
  margin-top: 16px;
}

.profile-header .profile-book-link svg {
  width: 18px;
  height: 18px;
}

.availability-box .availability-intro {
  margin-bottom: 12px;
  font-size: 15px;
  color: rgba(var(--content-color), 1);
}

/* A free time of the profile is a link to its booking page */
.free-day-times a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: rgba(var(--main-text-color), 1);
  background-color: rgba(var(--main-color), 0.08);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.free-day-times li:has(a) {
  padding: 0;
  background: none;
}

.free-day-times a:hover,
.free-day-times a:focus-visible {
  color: rgba(var(--white), 1);
  background-color: rgba(var(--main-color), 1);
}

.booking-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.booking-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: rgba(var(--content-color), 1);
}

.booking-step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  background-color: rgba(var(--black), 0.05);
}

.booking-steps .is-current {
  font-weight: 600;
  color: rgba(var(--secondary-color), 1);
}

.booking-steps .is-current .booking-step-number {
  color: rgba(var(--white), 1);
  background-color: rgba(var(--main-color), 1);
}

.booking-steps .is-done .booking-step-number {
  color: rgba(var(--main-text-color), 1);
  background-color: rgba(var(--main-color), 0.12);
}

.booking-wrap .main-title svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: rgba(var(--main-color), 1);
}

.booking-intro {
  margin-bottom: 16px;
  color: rgba(var(--content-color), 1);
}

.booking-alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-left: 4px solid #c0392b;
  border-radius: 8px;
  font-weight: 500;
  color: #8e2a1f;
  background-color: #fdecea;
}

.booking-field .field-hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(var(--content-color), 1);
}

.booking-field .field-error {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #b3261e;
}

.booking-field .form-control.is-invalid {
  border-color: #b3261e;
  background-image: none;
}

#booking-curp {
  text-transform: uppercase;
}

/* The hidden field bots fill in (constitution 6.8) */
.booking-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-submit {
  margin-top: 24px;
}

.booking-submit[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.booking-submit svg {
  width: 18px;
  height: 18px;
}

.booking-privacy {
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(var(--content-color), 1);
}

.booking-privacy a,
.booking-link {
  font-weight: 500;
  color: rgba(var(--main-text-color), 1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--border-color), 1);
}

.booking-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  font-size: 15px;
  background: none;
}

.booking-link svg {
  width: 16px;
  height: 16px;
}

.booking-link[disabled] {
  color: rgba(var(--content-color), 0.7);
  text-decoration: none;
  cursor: default;
}

.booking-name {
  margin-bottom: 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(var(--secondary-color), 1);
}

.booking-slot-gone p {
  margin-bottom: 20px;
}

.booking-summary-box .dr-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.booking-summary-box .dr-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.booking-summary-box .dr-avatar .dr-initials {
  border-radius: 10px;
  font-size: 22px;
}

.booking-summary-box .dr-details h3 {
  margin-bottom: 2px;
  font-size: 17px;
}

.booking-change {
  display: flex;
  width: 100%;
  margin-top: 16px;
}

.booking-change span {
  justify-content: center;
  width: 100%;
}

.booking-success-detail .booking-address {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(var(--content-color), 1);
}

.booking-folio-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: rgba(var(--content-color), 1);
}

@media (max-width: 991px) {
  .booking-section .sticky-sec {
    position: static;
  }
}

/* The two buttons of the appointment side by side, one above the other on phones */
@media (min-width: 576px) {
  .booking-success-detail .btn-sec {
    display: flex;
    gap: 16px;
  }

  .booking-success-detail .btn-sec a {
    flex: 1 1 0;
  }

  .booking-success-detail .btn-sec a + a {
    margin-top: 0;
  }
}

/**=====================
  21. Conditions
==========================**/
/* /conditions (docs/specs/conditions.md §3): the conditions grouped by letter, as the home's directory links */
.conditions-filter {
  max-width: 420px;
  margin-bottom: 28px;
}

.conditions-filter .form-control {
  padding: 10px 14px;
}

.conditions-none {
  font-size: 17px;
  color: rgba(var(--content-color), 1);
}

.conditions-group + .conditions-group {
  margin-top: 32px;
}

.conditions-group h2 {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(var(--border-color), 1);
  font-size: 24px;
  color: rgba(var(--main-text-color), 1);
}

/**=====================
  22. Review
==========================**/
/* Rating an appointment (docs/specs/reviews.md §4): the stars are labels over radios hidden for the eye but not
   for the keyboard or a screen reader; the stars up to the one chosen are filled */
.review-rating {
  margin-bottom: 20px;
}

.review-stars {
  display: flex;
  gap: 6px;
}

.review-stars label {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  color: rgba(var(--content-color), 0.45);
  cursor: pointer;
}

.review-stars label svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}

.review-stars input:focus-visible + label {
  outline: 3px solid rgba(var(--main-color), 0.6);
  outline-offset: 2px;
}

.review-stars:has(input[value="1"]:checked) label:nth-of-type(-n + 1),
.review-stars:has(input[value="2"]:checked) label:nth-of-type(-n + 2),
.review-stars:has(input[value="3"]:checked) label:nth-of-type(-n + 3),
.review-stars:has(input[value="4"]:checked) label:nth-of-type(-n + 4),
.review-stars:has(input[value="5"]:checked) label:nth-of-type(-n + 5) {
  color: #e5a00d;
}

.review-stars:has(input[value="1"]:checked) label:nth-of-type(-n + 1) svg,
.review-stars:has(input[value="2"]:checked) label:nth-of-type(-n + 2) svg,
.review-stars:has(input[value="3"]:checked) label:nth-of-type(-n + 3) svg,
.review-stars:has(input[value="4"]:checked) label:nth-of-type(-n + 4) svg,
.review-stars:has(input[value="5"]:checked) label:nth-of-type(-n + 5) svg {
  fill: currentColor;
}

/* A field's error, in red and after an asterisk, so it is the field «Revisa los campos marcados» points to. The
   rating's error is outside the booking fields that already color theirs */
.review-rating .field-error {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #b3261e;
}

.review-rating .field-error::before,
.review-comment .field-error::before {
  content: "* ";
}

.review-comment .review-counter {
  text-align: right;
}

/* The notes are numbered with a figure in a circle, flush with the left edge of the form */
.review-notes {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: review-note;
  font-size: 15px;
  color: rgba(var(--content-color), 1);
}

.review-notes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  counter-increment: review-note;
}

.review-notes li::before {
  content: counter(review-note);
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background-color: rgba(var(--main-light), 1);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: rgba(var(--main-text-color), 1);
}

.review-notes li + li {
  margin-top: 8px;
}

.review-until {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(var(--secondary-color), 1);
}

/* A message page has no page header: like the error pages (section 7), its section clears the fixed site header,
   which otherwise covers the heading */
.review-message-section {
  padding: clamp(160px, 14vw, 220px) 0 clamp(60px, 7vw, 100px);
  background: linear-gradient(180deg, #e6f1fd 0%, rgba(249, 248, 246, 1) 100%);
}

.review-message {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.review-message h1 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3vw, 36px);
  text-transform: none;
}

.review-message p {
  margin-bottom: 24px;
  font-size: 17px;
  color: rgba(var(--content-color), 1);
}

/**=====================
  23. Ratings
==========================**/
/* MediRed's ratings and reviews (docs/specs/ratings.md): the label of the card and of the profile header, and the
   comments of the profile. The stars take the template's yellow; the numbers keep the color of the text */
.listing-section .doctor-box .doctor-top .dr-content ul li.dr-rating svg,
.dr-main-box .dr-content .exp-details .profile-rating svg,
.reviews-summary svg {
  color: #eab308;
  fill: #eab308;
}

.dr-main-box .dr-content .exp-details .profile-rating a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: inherit;
}

.dr-main-box .dr-content .exp-details .profile-rating a:hover span,
.dr-main-box .dr-content .exp-details .profile-rating a:focus-visible span {
  text-decoration: underline;
}

.reviews-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 17px;
  color: rgba(var(--content-color), 1);
}

.reviews-summary strong {
  font-size: 24px;
  line-height: 1;
  color: rgba(var(--secondary-color), 1);
}

.reviews-summary svg {
  width: 22px;
  height: 22px;
}

.reviews-note {
  margin-bottom: 0;
  font-size: 14px;
  color: rgba(var(--content-color), 1);
}

.review-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.review-item {
  padding: 16px 18px;
  border: 1px solid rgba(var(--border-color), 1);
  border-radius: 12px;
}

.review-item:focus-visible {
  outline: 3px solid rgba(var(--main-color), 0.6);
  outline-offset: 2px;
}

.review-item-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
}

.review-item-author {
  margin: 0;
  font-weight: 600;
  color: rgba(var(--secondary-color), 1);
}

.review-item-month {
  margin: 0;
  font-size: 14px;
  color: rgba(var(--content-color), 1);
}

.review-item-stars {
  margin: 6px 0 8px;
}

.review-item-stars > span[aria-hidden] {
  display: flex;
  gap: 2px;
}

.review-item-stars svg {
  width: 16px;
  height: 16px;
  color: rgba(var(--content-color), 0.35);
}

.review-item-stars svg.is-filled {
  color: #eab308;
  fill: #eab308;
}

/* The patient's line breaks are kept, and a long word never widens the page */
.review-item-text {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: rgba(var(--content-color), 1);
}

.reviews-alert {
  margin: 16px 0 0;
  font-size: 15px;
  color: rgba(var(--content-color), 1);
}

.reviews-box .reviews-more {
  margin-top: 20px;
}

.reviews-box .reviews-more[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.7;
}

/**=====================
  24. Sponsored
==========================**/
/* The label of a card the API marks as sponsored, and the note under the results (docs/specs/sponsored.md): neutral
   and discreet, never in the colors of the rating or of an alert */
.listing-section .doctor-box .doctor-top .dr-content .dr-sponsored {
  display: inline-block;
  margin: 0 0 6px;
  padding: 1px 8px;
  border-radius: 6px;
  background-color: rgba(var(--content-color), 0.08);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(var(--content-color), 1);
}

.listing-sponsored-note {
  margin: 20px 0 0;
  font-size: 13px;
  color: rgba(var(--content-color), 1);
}

/**=====================
  25. Google rating
==========================**/
/* Google's rating on the profile (docs/specs/google-rating.md), apart from MediRed's: a block of its own, with the
   link to the reviews on Google Maps and Google's attribution, "Google Maps" in Roboto and gray as Google asks */
.google-rating-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 17px;
  color: rgba(var(--content-color), 1);
}

.google-rating-summary strong {
  font-size: 24px;
  line-height: 1;
  color: rgba(var(--secondary-color), 1);
}

.google-rating-summary svg {
  width: 22px;
  height: 22px;
  color: #eab308;
  fill: #eab308;
}

.google-rating-note {
  margin-bottom: 0;
  font-size: 14px;
  color: rgba(var(--content-color), 1);
}

.google-rating-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 16px;
}

.google-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: rgba(var(--main-text-color), 1);
}

.google-rating-link svg {
  width: 16px;
  height: 16px;
}

.google-attribution {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #5e5e5e;
}
