/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Cabecera centro (botón volver) */
.tg-cabecera-centro {
  margin: 0 0 24px;
}

.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  border-radius: 6px;
  background-color: var(--accent-2);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.tg-btn:hover,
.tg-btn:focus {
  background-color: var(--accent-3);
  color: #fff;
}

.tg-btn:focus {
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}

.tg-btn__arrow {
  font-size: 1.1em;
  line-height: 1;
}

/* Cabecera pública */
@media (min-width: 769px) {
  .menu-toggle,
  .slideout-toggle,
  .close-nav-toggle {
    display: none !important;
  }
}

/* Variables y estilos para días especiales */
:root {
  --tf-color-special: #7A0E28;
  --tf-color-special-contrast: #FFFFFF;
  --tf-border-special: #7A0E28;
}

.tf-dia--especial,
.badge--especial {
  color: var(--tf-color-special);
}

.row--festivo {
  background-color: #fff;
}

.badge--especial {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--tf-border-special);
  border-radius: 0.35rem;
  font-weight: 600;
  line-height: 1;
  background-color: var(--tf-color-special-contrast);
  margin-right: 0.4rem;
}

.is-especial {
  color: var(--tf-color-special);
}

.tf-plato-especial {
  color: #7A0E28;
  font-weight: 600;
}

.tf-plato-especial-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-plato-especial-list__item + .tf-plato-especial-list__item,
.tf-plato-especial__item + .tf-plato-especial__item,
.tf-plato-especial--fallback .tf-plato-especial__value + .tf-plato-especial__value {
  margin-top: 0.25rem;
}

.tf-plato-especial__label {
  font-weight: 700;
}

.tf-plato-especial__value {
  display: inline-block;
}

.tf-dias-add-plato {
  margin-top: 8px;
}

.tf-dias-add-plato .button {
  margin-top: 4px;
}

/* Ajustes generales de títulos */
body.page .entry-header,
body.single .entry-header {
  margin-bottom: 16px;
}

body.page .entry-title,
body.single .entry-title {
  margin-top: 0;
  margin-bottom: 12px;
}

/* Ajustes de espaciado en móviles para cabecera y pie de página */
@media (max-width: 768px) {
  .site-content {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .separate-containers .site-main,
  .site-main {
    margin: 0;
  }

  .site-main > :first-child {
    margin-top: 0;
  }

  .site-main > :last-child {
    margin-bottom: 0;
  }

  .site-main .inside-article {
    padding: 12px 16px;
  }

  .site-main .inside-article > :first-child {
    margin-top: 0;
  }

  .site-main .inside-article > .entry-header {
    margin-bottom: 12px;
  }

  .site-main .inside-article > *,
  .site-main .inside-article .entry-content > * {
    margin-left: 0;
    margin-right: 0;
  }

  .site-main .inside-article .entry-content > * {
    max-width: 100%;
  }

  .site-main .inside-article > :last-child,
  .site-main .inside-article .entry-content > :last-child {
    margin-bottom: 0;
  }

  .site-main .inside-article .wp-block-group,
  .site-main .inside-article .wp-block-columns,
  .site-main .inside-article .wp-block-column,
  .site-main .inside-article .gb-container,
  .site-main .inside-article .nf-form-cont .nf-form-content,
  .site-main .inside-article .rcp_user_fieldset,
  .site-main .inside-article .rcp_card_fieldset {
    padding-left: 0;
    padding-right: 0;
  }

  .nf-form-cont .nf-field,
  .rcp_user_fieldset p,
  .rcp_card_fieldset p {
    margin-bottom: 16px;
  }

  .nf-form-cont .nf-field:last-child,
  .rcp_user_fieldset p:last-child,
  .rcp_card_fieldset p:last-child {
    margin-bottom: 0;
  }

  .rcp_user_fieldset .half-row,
  .rcp_card_fieldset .half-row {
    width: 100%;
    float: none;
  }

  /* Menú de accesos rápidos tras el título (Mis proyectos) */
  .page-template-page-mis-proyectos
    .entry-content
    :is(
      .gb-headline-4c1f1f05,
      .gb-headline-53fd862c,
      .gb-headline-dd70e919
    ) {
    margin: 0;
  }

  .page-template-page-mis-proyectos
    .entry-content
    :is(
      .gb-headline-4c1f1f05,
      .gb-headline-53fd862c,
      .gb-headline-dd70e919
    )
    +
    :is(
      .gb-headline-4c1f1f05,
      .gb-headline-53fd862c,
      .gb-headline-dd70e919
    ) {
    margin-top: 12px;
  }

  .page-template-page-mis-proyectos
    .entry-content
    :is(
      .gb-headline-4c1f1f05,
      .gb-headline-53fd862c,
      .gb-headline-dd70e919
    )
    a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background-color: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: inherit;
  }
}

/* Ajustes de espaciado en móviles para cabecera y pie de página */
@media (max-width: 768px) {
  .site-content {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .site-main {
    margin-bottom: 0;
  }

  .site-main > :first-child {
    margin-top: 0;
  }

  .site-main > :last-child {
    margin-bottom: 0;
  }
}

table tr.row--especial > td,
table tr.row--especial > th {
  border-color: var(--tf-border-special);
  color: #5b1025;
}

table tr.row--especial > td {
  background-color: rgba(122, 14, 40, 0.08);
}

table tr.row--especial > td:first-child .badge--especial {
  margin-right: 0.6rem;
}

.tf-dia-festivo {
  background-color: #fff;
}

.tf-dia-festivo .tf-festivo-plato__value {
  display: block;
  color: #C62828;
  font-weight: 600;
}

.tf-dia-festivo .badge--especial {
  margin-right: 0.6rem;
}

.tf-festivo-plato {
  padding: 0.15rem 0;
}

.tf-festivo-plato__value + .tf-festivo-plato__value {
  margin-top: 0.2rem;
}

table tr.row--festivo > td,
table tr.row--festivo > th {
  background-color: #fff;
}

.tf-review-help {
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid #d0d7de;
  border-left-width: 4px;
  border-left-color: var(--tf-border-special);
  border-radius: 6px;
  background: #f6f8fa;
  color: #24292f;
}

.tf-review-help summary {
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  outline: none;
}

.tf-review-help[open] summary {
  margin-bottom: 12px;
}

.tf-review-help ol {
  margin: 0 0 16px 20px;
  padding: 0;
}

.tf-review-help p {
  margin: 0 0 12px;
}

@media (min-width: 769px) {
  .menu-toggle,
  .main-navigation .menu-toggle,
  .has-inline-mobile-toggle .menu-toggle,
  .mobile-menu-control-wrapper {
    display: none !important;
  }
}

@media print {
  .tf-dia-festivo,
  table tr.row--festivo > td,
  table tr.row--festivo > th {
    background-color: #fff !important;
  }
}

/*Elena - Errores disenyo 15-03-2024*/
#rcp_agree_to_terms_wrap > label > a{
        color: #000;
}
/* body pages */
body.home {
  background-color:#fff!important;
}

/* blocks */
/* image block */
.wp-block-image.custom-block figure {
  width:100%;
}

.wp-block-image.custom-block figure > img {
  width:100%;
}


/* svg */
.svg-transparent svg {
  color: transparent;
}

@media (min-width:768px) {
  .before-circle {
    position:relative;
  }

  .before-circle:before {
    content: '';
    position: absolute;
    top: -11px;
    left: -7.5px;
    background-color: var(--accent);
    border-radius: 90px;
    width: 12px;
    height: 12px;
  }

  .before-circle:after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: -7.5px;
    background-color: var(--accent);
    border-radius: 90px;
    width: 12px;
    height: 12px;
  } 
}

/* generate blocks accordion */
.wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg {
  width:36px;
  height:36px;
}

@media (min-width: 600px) {
  /*
   * Hide the close toggle once the responsive menu transitions out of its
   * mobile-only state. Without the !important flag WordPress core styles can
   * re-display the element, so we force the override for wider layouts.
   */

  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close {
    display: none !important;
  }
}

@media (min-width:1025px) {
  /*
   * Hide the responsive navigation toggles on desktop resolutions.
   * WordPress 6.5+ wraps the responsive markup in a dialog container,
   * so we target both the open/close buttons and the dialog shell to
   * ensure no modal controls are displayed on large screens.
   */
  .tf-desktop-nav-toggle {
    display:none !important;
  }

  /*
   * Force the dialog wrapper to behave like a neutral wrapper so the
   * primary navigation remains visible without overlay styles on desktop.
   */
  .tf-desktop-nav-dialog,
  .tf-desktop-nav-content {
    display:contents;
  }
}

.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.has-modal-open {
  background-color:var(--accent-2);
  color:#fff;
}

@media (max-width: 768px) {
  .wp-block-navigation.is-responsive .wp-block-navigation__container,
  .wp-block-navigation__responsive-container .wp-block-navigation__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .wp-block-navigation__responsive-container .wp-block-navigation__container > li {
    width: 100%;
  }

  .wp-block-navigation__responsive-container .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    white-space: normal;
    text-align: left;
  }
}

.menu-usuarios .wp-block-buttons {
  width:100%;
}

#message {
  max-width: 1140px;
  margin: 0 auto;
  border-radius: 5px;
  padding: 16px 26px;
  font-size: 20px;
  line-height: 1.2em;
}

body.page-template-eliminar-centro #message.deleted {
  margin-bottom: 250px;
}

#message.deleted > a,
#message.deleted > a:hover,
#message.error-deleted > a,
#message.error-deleted > a:hover {
  color:#fff;
  font-weight:700;
  text-decoration:underline;
  margin: 10px 0;
  display: inline-block;
}

.updated,
.deleted,
.created {
  background-color: #198754;
  color: white;
}

.updated p,
.deleted p,
.created p {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.2em;
  color:#fff;
}

.updated p > a,
.deleted p > a,
.error-deleted p > a {
  color:#fff;
  text-decoration:underline;
}

.error-deleted {
  background-color: #A30D11;
  color: white;
}

.error-deleted p {
  margin-bottom: 0;
}

.transicion {
  opacity: 0;
  visibility: hidden;
  display: none;
  animation: flashEffect 0.5s linear;
}

.botones-ingestas button.active,
.botones-semanas button.active {
  background-color: var(--accent-3);
}

.botones-semanas button:hover,
.botones-ingestas button:hover {
  background-color: #f4be2e99!important;
  color: var(--accent-2);
}

/* SELECT2 */
ul.select2-results__options li {
  font-size: 14px;
  line-height: 1.2em;
}

/* Unsaved changes modal */
.tf-unsaved-modal__backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 9998;
}

.tf-unsaved-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--accent-3);
  color: #fff;
  border-radius: 6px;
  padding: 24px 28px;
  width: calc(100% - 32px);
  max-width: 520px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.25);
  z-index: 9999;
}

.tf-unsaved-modal__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.tf-unsaved-modal__text {
  font-size: 16px;
  margin: 0 0 12px;
  line-height: 1.5;
}

.tf-unsaved-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  align-items: center;
}

.tf-unsaved-modal__cancel,
.tf-unsaved-modal__confirm {
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Open Sans', sans-serif;
}

.tf-unsaved-modal__cancel {
  background-color: var(--accent-2);
  color: #fff;
  border-radius: 5px;
  padding: 10px 24px;
}

.tf-unsaved-modal__cancel:hover,
.tf-unsaved-modal__cancel:focus {
  background-color: var(--accent);
}

.tf-unsaved-modal__confirm {
  background-color: transparent;
  color: #fff;
  padding: 10px 0;
}

.tf-unsaved-modal__confirm:hover,
.tf-unsaved-modal__confirm:focus {
  text-decoration: underline;
}

/* CABECERA GLOBAL */
.gp-header nav {
  gap: 50px;
}

/* ALERTS */
.alert {
  border-radius: 5px;
  line-height: 1.5em;
  padding: 16px 20px;
  background-color: var(--accent-2);
  color: #fff!important;
  text-transform: uppercase;
  font-family: Open Sans, sans-serif;
  font-size: 20px;
  font-weight: 600;
  width: auto;
  display: inline-block;
  border: 0!important;
  margin: 0 0 250px;
}

.alert a {
  color: #fff;
  text-decoration:underline;
}

/* LISTADOS */
#listados-centro {
  width: 100%;
}

#listados-centro table {
  background-color: white;
}

.implode-plato {
  margin: 7px 0 0;
  background-color:transparent;
}

#ver-listado td {
  line-height: 1em;
}

/* ANIMACIONES */
@keyframes flashEffect {
  0% {
    opacity: 1;
  }
  13% {
    opacity: 0.75;
  }
  25% {
    opacity: 0.5;
  }
  37% {
    opacity: 0.25;
  }
  50% {
    opacity: 0;
  }
  62% {
    opacity: 0.25;
  }
  75% {
    opacity: 0.50;
  }
  87% {
    opacity: 0.75;
  }
  100% {
    opacity: 1;
  }
}

/* BIENVENIDA */
body.page-paso-a-paso,
body.page-paso-a-paso .gp-header,
body.page-benvinguda,
body.page-benvinguda .gp-header {
  background-color:var(--bg-light);
}

.tf-notification {
  max-width:1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.tf-notification > div {
  display:flex;
  gap:20px;
  justify-content: space-between;
  align-items:center;
  padding: 20px;
  margin-bottom:10px;
  background-color:#fff;
  border-radius:6px;
}

.tf-notification .item {
  display:flex;
  gap:20px;
  justify-content: flex-start;
  align-items:flex-start;
}

.tf-notification .content {
  display:flex;
  flex-direction:column;
  gap:6px;
  width: calc(100% - 24px);
}

.tf-notification .content h4 {
  font-size:18px;
  font-weight:bold;
  line-height:24px;
  color:#231f20;
  margin-bottom:0;
}

.tf-notification .content p {
  font-size:14px;
  font-weight:normal;
  line-height:1.4em;
  color:#231f20;
  margin-bottom:0;
}

.tf-notification .tf-notification-button {
  background-color: var(--accent);
  border-radius:5px;
  text-transform:uppercase;
  font-size:14px;
  line-height:40px;
  color:#fff;
  font-family: Open Sans, sans-serif;
  padding: 0 25px;
  text-align:center;
}

/* --------------------------------------------------------------
 * UI ajustes 2024-06 - tablas, navegación y layout responsive
 * -------------------------------------------------------------- */

/* 1) Editar Día Especial: asegurar ancho completo de la tabla */
body.page-template-editar-dia,
body.page-template-editar-dia-php {
  --tf-dia-padding-inline: 16px;
}

body.page-template-editar-dia .tf-dia-wrapper,
body.page-template-editar-dia-php .tf-dia-wrapper,
body.page-template-editar-dia .tf-menu-builder-wrap,
body.page-template-editar-dia-php .tf-menu-builder-wrap {
  width: 100%;
  max-width: 100%;
}

body.page-template-editar-dia .tf-menu-builder-wrap,
body.page-template-editar-dia-php .tf-menu-builder-wrap {
  display: block;
  overflow-x: auto;
}

body.page-template-editar-dia .tf-menu-builder-wrap .tf-dia-menu-builder__table,
body.page-template-editar-dia-php .tf-menu-builder-wrap .tf-dia-menu-builder__table,
body.page-template-editar-dia .tf-menu-builder-wrap table,
body.page-template-editar-dia-php .tf-menu-builder-wrap table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
}

body.page-template-editar-dia .tf-dia-wrapper .tf-menu-builder-wrap,
body.page-template-editar-dia-php .tf-dia-wrapper .tf-menu-builder-wrap {
  grid-column: 1 / -1;
}

/* 2) Menú Desktop: icono de submenú legible */
.main-navigation .menu-item-has-children > a .gp-icon,
.main-navigation .dropdown-menu-toggle .gp-icon {
  background: transparent !important;
  color: currentColor;
  fill: currentColor;
}

.main-navigation .menu-item-has-children > a svg,
.main-navigation .dropdown-menu-toggle svg {
  fill: currentColor;
}

.main-navigation .main-nav > ul > li > a,
.main-navigation .inside-navigation > ul > li > a {
  color: var(--gp-contrast, #111);
}

.main-navigation .menu-item-has-children > a:hover .gp-icon,
.main-navigation .menu-item-has-children > a:focus .gp-icon,
.main-navigation .dropdown-menu-toggle:hover .gp-icon,
.main-navigation .dropdown-menu-toggle:focus .gp-icon {
  opacity: 0.85;
}

/* 3) Menú móvil: "menu-usuarios" en una sola línea y centrado */
#menu-usuarios,
nav#menu-usuarios,
.nav--menu-usuarios,
nav.nav--menu-usuarios,
.menu-usuarios .menu,
.menu-usuarios nav,
.menu-usuarios .wp-block-navigation__container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#menu-usuarios li,
.nav--menu-usuarios li,
.menu-usuarios .menu > li,
.menu-usuarios .wp-block-navigation__container > li {
  display: inline-flex;
  align-items: center;
}

#menu-usuarios a,
.nav--menu-usuarios a,
.menu-usuarios .menu > li > a,
.menu-usuarios .wp-block-navigation__container > li > a,
.menu-usuarios .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
}

/* 4) Márgenes/padding móviles uniformes */
@media (max-width: 768px) {
  .site-content,
  .inside-article,
  .site-main .inside-article,
  .container,
  .tgf-container,
  .tf-container,
  .tf-dia-wrapper,
  .page .inside-article {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-content,
  .container,
  .tgf-container,
  .tf-container {
    overflow-x: hidden;
  }

  body.page-template-editar-dia .inside-article,
  body.page-template-editar-dia-php .inside-article {
    padding-left: var(--tf-dia-padding-inline, 16px);
    padding-right: var(--tf-dia-padding-inline, 16px);
  }
}

/* DATOS PROFESIONALES */
body.page-datos-profesionales,
body.page-datos-profesionales .gp-header,
body.page-dades-professionals ,
body.page-dades-professionals  .gp-header {
  background-color:var(--bg-light);
}

.dp-username {
  color: #000;
  line-height:1.2em;
  font-size: 38px;
  font-weight:600;
}

.dp-notice {
  color: #858585;
  max-width: 50%;
  line-height:1.5em;
  font-size:20px;
  font-weight:500;
}

@media (max-width:960px) {
  .dp-notice {
    max-width:100%;
  }
}

.dp-form {
  max-width: 768px;

}

.dp-logo {
  display:flex;
  gap:35px;
}

.dp-file {
  display:flex;
  flex-direction:column;
  gap:10px;
}

.dp-logo .avatar {
  width:auto;
  height:160px;
}

.dp-logo .holder {
  margin-bottom: 30px;
}

.dp-logo #rcp_avatar {
  font-size:20px;
}

@media (max-width:680px) {
  .dp-logo #rcp_avatar {
    max-width:195px;
  }
}

.dp-file label {
  font-size:22px!important;
  font-weight:600;
  color:#1c1c1c;
}

.dp-file p {
  color: #858585;
  line-height:1.5em;
  font-size:20px;
  font-weight:500;
  width:50%;
}

.dp-inputs p:not(.half-row) {
  clear:both;
}

.dp-inputs label {
  font-size:22px!important;
  font-weight:600;
  color:#1c1c1c;
}

.dp-inputs input,
.dp-inputs select,
.dp-inputs textarea,
.dp-inputs .dp-colegiado {
  border-radius:5px;
  width:100%;
  border:1.6px solid #858585;
  padding:5px 20px!important;
  font-size:20px;
  color:#858585;
  font-weight:500;
}

.dp-inputs textarea {
  max-width:100%;
  min-height:220px;
}

.dp-inputs .dp-colegiado {
  margin-bottom: 0;
  background-color:rgba(255,255,255,0.2);
  min-height:auto;
  line-height:30px;
  display:flex;
  justify-content: space-between;
  align-items:center;
}

.dp-inputs .half-row {
  width:calc(50% - 10px);
  float:left;
}

.dp-inputs .half-row,
.dp-inputs .wide-row {
  margin-bottom: 30px;
}

.dp-inputs #rcp_profile_last_name_wrap {
  margin-left: 10px;
}

.dp-inputs #rcp_profile_first_name_wrap {
  margin-right: 10px;
}


/* DATOS DE FACTURACIÓN */
body.page-datos-de-facturacion,
body.page-datos-de-facturacion .gp-header,
body.page-dades-de-facturacio,
body.page-dades-de-facturacio .gp-header {
  background-color:var(--bg-light);
}

.df-username {
  color: #000;
  line-height:1.2em;
  font-size: 38px;
  font-weight:600;
}

.df-notice {
  color: #858585;
  max-width: 50%;
  line-height:1.5em;
  font-size:20px;
  font-weight:500;
}

@media (max-width:960px) {
  .df-notice {
    max-width:100%;
  }
}

.df-form {
  max-width: 768px;

}

.df-inputs p:not(.half-row) {
  clear:both;
}

.df-inputs label {
  font-size:22px!important;
  font-weight:600;
  color:#1c1c1c;
}

.df-inputs input,
.df-inputs select,
.df-inputs textarea {
  border-radius:5px;
  width:100%;
  border:1.6px solid #858585;
  padding:5px 20px!important;
  font-size:20px;
  color:#858585;
  font-weight:500;
}

.df-inputs textarea {
  max-width:100%;
  min-height:220px;
}

.df-inputs .half-row {
  width:calc(50% - 10px);
  float:left;
}

.df-inputs .half-row,
.df-inputs .wide-row {
  margin-bottom: 30px;
}

/* DATOS MEMBRESÍA */
body.page-membresia,
body.page-membresia .gp-header,
body.page-dades-membresia,
body.page-dades-membresia .gp-header {
  background-color:var(--bg-light);
}

body.page-membresia table,
body.page-dades-membresia table {
  margin-bottom:60px;
}

body.page-membresia .rcp-table a button,
body.page-dades-membresia .rcp-table a button {
  margin: 0;
  border-radius: 5px;
  padding: 0;
  color: #fff;
  line-height: 40px;
  padding: 0 20px;
}

body.page-membresia .rcp-table a button:hover,
body.page-dades-membresia .rcp-table a button:hover {
  background-color: var(--accent);
}

body.page-membresia h3,
body.page-dades-membresia h3 {
  font-size:26px;
  font-weight:600;
}

body.page-membresia th,
body.page-dades-membresia th {
  border-bottom:1px solid rgba(0,0,0,.1);
  border-right:1px solid rgba(0,0,0,.1);
}

body.page-membresia th,
body.page-membresia td,
body.page-dades-membresia th,
body.page-dades-membresia td {
  font-size:22px;
  line-height:1.3em;
  color:#1c1c1c;
}

.dm-form {
  max-width: 768px;
}

.dm-inputs {
  margin-bottom:30px!important;
}

.dm-inputs.no-margin {
  margin-bottom:0!important;
}

.dm-inputs p:not(.half-row) {
  clear:both;
}

.dm-inputs label {
  font-size:22px!important;
  font-weight:600;
  color:#1c1c1c;
}

.dm-inputs input,
.dm-inputs select,
.dm-inputs textarea {
  border-radius:5px;
  width:100%;
  border:1.6px solid #858585;
  padding:5px 20px!important;
  font-size:20px;
  color:#858585;
  font-weight:500;
}

.dm-inputs textarea {
  max-width:100%;
  min-height:220px;
}

.dm-inputs .half-row {
  width:calc(50% - 10px);
  float:left;
}

.dm-inputs legend {
  margin-bottom:0;
  font-weight:600;
}

.dm-inputs label[for=rcp_email] {
  font-size:26px!important;
}

.dm-inputs .dm-mail {
  border-radius:5px;
  width:100%;
  border:1.6px solid #858585;
  padding:5px 20px!important;
  font-size:20px;
  color:#858585;
  font-weight:500;
}

.dm-inputs .dm-mail {
  margin-bottom: 0;
  background-color:rgba(255,255,255,0.2);
  min-height:auto;
  line-height:30px;
  display:flex;
  justify-content: space-between;
  align-items:center;
}

.rcp-update-billing-details-unsupported {
  display: none;
}

@media (max-width:1024px) {
  .rcp-table-wrapper .rcp-table {
    border-left:0;
  }
  .rcp-table-wrapper .rcp-table tr {
    border-right: 1px solid rgba(0,0,0,.1);
    border-left: 1px solid rgba(0,0,0,.1);
  }
  .rcp-table-wrapper .rcp-table tr td {
    border-right:0;
  }
  .rcp-table-wrapper .rcp-table tr td:last-child {
    margin-bottom:0;
  }
}

@media (min-width:901px) and (max-width:1024px) {
  .rcp-table tr,
  .rcp-table tbody {
    display:block;
  }
  .rcp-table#rcp-account-overview thead th, 
  .rcp-table#rcp-payment-history thead th {
    display:none;
  }
  .rcp-table td {
    display: block;
    margin-bottom: 0;
    padding-bottom: 23px;
  }
  .rcp-table-wrapper .rcp-table tr td:before {
    margin-bottom: 10px;
    content: attr(data-title);
    min-width: 98px;
    font-size: 1.2rem;
    line-height: 10px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    padding:10px 0;
  }
}

@media (max-width:900px) {
  .rcp-table-wrapper .rcp-table tr td:before {
    margin-bottom:10px!important;
    padding:10px 0!important;
    font-size: 1.2rem!important;
    line-height:25px!important;
  }
  #rcp-table-wrapper {
    margin-inline:0!important;
  }
  .rcp-table a button {
    white-space:unset!important;
    line-height:1.2em!important;
  }
}

/* SOPORTE */
body.page-soporte,
body.page-soporte .gp-header,
body.page-suport,
body.page-suport .gp-header {
  background-color:var(--bg-light);
}

body.page-soporte .ds-lista a,
body.page-soporte .ds-lista a mark,
body.page-suport .ds-lista a,
body.page-suport .ds-lista a mark {
  color:var(--accent)!important;
}

body.page-soporte .ds-lista a:hover,
body.page-suport .ds-lista a:hover {
  text-decoration:underline;
}


body.page-soporte h3,
body.page-suport h3 {
  font-size:26px;
  font-weight:600;
}

body.page-soporte .nf-form-cont .nf-form-fields-required,
body.page-suport .nf-form-cont .nf-form-fields-required {
  font-size:20px;
}

body.page-soporte .nf-form-cont .nf-form-content,
body.page-suport .nf-form-cont .nf-form-content {
  margin-left:0;
  margin-right:0;
  max-width:768px;
  padding:0;
}

body.page-soporte .nf-form-cont .nf-form-content label,
body.page-suport .nf-form-cont .nf-form-content label {
  font-size:22px!important;
  font-weight:600;
  color:#1c1c1c;
}

body.page-soporte .nf-form-cont .nf-form-content input,
body.page-soporte .nf-form-cont .nf-form-content select,
body.page-soporte .nf-form-cont .nf-form-content textarea,
body.page-suport .nf-form-cont .nf-form-content input,
body.page-suport .nf-form-cont .nf-form-content select,
body.page-suport .nf-form-cont .nf-form-content textarea {
  border-radius:5px;
  width:100%;
  border:1.6px solid #858585;
  padding:5px 20px!important;
  font-size:20px;
  color:#858585;
  font-weight:500;
}

body.page-soporte .nf-form-cont .nf-form-content textarea,
body.page-suport .nf-form-cont .nf-form-content textarea {
  max-width:100%;
  min-height:220px;
}

body.page-soporte .nf-form-cont .nf-form-content input[type="submit"],
body.page-suport .nf-form-cont .nf-form-content input[type="submit"] {
  border-radius:5px;
  line-height:40px;
  padding:0 20px!important;
  color:#fff;
  text-transform: uppercase;
  font-family: Open Sans, sans-serif;
  font-size: 14px;
  font-weight:600;
  width:auto;
  border:0;
  background-color:var(--accent-2);
}

body.page-soporte .nf-form-cont .nf-form-content input[type="submit"]:hover,
body.page-suport .nf-form-cont .nf-form-content input[type="submit"] {
  background-color: var(--accent);
}


#rcp_profile_submit_wrap input[type="submit"] {
  border-radius:5px;
  line-height:40px;
  padding:0 20px;
  color:#fff;
  text-transform: uppercase;
  font-family: Open Sans, sans-serif;
  font-size: 14px;
  font-weight:600;
  width:auto;
}

#rcp_profile_submit_wrap input[type="submit"]:hover {
  background-color: var(--accent);
}


/* SINGLE CENTRO*/
body.single-centro,
body.single-centro .gp-header {
  background-color:var(--bg-light);
}

body.single-centro #page,
body.page-template-menu-basal #page {
  max-width: 100%;
}

body.single-centro article {
  padding: 0 5%;
}

body.single-centro .inside-article {
  background-color:var(--bg-light)!important;
}

body.single-centro .entry-title {
  display:none;
  color:#fff;
}

body.single-centro #tabla-centros {
  background-color:#fff;
  max-width:1140px;
  padding:0;
  margin: auto;
}

body.single-centro #tabla-centros th,
body.single-centro #tabla-centros td {
  padding: 16px 26px;
}

body.single-centro #tabla-centros tbody {
  background-color: #F5F5F5;
}

body.single-centro #tabla-centros td:last-child {
  display:table-cell;
}

body.single-centro #tabla-centros td .sep:last-child,
body.page-configurar-platos #table_platos td .sep:last-child,
body.page-configurar-plats #table_platos td .sep:last-child {
  display:none;
}

body.single-centro #tabla-centros td.td-icons a {
  margin: 0 5px;
  display:inline-block;
}

body.single-centro #tabla-centros th.actions,
body.single-centro #tabla-centros td.td-icons {
  text-align:center;
}

/*body.single-centro #tabla-centros td {
  vertical-align:text-top;
}
*/
#tangram-content {
  width: 100%;
}

@media (max-width:1024px) {
  body.single-centro article {
    padding: 0 20px;
  }
  body.single-centro .inside-article {
    padding:30px 0;
  }
}


/* BOTONES SEMANAS */
#botonesSemanas {
  display:flex;
  flex-wrap:wrap;
  gap:3px;
  margin-bottom:5px;
  margin-left:40px;
  margin-top:60px;
}

#botonesSemanas button {
  padding: 8px 16px;
  box-shadow: 0px -1px 0px 0px #111 inset;
  font-size:12px;
  line-height:20px;
  color:#fff;
  font-weight:700;
  text-transform:uppercase;
  background-color:#8C817D;
}

#botonesSemanas button.active,
#botonesSemanas button:hover {
  background-color:#D63D05!important;
}


/* BOTONES INGESTAS */
#botonesIngestas {
  display:flex;
  flex-wrap:wrap;
  gap:3px;
  margin-bottom:5px;
  margin-left:40px;
}

#botonesIngestas button {
  padding: 8px 16px;
  box-shadow: 0px -1px 0px 0px #111 inset;
  font-size:12px;
  line-height:20px;
  color:#fff;
  font-weight:700;
  text-transform:uppercase;
  background-color:#8C817D;
}

#botonesIngestas button.active,
#botonesIngestas button:hover {
  background-color:#D63D05!important;
}

.submit-centro.above {
  text-align:right;
  margin-right:60px;
  margin-bottom:60px;
}

.submit-centro.below {
  text-align:left;
  margin-left:60px;
  margin-top:60px;
  margin-bottom:250px;
}

.submit-centro button {
  color: #fff;
  line-height: 40px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  background-color: var(--accent);
  padding: 0 80px;
}

@media (max-width:960px) {
  .submit-centro.above {
    text-align:left;
    margin: 40px 20px 60px 40px;
  }
}

@media (max-width:525px) {
  .submit-centro.above,
  .submit-centro.below {
    margin: 40px 20px 60px 0;
  }
  #botonesIngestas,
  #botonesSemanas {
    margin-left:0;
  }
}

/* LOGIN FORM */
#rcp_login_form p > label {
  line-height:26px;
  margin-bottom:5px;
}

.rcp_lost_password > a {
  font-size:16px;
  color:#222;
}

#rcp_login_submit,
#rcp_lostpassword_submit,
#rcp_password_submit {
  font-family: Open Sans, sans-serif;
  text-align: center;
  color: var(--base-3);
  background-color: var(--accent-2);
  font-size: 16px!important;
  font-weight: 600;
  line-height: 1.2em;
  letter-spacing: 0em;
  padding: 10px 25px;
  margin-bottom: 0;
  border-radius: 5px;
  border-style: solid;
  border-width: 2px;
  border-color: var(--accent-2);
}

#rcp_login_submit:hover,
#rcp_lostpassword_submit:hover,
#rcp_password_submit:hover {
  background-color: var(--accent-3);
  border-color: var(--accent-3);
}

#rcp_lostpassword_submit,
#rcp_password_submit {
  margin-top:10px;
}

/* CONTRATAR PLAN */
body.page-suscribirse,
body.page-suscribirse .gp-header,
body.page-subscriures,
body.page-subscriures .gp-header {
  background-color:var(--bg-light);
}

#rcp_registration_form {
  max-width: 768px;
}

.rcp_user_fieldset p:not(.half-row),
.rcp_card_fieldset p:not(.half-row) {
  clear:both;
}

.rcp_user_fieldset label,
.rcp_card_fieldset label,
.nf-form-cont label {
  font-size: 22px;
  line-height: 1.4;
  white-space: normal;
}

.rcp_user_fieldset label,
.rcp_card_fieldset label {
  font-weight:600;
  color:#1c1c1c;
}

.rcp_user_fieldset input,
.rcp_user_fieldset select,
.rcp_user_fieldset textarea,
.rcp_card_fieldset input,
.rcp_card_fieldset select,
.rcp_card_fieldset textarea {
  border-radius:5px;
  width:100%;
  max-width:100%;
  border:1.6px solid #858585;
  padding:5px 20px;
  font-size:20px;
  color:#858585;
  font-weight:500;
}

.rcp_user_fieldset textarea,
.rcp_card_fieldset textarea {
  max-width:100%;
  min-height:220px;
}

.rcp_user_fieldset .half-row,
.rcp_card_fieldset .half-row {
  width:calc(50% - 10px);
  float:left;
}

.rcp_user_fieldset .half-row,
.rcp_user_fieldset .wide-row,
.rcp_card_fieldset .half-row,
.rcp_card_fieldset .wide-row {
  margin-bottom: 30px;
}

.rcp_subscription_message {
  font-size:22px!important;
  font-weight:600!important;
  color:#1c1c1c;
}

.rcp_subscription_level {
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
  align-content:flex-start;
}

.rcp_subscription_level label {
  font-size:18px!important;
  line-height:1.5em;
}

.rcp_subscription_level input {
  width:15px;
  height:15px;
}

ul#rcp_subscription_levels div{
	color: #000 !important;
}
.rcp_level_description {
  font-size:14px!important;
  color:#858585;
}

body.page-suscribirse .rcp_registration_total table,
body.page-subscriures .rcp_registration_total table {
  border:1px solid #222!important;
  margin-top:30px;
  width:100%;
}

body.page-suscribirse .rcp_registration_total table tr,
body.page-subscriures .rcp_registration_total table tr {
  width:100%;
  border-color:rgba(0,0,0,0.1);
  padding:0 12px;
}

body.page-suscribirse .rcp_registration_total table td,
body.page-subscriures .rcp_registration_total table td {
  border:0;
}

body.page-suscribirse #rcp_submit_wrap input[type="submit"],
body.page-subscriures #rcp_submit_wrap input[type="submit"] {
  margin-top:20px;
  border-radius:5px;
  line-height:40px;
  padding:0 20px;
  color:#fff;
  text-transform: uppercase;
  font-family: Open Sans, sans-serif;
  font-size: 14px;
  font-weight:600;
  width:auto;
}

body.page-suscribirse #rcp_submit_wrap input[type="submit"]:hover,
body.page-subscriures #rcp_submit_wrap input[type="submit"]:hover {
  background-color: var(--accent);
}

body.page-suscribirse .rcp_agree_to_terms_fieldset,
body.page-suscribirse .rcp_agree_to_privacy_policy_fieldset,
body.page-subscriures .rcp_agree_to_terms_fieldset,
body.page-subscriures .rcp_agree_to_privacy_policy_fieldset {
  margin-top:24px;
}

#rcp_agree_to_terms,
#rcp_agree_to_privacy_policy {
  width:20px;
  height:20px;
  margin-top:0;
  border-color:#858585!important;
}

body.page-suscribirse .rcp_agree_to_terms_fieldset label,
body.page-suscribirse.rcp_agree_to_privacy_policy_fieldset label,
body.page-subscriures .rcp_agree_to_terms_fieldset label,
body.page-subscriures.rcp_agree_to_privacy_policy_fieldset label {
  line-height:20px;
}

/* EDITAR CENTRO / NUEVO CENTRO / ELIMINAR CENTRO */
body.page-template-editar-centro,
body.page-template-editar-centro .gp-header,
body.page-template-nuevo-centro,
body.page-template-nuevo-centro .gp-header,
body.page-template-eliminar-centro,
body.page-template-eliminar-centro .gp-header {
  background-color:var(--bg-light);
}

.header-editar-centro,
.header-nuevo-centro,
.header-eliminar-centro {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin-top: 40px;
  margin-bottom: 50px;
  padding-right: 20px;
  padding-left: 80px;
}

.header-editar-centro h2,
.header-nuevo-centro h2,
.header-eliminar-centro h2 {
  margin-bottom:0;
}

/* EDITAR DIA / NUEVO DIA / ELIMINAR DIA */
body.page-template-editar-dia,
body.page-template-editar-dia .gp-header,
body.page-template-nuevo-dia,
body.page-template-nuevo-dia .gp-header,
body.page-template-eliminar-dia,
body.page-template-eliminar-dia .gp-header {
  background-color:var(--bg-light);
}

.header-editar-dia,
.header-nuevo-dia,
.header-eliminar-dia {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin-top: 40px;
  margin-bottom: 50px;
  padding-right: 20px;
  padding-left: 80px;
}

.header-editar-dia h2,
.header-nuevo-dia h2,
.header-eliminar-dia h2 {
  margin-bottom:0;
}

.button-nuevo-dia {
  display: inline-flex;
  background-color: var(--accent-2);
  color: #ffffff;
  font-family: Open Sans, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0 25px;
  border-radius: 5px;
  margin-bottom: 30px;
}

.button-nuevo-dia:hover {
  background-color: var(--accent-3);
  color: #ffffff;
}

/* CONFIGURAR DÍAS */
body.page-dias-especiales,
body.page-dias-especiales .gp-header {
  background-color:var(--bg-light);
}

/* EDITAR / NUEVO / ELIMINAR PLATO */
body.page-template-nuevo-plato,
body.page-template-nuevo-plato .gp-header,
body.page-template-editar-plato,
body.page-template-editar-plato .gp-header,
body.page-template-eliminar-plato,
body.page-template-eliminar-plato .gp-header {
  background-color:var(--bg-light);
}

.header-plato {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  margin-top: 40px;
  margin-bottom: 50px;
  padding-right: 20px;
  padding-left: 0;
  color: var(--accent-2, #e85e27);
}

.header-plato h1,
.header-plato h2 {
  margin-bottom:0;
  text-align:left;
  color: inherit;
}

body.page-template-nuevo-plato .header-plato {
  margin-top: 16px;
  padding-left: 24px;
}

@media (max-width: 768px) {
  body.page-template-nuevo-plato .header-plato {
    margin-top: 12px;
    padding-left: 16px;
  }
}

/* ACF FORM*/
#acf-form {
  max-width:768px;
  margin-bottom:250px;
}

#acf-form p:not(.half-row) {
  clear:both;
}

#acf-form label {
  font-size:22px!important;
  font-weight:600;
  color:#1c1c1c;
}

#acf-form input,
#acf-form select,
#acf-form textarea {
  border-radius:5px;
  width:100%;
  border:1.6px solid #858585;
  padding:5px 20px!important;
  font-size:20px;
  color:#858585;
  font-weight:500;
}

#acf-form .select2-container {
  width:100%!important;
}

#acf-form .select2-container .select2-selection--single {
  border:1.6px solid #858585;
  border-radius:5px;
  min-height:48px;
  padding:5px 20px;
  display:flex;
  align-items:center;
  background-color:#fff;
}

#acf-form .select2-container .select2-selection--single .select2-selection__rendered {
  padding-left:0;
  color:#1c1c1c;
  font-size:20px;
  font-weight:500;
}

#acf-form .select2-container .select2-selection--single .select2-selection__arrow {
  height:100%;
  right:16px;
}

#acf-form .select2-container--open .select2-selection--single {
  border-color:var(--accent-2, #e85e27);
  box-shadow:0 0 0 2px rgba(232, 94, 39, 0.15);
}

#acf-form .select2-dropdown {
  border:1.6px solid #858585;
  border-radius:5px;
  box-shadow:0 8px 18px rgba(0, 0, 0, 0.12);
}

#acf-form .select2-results__option {
  font-size:18px;
  color:#1c1c1c;
  padding:10px 16px;
}

#acf-form .select2-results__option--highlighted[data-selected] {
  background-color:var(--accent-2, #e85e27);
  color:#fff;
}

#acf-form textarea {
  max-width:100%;
  min-height:220px;
}

#acf-form .half-row {
  width:calc(50% - 10px);
  float:left;
}

#acf-form .half-row,
#acf-form .wide-row {
  margin-bottom: 30px;
}

#acf-form .acf-field[data-name=dias_de_la_semana] p.description {
  display:none;
}

#acf-form .acf-field[data-name=dias_de_la_semana] .acf-input li {
  display:flex;
  width:100%;
  flex-direction:column;
  gap:10px;
}

#acf-form .acf-field[data-name=dias_de_la_semana] .acf-input li label {
  font-size: 18px!important;
  font-weight: 400!important;
/*  display: flex;*/
  line-height: 20px;
/*  gap: 10px;*/
  margin-bottom:10px;
}

#acf-form .acf-field[data-name=dias_de_la_semana] .acf-input li input {
  width:20px;
  height:20px;
}

#acf-form .acf-field[data-name=numero_de_ingestas] p.description {
  display:none;
}

#acf-form .acf-field[data-name=numero_de_ingestas] .acf-input li {
  display:flex;
  width:100%;
  flex-direction:column;
  gap:10px;
}

#acf-form .acf-field[data-name=numero_de_ingestas] .acf-input li label {
  font-size: 18px!important;
  font-weight: 400!important;
/*  display: flex;*/
  line-height: 20px;
/*  gap: 10px;*/
  margin-bottom:10px;
}

#acf-form .acf-field[data-name=numero_de_ingestas] .acf-input li input {
  width:20px;
  height:20px;
}

#acf-form .acf-field[data-name=de_cuantas_semanas_quieres_hacer_el_menu] p.description,
#acf-form .acf-field[data-name=tipo_de_comida] p.description,
#acf-form .acf-field[data-name=alergeno_extra] p.description,
#acf-form .acf-field[data-name=variedad_de_dietas_copiar] p.description,
#acf-form .acf-field[data-name=idioma_secundario_plato] p.description {
  font-size:18px;
  color:#858585;
  font-weight:400;
  line-height:1.5em;
}

#acf-form .acf-field[data-name=de_cuantas_semanas_quieres_hacer_el_menu] .acf-label label {
  font-size:1.375rem;
  line-height:1.4;
}

#acf-form .acf-field[data-name=de_cuantas_semanas_quieres_hacer_el_menu] p.description {
  font-size:1rem;
}

/*temporal*/
#acf-form .acf-field[data-name=variedad_de_dietas_copiar] .acf-field.acf-field-checkbox .acf-input {
  display:none;
}
/*temporal*/
#acf-form .acf-field[data-name=variedad_de_dietas_copiar] {
  display:none;
}

#acf-form .acf-field[data-name=de_cuantas_semanas_quieres_hacer_el_menu] .acf-input .acf-fields.-top.-border {
  border:0;
  background-color:transparent;
}

#acf-form .acf-field[data-name=de_cuantas_semanas_quieres_hacer_el_menu] .acf-input .acf-fields .acf-field-number {
  padding:0;
}

#acf-form .acf-field[data-name=numero_de_semanas] .acf-label {
  display:none;
}

#acf-form .acf-field[data-name=variedad_de_dietas] .acf-input .acf-fields.-top.-border,
#acf-form .acf-field[data-name=alergeno_extra] .acf-input .acf-fields.-top.-border {
  border:0;
  background-color:transparent;
}

#acf-form .acf-field[data-name=anadir_dieta_personalizada],
#acf-form .acf-field[data-name=alergeno_extra] {
  padding:0;
}

#acf-form .acf-field[data-name=anadir_dieta_personalizada] .acf-label label,
#acf-form .acf-field[data-name=alergeno_extra] .acf-label label {
  display:none;
}

#acf-form .acf-field[data-name=anadir_dieta_personalizada] p.description,
#acf-form .acf-field[data-name=variedad_de_dietas] p.description,
#acf-form .acf-field[data-name=alergeno_extra] p.description {
  font-size:18px;
  color:#858585;
  font-weight:400;
  line-height:1.5em;
}

/* Layout adjustments exclusively for the "Nuevo centro" form */
.tgf-card #tf-nuevo-centro-form .acf-fields {
  grid-template-columns:1fr!important;
}

.tgf-card #tf-nuevo-centro-form .acf-field,
.tgf-card #tf-nuevo-centro-form .acf-field[data-width] {
  grid-column:1 / -1;
}

.tgf-card #tf-nuevo-centro-form .acf-field.tf-field-hidden {
  display:none!important;
}

.tf-dietas-custom-field .acf-table th[data-key="field_tf_custom_dieta_slug"],
.tf-dietas-custom-field .acf-table td[data-key="field_tf_custom_dieta_slug"],
.tf-dietas-custom-field .acf-table td[data-name="slug_dieta"] {
  display:none!important;
}

.tf-dietas-custom-field .acf-table th[data-key="field_tf_custom_dieta_nombre_ca"],
.tf-dietas-custom-field .tf-dieta-translation-field {
  display:none;
}

.tf-dietas-custom__meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin:0 0 0.75rem;
}

.tf-dietas-custom__title {
  margin:0;
  font-size:1.05rem;
  color:var(--tgf-text, #1F1F1F);
  font-weight:600;
}

.tf-dietas-custom__counter {
  font-size:1rem;
  font-weight:600;
  color:var(--accent, #A30D11);
}

.tf-dietas-custom__error {
  margin:0 0 1rem;
  color:var(--accent, #A30D11);
  font-weight:600;
}

.acf-field[data-name=anadir_dieta_personalizada] .tf-dietas-custom__error[hidden] {
  display:none;
}

.tf-dietas-default {
  margin:1rem 0 2rem;
}

.tf-dietas-default__title {
  margin:0;
  font-size:1.05rem;
  color:var(--tgf-text, #1F1F1F);
}

.tf-dietas-default__description {
  margin:0.35rem 0 0;
  color:var(--tgf-muted, #6A6360);
  font-size:.95rem;
}

.tf-dietas-default__list {
  margin:0.75rem 0 0;
  padding-left:1.2rem;
  display:grid;
  gap:.35rem 1.25rem;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
}

.tf-dietas-default__item {
  color:var(--tgf-text, #1F1F1F);
  list-style:disc;
}

#acf-form .acf-field[data-name=variedad_de_dietas] .acf-repeater.-table table td span,
#acf-form .acf-field[data-name=alergeno_extra] .acf-repeater.-table table td span {
  font-size:20px;
}

#acf-form .acf-field[data-name=variedad_de_dietas] .acf-repeater.-table table th {
  white-space:nowrap;
}

#acf-form .acf-field[data-name=tf_listados_idiomas] p.description {
  font-size:18px;
  color:#858585;
  font-weight:400;
  line-height:1.5em;
}

#acf-form .acf-field[data-name=tf_listados_idiomas] .acf-input {
  width:50%;
}

#acf-form .acf-field[data-name=tipo_de_comida] .acf-taxonomy-field .categorychecklist-holder,
#acf-form .acf-field[data-name=alergenos] .acf-taxonomy-field .categorychecklist-holder {
  border:0;
  max-height:none!important;
}

#acf-form .acf-field[data-name=tipo_de_comida] .categorychecklist-holder .acf-checkbox-list,
#acf-form .acf-field[data-name=alergenos] .categorychecklist-holder .acf-checkbox-list {
  padding:0;
}

#acf-form .acf-field[data-name=tipo_de_comida] .categorychecklist-holder .acf-checkbox-list label,
#acf-form .acf-field[data-name=alergenos] .categorychecklist-holder .acf-checkbox-list label {
  font-size: 16px!important;
  font-weight: 400;
  line-height: 1em;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom:10px;
}

#acf-form .acf-field[data-name=tipo_de_comida] .categorychecklist-holder .acf-checkbox-list label input,
#acf-form .acf-field[data-name=alergenos] .categorychecklist-holder .acf-checkbox-list label input {
  width:20px;
  height:20px;
  margin:0;
}

.acf-button.acf-repeater-add-row,
.acf-button.button[data-name=add] {
  margin-top:0;
  border-radius:5px;
  line-height:40px;
  padding:0 10px;
  color:#fff;
  text-transform: uppercase;
  font-family: Open Sans, sans-serif;
  font-size: 14px;
  font-weight:600;
  width:auto;
}

.acf-button.acf-repeater-add-row:hover,
.acf-button.button[data-name=add]:hover {
  background-color:var(--accent-3)!important;
}

#acf-form .acf-image-uploader p {
  font-size:18px;
}

#acf-form .acf-form-submit {
  padding:16px 0 0 16px;
}

#acf-form .acf-form-submit input {
  margin-top:20px;
  border-radius:5px;
  line-height:40px;
  padding:0 20px;
  background-color:var(--accent-2)!important;
  color:#fff!important;
  text-transform: uppercase;
  font-family: Open Sans, sans-serif;
  font-size: 14px;
  font-weight:600;
  width:auto;
  display:inline-block;
  border:0!important;
}

#acf-form .acf-form-submit input:hover {
  background-color:var(--accent)!important;
  color:#fff!important;
  border:0!important;
}

@media (max-width:525px) {
  #acf-form .acf-field[data-name=tf_listados_idiomas] .acf-input {
    width:100%;
  }
}

.tf-dias-list table tr.row--festivo td,
.tf-dias-list table tr.row--especial td {
  background-color:#fdecea;
  color:#7a0b0f;
}

.tf-dias-list table tr.row--festivo td a,
.tf-dias-list table tr.row--especial td a {
  color:#7a0b0f;
}

/* TABLA ELIMINAR CENTRO*/
body.page-template-eliminar-centro #tabla-centros {
  background-color:#fff;
  max-width:1140px;
  padding:0;
  margin: auto auto 30px;
}

body.page-template-eliminar-centro #tabla-centros th,
body.page-template-eliminar-centro #tabla-centros td {
  padding: 16px 26px;
}

body.page-template-eliminar-centro #tabla-centros tbody {
  background-color: #F5F5F5;
}

body.page-template-eliminar-centro #tabla-centros th:last-child,
body.page-template-eliminar-centro #tabla-centros td:last-child {
  display:table-cell!important;
}

body.page-template-eliminar-centro #tabla-centros td .sep:last-child {
  display:none;
}

body.page-template-eliminar-centro #tabla-centros td.td-icons a {
  margin: 0 5px 10px;
  display:inline-block;
}

/* CONFIGURAR PLATOS */
body.page-configurar-platos,
body.page-configurar-platos .gp-header,
body.page-configurar-plats,
body.page-configurar-plats .gp-header {
  background-color:var(--bg-light);
}

body.page-configurar-platos #table_platos tbody td:last-child {
  white-space: nowrap;
}

.icono-alergeno {
  display: flex;
  flex-wrap: wrap;
  row-gap: 20px;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  margin-bottom:10px;
}

.icono-alergeno img {
  width: 26px;
  height: 26px;
  border-radius: 90px;
  border: 1px solid var(--accent-2);
}

.icono-alergeno p {
  font-size:14px;
  margin-bottom:0;
  line-height:1.2em;
}

/* TABLA ELIMINAR DIA*/
body.page-template-eliminar-dia #table_dias {
  background-color:#fff;
  max-width:1140px;
  padding:0;
  margin: auto auto 30px!important;
}

body.page-template-eliminar-dia #table_dias th,
body.page-template-eliminar-dia #table_dias td {
  padding: 16px 26px;
}

body.page-template-eliminar-dia #table_dias tbody {
  background-color: #F5F5F5;
}

body.page-template-eliminar-dia #table_dias th:last-child,
body.page-template-eliminar-dia #table_dias td:last-child {
  display:table-cell!important;
}

body.page-template-eliminar-dia #table_dias td .sep:last-child {
  display:none;
}

body.page-template-eliminar-dia #table_dias td.td-icons a {
  margin: 0 5px 10px;
  display:inline-block;
}

/* TABLA ELIMINAR PLATO*/
body.page-template-eliminar-plato #table_platos {
  background-color:#fff;
  max-width:1140px;
  padding:0;
  margin: auto auto 30px!important;
}

body.page-template-eliminar-plato #table_platos th,
body.page-template-eliminar-plato #table_platos td {
  padding: 16px 26px;
}

body.page-template-eliminar-plato #table_platos tbody {
  background-color: #F5F5F5;
}

body.page-template-eliminar-plato #table_platos th:last-child,
body.page-template-eliminar-plato #table_platos td:last-child {
  display:table-cell!important;
}

body.page-template-eliminar-plato #table_platos td .sep:last-child {
  display:none;
}

body.page-template-eliminar-plato #table_platos td.td-icons a {
  margin: 0 5px 10px;
  display:inline-block;
}

/* TABLA IMPRIMIR LISTADOS*/
body.page-template-imprimir-listados,
body.page-template-imprimir-listados .gp-header {
  background-color:var(--bg-light);
}

body.page-template-imprimir-listados .grid-container {
  max-width:100%;
}

body.page-template-imprimir-listados .site-content {
  display:block;
}

.header-listados {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin-top: 21px; /*Elena: original 40px;*/
  margin-bottom: 8px; /*Elena: original 50px; */
  padding-right: 20px;
  padding-left: 80px;
}

.header-listados h2 {
  margin-bottom:0;
}

body.page-template-imprimir-listados .entry-header.header-listados {
  max-width:1140px;
  margin-left:auto;
  margin-right:auto;
}

body.page-template-imprimir-listados #listados-centro .listados-centro,
body.page-template-imprimir-listados #listados-centro .ocultar-listado-button {
  max-width:1280px;
  margin:24px auto;
  width:100%;
}

body.page-template-imprimir-listados #listados-centro .ocultar-listado-button {
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

body.page-template-imprimir-listados #listados-centro .ver-platos {
  max-width:1280px;
  margin:0 auto;
}

body.page-template-imprimir-listados #listados-centro #platos-alergenos {
  max-width:1400px;
  margin:0 auto;
  overflow:auto;
}

body.page-template-imprimir-listados #listados-centro {
  margin:0 auto 32px!important;
}

body.page-template-imprimir-listados .listados-centro {
  padding:0;
}

body.page-template-imprimir-listados #listados-centro table {
  width:100%;
  background-color:transparent;
  border-collapse:separate;
}

body.page-template-imprimir-listados #listados-centro table th,
body.page-template-imprimir-listados #listados-centro table td {
  padding:0.85rem 1rem;
  border:0;
  font-family:'Montserrat', sans-serif;
  font-size:0.95rem;
  line-height:1.45;
  color:var(--tgf-text, #1F1F1F);
  text-align:left;
}

body.page-template-imprimir-listados #listados-centro table tbody {
  background-color:transparent;
}

body.page-template-imprimir-listados #listados-centro table.alergenos {
  border:0;
}

body.page-template-imprimir-listados #listados-centro table.alergenos tbody {
  background-color:#fff;
}

body.page-template-imprimir-listados #listados-centro table th:last-child,
body.page-template-imprimir-listados #listados-centro table td:last-child {
  display:table-cell!important;
}

body.page-template-imprimir-listados #listados-centro table td .sep:last-child {
  display:none;
}

body.page-template-imprimir-listados #listados-centro table td.td-icons a {
  margin:0 5px 10px;
  display:inline-block;
}

body.page-template-imprimir-listados #listados-centro table td select,
body.page-template-imprimir-listados #listados-centro table td input {
  width:100%;
  max-width:none;
  font-size:0.95rem;
  border-radius:10px;
  padding:0.6rem 0.75rem;
  box-sizing:border-box;
  border:1px solid rgba(31,31,31,.15);
  background:#fff;
  transition:border-color .2s ease, box-shadow .2s ease;
}

body.page-template-imprimir-listados #listados-centro table td select:focus,
body.page-template-imprimir-listados #listados-centro table td input:focus {
  border-color:var(--tgf-primary,#E85E27);
  box-shadow:0 0 0 3px rgba(232,94,39,.18);
  outline:none;
}

body.page-template-imprimir-listados #listados-centro table .actions {
  text-align:center;
  max-width:50px;
  padding:0;
}

body.page-template-imprimir-listados #listados-centro table .colspan {
  text-align:center;
}

/* SINGLE CENTRO*/
body.page-template-menu-basal,
body.page-template-menu-basal .gp-header {
  background-color:var(--bg-light);
}

body.page-template-menu-basal #page,
body.page-template-menu-basal #page {
  max-width: 100%;
}

body.page-template-menu-basal article {
  padding: 0 5%;
}

body.page-template-menu-basal .inside-article {
  background-color:var(--bg-light)!important;
}

body.page-template-menu-basal .entry-title {
  display:none;
  color:#fff;
}

body.page-template-menu-basal .tabla-semana-wrap {
  margin-top:30px;
}

body.page-template-menu-basal .column.semana {
  padding: 0 16px;
  font-size: 12px;  /* line-height: 160px; */
  color: #000;
  font-weight: 400;
  width: 100%;
  box-shadow: 0px -1px 0px 0px rgba(17, 17, 17, 0.08) inset;
  line-height: 1.4em;
  min-width: 90px;
}

body.page-template-menu-basal .column.tabla-dia > div {
  box-shadow: 0px -1px 0px 0px rgba(17, 17, 17, 0.08) inset;
  padding:0;
}

body.page-template-menu-basal .column.tabla-dia > div:first-child {
  color: #222;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  padding: 8px 16px;
  box-shadow: 0px -1px 0px 0px #111 inset;
  position: relative;
}

body.page-template-menu-basal .column.tabla-dia .select2-container {
  padding:12px 16px 0!important;
}

body.page-template-menu-basal .column.tabla-tipo-plato .tipo-plato {
  box-shadow: 0px -1px 0px 0px #111 inset;
}


@media (max-width:1024px) {
  body.template-menu-basal article {
    padding: 0 20px;
  }
  body.template-menu-basal .inside-article {
    padding:30px 0;
  }
}


/* ACF FORMS */
.acf-field-64b9172e8a01a {
    display: none;
}

/* DATEPICKER */
#ui-datepicker-div,
.ui-datepicker { 
  min-width: 280px;
}
#ui-datepicker-div,
.ui-datepicker table {
  font-size:12px;
}
#ui-datepicker-div .ui-datepicker-title,
.ui-datepicker .ui-datepicker-title {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  overflow: visible;
  position: relative;
  z-index: 2;
}
#ui-datepicker-div .ui-datepicker-title select,
.ui-datepicker .ui-datepicker-title select {
  min-width: 7.5rem;
}
#ui-datepicker-div,
.ui-datepicker {
  overflow: visible;
}
#ui-datepicker-div .ui-datepicker-calendar td > span,
#ui-datepicker-div .ui-datepicker-calendar td > a,
#ui-datepicker-div .ui-datepicker-calendar td.ui-state-disabled {
  line-height:2em;
}

/* LISTADO DE ALERGENOS */
body.page-template-imprimir-listados #listados-centro table.alergenos tr {
  border-bottom:1px solid #333;
  background-color:#fff;
}
body.page-template-imprimir-listados #listados-centro table.alergenos tbody tr {
  border-left:1px solid #333;
/*  border-right:1px solid #333;*/
}
body.page-template-imprimir-listados #listados-centro table.alergenos thead tr {
  border-left:1px solid var(--bg-light);
/*  border-right:1px solid #333;*/
}
body.page-template-imprimir-listados #listados-centro table.alergenos th {
  border-top:1px solid #333;
}
body.page-template-imprimir-listados #listados-centro table.alergenos th:last-child,
body.page-template-imprimir-listados #listados-centro table.alergenos td:last-child {
  border-right:1px solid #333;
}
body.page-template-imprimir-listados #listados-centro table.alergenos th.th-leyenda {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:300px;
  background-color:var(--bg-light);
  border-top: 1px solid var(--bg-light);
  text-align:center;
}
body.page-template-imprimir-listados #listados-centro table.alergenos th, 
body.page-template-imprimir-listados #listados-centro table.alergenos td {
  padding:10px;
  font-weight:normal;
  /*vertical-align:top;
  text-align:center;*/
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap:10px;
  border-right:1px solid #333;
}
body.page-template-imprimir-listados #listados-centro table.alergenos td.nombre-alergeno {
  align-items:flex-start;
  background-color:#fff;
}
body.page-template-imprimir-listados #listados-centro table.alergenos td.nombre-alergeno,
body.page-template-imprimir-listados #listados-centro table.alergenos th.th-leyenda {
  position:sticky;
  left:0;
  justify-content: center;
}
body.page-template-imprimir-listados #listados-centro table.alergenos td.x {
  font-weight:bold;
  justify-content:center;
}
body.page-template-imprimir-listados #listados-centro table.alergenos th:last-child, 
body.page-template-imprimir-listados #listados-centro table.alergenos td:last-child {
  display:flex!important;
/*  border-right:0;*/
}
.tr-rotate-vertical {
  display:flex;
}
.th-rotate-vertical {
  vertical-align:top!important;
  display:flex;
  flex-direction:column;
  justify-content: space-between;
  align-items:center;
  gap:10px;
}
p.rotate-vertical.row {
  flex-direction:row;
  gap:5px;
}
p.rotate-vertical span {
  text-transform: uppercase;
}
p.rotate-vertical,
p.rotate-vertical > span {
  margin-bottom:0;
/*  display:inline-grid;*/
  text-align:center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
p.rotate-vertical.row {
  display:flex;
  justify-content: center;
  align-items:flex-start;
}
th img {
/*  margin-top:10px;*/
  max-width:45px!important;
  width:45px!important;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}


/*idiomas*/
.idioma-tangram-logo .wpml-language-switcher-block {
  width:auto!important;
}
.idioma-tangram-logo .wpml-language-switcher-block .horizontal-list {
  gap:10px!important;
} 


.centros10 {
  margin: 40px 0 120px;
}
.centros10 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: capitalize;
  text-align: center;
  padding: 10px 20px;
  border-radius: 10px;
  background-color: var(--accent-2);
  color: var(--base-3);
}
.centros10 a:hover {
  background-color: var(--accent);
}

/* Mobile typography overrides */
@media (max-width: 768px) {
  .rcp_user_fieldset label,
  .rcp_card_fieldset label,
  .nf-form-cont label {
    font-size: 18px;
    line-height: 1.3;
  }

  .rcp_user_fieldset input,
  .rcp_user_fieldset select,
  .rcp_user_fieldset textarea,
  .rcp_card_fieldset input,
  .rcp_card_fieldset select,
  .rcp_card_fieldset textarea,
  .nf-form-cont input,
  .nf-form-cont select,
  .nf-form-cont textarea {
    padding: 10px 14px;
    font-size: 18px;
  }
}

.plato-dia-override {
  color: #c00;
  font-weight: 600;
}
