﻿:root {
  --primary-color: rgba(1, 127, 155, 1);
  --hover-color: #e6f3f5;
  --grey: rgba(93, 93, 93, 1);
  --shadows: 2px 0px 2px 0px rgba(0, 0, 0, 0.15),
    0px 2px 4px 0px rgba(0, 0, 0, 0.15);
  --accessibility-custom-content-color: #000;
  --accessibility-custom-headers-color: #000;
  --accessibility-custom-backgrounds-color: #fff;
  --accessibility-custom-content-color-white: #fff;
}

.toggle input:focus {
  outline: none;
}

#accessibility-menu :focus-visible {
  outline: 2px solid rgba(2, 181, 221, 1);
}

.toggle-container:focus-visible {
  outline: 2px solid rgba(2, 181, 221, 1);
}

.toggle input:focus-visible + .toggle-slider {
  outline: 2px solid rgba(2, 181, 221, 1);
}

.accessibility-h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 34px;
  letter-spacing: 0.25px;
  color: var(--grey);
  border: none;
  padding: 0px;
  margin: 0px;
}

.accessibility-h4 {
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0.25px;
  color: black;
  padding: 0px;
  margin: 0px;
}

.accessibility-h5 {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0px;
  color: black;
}

.accessibility-text {
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.1px;
  color: vat(--grey);
  font-weight: 400;
}

svg path {
  fill: unset;
}

.accessibility-btn {
  position: fixed;
  padding: 8px;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;

  background: #ffffff;
  color: white;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadows);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: background-color 0.3s ease;
  svg {
    fill: var(--primary-color);
  }
}

.accessibility-btn:hover {
  background: var(--hover-color);
}

.accessibility-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: fixed;
  top: 50%;
  right: -563px;
  transform: translateY(-50%);
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  font-family: "Poppins", sans-serif !important
  box-sizing: border-box;
  line-height: 1.6;
  color: #333;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px 32px;
  padding-top: 48px;
}

.accessibility-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(176, 36, 36, 0.96);
  z-index: 1000;
  display: none;
}

.accessibility-menu-backdrop.open {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: block;
}

.accessibility-menu.open {
  right: 0;
}

.menu-header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  border-radius: 8px;
  height: 92.45px;
  box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.15),
    0px 2px 4px 0px rgba(0, 0, 0, 0.15);
}

.menu-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #495057;
}

.close-btn {
  unset: all;
  margin: 0;
  align-self: flex-end;
  cursor: pointer;
  height: 32px;
  max-height: 32px;
  min-height: 32px;
  width: 32px;
  border-radius: 100px;
  padding: 4px;
  background: #ffffff;
  border: none;
  stroke: rgba(93, 93, 93, 1);

  box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.15),
    0px 2px 4px 0px rgba(0, 0, 0, 0.15);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background-color 0.3s ease;
}

.close-btn:hover {
  background: rgba(239, 239, 239, 1);
}

.sections {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  padding: 4px;
}

.scroll-section {
  overflow-y: auto;
  height: 100%;
  scrollbar-gutter: stable;
}

/* scrollbar design */
.scroll-section::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scroll-section::-webkit-scrollbar-thumb {
  background: rgba(109, 109, 109, 0.8);
  border-radius: 8px;
}

.scroll-section::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-section::-webkit-scrollbar-button {
  display: none;
}

.scroll-section-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header {
  all: unset;
  box-sizing: border-box;
  height: 78px;
  min-height: 78px;
  max-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 16px;
  background: white;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  background-color: #ffffff;
  box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.15),
    0px 2px 4px 0px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.section-header:hover {
  background: #f8f9fa;
}

.section-title {
  font-weight: 500;
  color: #495057;
  font-size: 0.95rem;
}

.section-icon {
  color: #6c757d;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.section-icon.rotated {
  transform: rotate(90deg);
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-content.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.toggle-container {
  gap: 32px;
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadows);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 32px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 100px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #4caf50;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.color-option-card {
  width: 154px;
  height: 64px;
  padding-top: 24px;
  padding-right: 16px;
  padding-bottom: 16px;
  padding-left: 16px;
  gap: 8px;
  border-radius: 8px;

  background: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.15),
    0px 2px 4px 0px rgba(0, 0, 0, 0.15);
}

.color-option-card:hover {
  background: #e9ecef;
  border-color: #6c757d;
}

.color-option-card.active {
  background: #e3f2fd;
  border-color: #2196f3;
  color: #1976d2;
}

.icon-text-container {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--grey);
}

.option-icon {
  width: 40px;
  justify-content: center;
}

.option-icon,
.option-text {
  display: flex;
  align-items: center;
}

.option-text {
  line-height: 1;
}

.custom-color-section {
  width: 487;
  height: 188;
  gap: 16px;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.15),
    0px 2px 4px 0px rgba(0, 0, 0, 0.15);
}

.custom-color-header-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-color-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.custom-color-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.25px;
  color: rgba(32, 31, 31, 1);
}

.custom-color-subtitle {
  font-size: 12px;
  color: rgba(118, 118, 122, 1);
  line-height: 20px;
  letter-spacing: 0.1px;
  font-weight: 400;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grid-2 > :nth-last-child(1):nth-child(odd) {
  grid-column: span 2;
}

.option-btn {
  all: unset;
  position: relative;
  height: 52px;
  text-align: center;
  box-sizing: border-box;
  color: rgba(93, 93, 93, 1);
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.15),
    0px 2px 4px 0px rgba(0, 0, 0, 0.15);
}

.badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  border: 2px solid var(--grey);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: black;
  box-shadow: var(--shadows);
}

.badge svg {
  stroke: var(--grey);
  stroke-width: 2;
}

.option-btn:hover {
  background: rgba(239, 239, 239, 1);
  border-color: #adb5bd;
}

.option-btn.active {
  background: rgba(239, 239, 239, 1);
}

.custom-color-slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-bar {
  width: 100%;
  height: 16px;
  border-radius: 24px;
  background: linear-gradient(
    270deg,
    #ff0008 0%,
    #ff00eb 16.67%,
    #0e00ff 32.81%,
    #00edff 49.06%,
    #00ff00 67.97%,
    #fffe00 83.13%,
    #ff0800 100%
  );

  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-bar-thumb {
  position: absolute;
  top: -2px;
  width: 18px;
  height: 18px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transform: translateX(-50%);
  box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.15),
    0px 2px 4px 0px rgba(0, 0, 0, 0.15);
}

.color-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 16px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(
      to right,
      #ff0000 0%,
      #ff00ff 20%,
      #0000ff 40%,
      #00ff00 60%,
      #ffff00 80%,
      #ff0000 100%
  );
  outline: none;
  cursor: pointer;
}

.color-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.15),
    0px 2px 4px 0px rgba(0, 0, 0, 0.15);
}

.color-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.15),
    0px 2px 4px 0px rgba(0, 0, 0, 0.15);
}

.reset-btn {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 4px;
  color: rgba(118, 118, 122, 1);

  text-decoration: none;

  transition: all 0.3s ease;
}

.reset-icon {
  stroke: var(--grey);
  height: 16px;
  weight: 16px;
}

.font-section {
  gap: 16px;

  display: flex;
  flex-direction: column;
}

.font-section-title {
  font-size: 12px;
  color: rgba(118, 118, 122, 1);
  line-height: 20px;
  letter-spacing: 0.1px;
  font-weight: 400;
}

.font-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.15),
    0px 2px 4px 0px rgba(0, 0, 0, 0.15);
  padding: 12px;

  border-radius: 8px;
}
.font-slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.font-control-btn {
  all: unset;
  box-sizing: border-box;
  z-index: 10;
  width: 24px;
  height: 24px;
  border: none;
  background: white;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
  box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.15),
    0px 2px 4px 0px rgba(0, 0, 0, 0.15);

  stroke: rgba(93, 93, 93, 1);
  transition: all 0.3s ease;
}

.font-control-btn:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}

.font-slider-container {
  display: flex;
  align-items: center;
}

.font-slider-wrapper {
  flex: 1;
  position: relative;
}

.font-slider-track {
  position: relative;
  width: 100%;
  height: 16px;
  background: rgba(238, 238, 238, 1);
  border-radius: 24px;

  overflow: hidden;
}

.font-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 24px;
  width: 50%;
  background: rgba(93, 93, 93, 1);

  transition: width 0.2s ease;
  z-index: 1;
}

.font-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  z-index: 2;
}

.font-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  background: transparent;
  cursor: pointer;
  border: none;
}

.font-slider::-moz-range-thumb {
  width: 0;
  height: 0;
  background: transparent;
  cursor: pointer;
  border: none;
  border-radius: 0;
}

.font-slider::-moz-range-track {
  background: transparent;
  border: none;
}

.monochrome {
  filter: grayscale(100%);
}

.low-saturation {
  filter: saturate(0.5);
}

.bright-contrast {
  filter: contrast(150%) brightness(120%);
}

.contrast-mode {
  filter: contrast(200%);
}

.high-saturation {
  filter: saturate(200%);
}

.dark-contrast {
  filter: contrast(150%) brightness(80%) invert(1);
}


.modo-contraste * {
  background-color: black !important;
  color: white !important;
  border-color: white !important;
}

.modo-contraste input::placeholder,
.modo-contraste input,
.modo-contraste textarea::placeholder {
  color: #cccccc !important;
  background-color: black !important;
}

#mega_contenedor :focus {
  outline: 3px solid yellow !important;
  outline-offset: 2px;
}

body.navegando-teclado #mega_contenedor :focus {
  outline: 3px solid yellow !important;
  outline-offset: 2px;
}

#mega_contenedor.modo-backgrounds,
.signup-page-form.modo-backgrounds,
.izq.divizq.modo-backgrounds,
.der.divder.modo-backgrounds,
.ticket-info.modo-backgrounds,
#pago_tarjeta.modo-backgrounds {
  background-color: var(--accessibility-custom-backgrounds-color, #ffffff) !important;
}

#mega_contenedor.modo-content,
.signup-page-form.modo-content,
.izq.divizq.modo-content,
.der.divder.modo-content,
.ticket-info.modo-content,
#pago_tarjeta.modo-content {
  color: var(--accessibility-custom-content-color, #000000) !important;
}

#mega_contenedor.modo-content *:not(h3[name="wort"]),
.signup-page-form.modo-content *:not(h3[name="wort"]),
.izq.divizq.modo-content *:not(h3[name="wort"]),
.der.divder.modo-content *:not(h3[name="wort"]),
.ticket-info.modo-content *:not(h3[name="wort"]),
#pago_tarjeta.modo-content *:not(h3[name="wort"]) {
  color: var(--accessibility-custom-content-color, #000000) !important;
  fill: var(--accessibility-custom-content-color, #000000) !important;
}

#mega_contenedor.modo-content #imp,
#mega_contenedor.modo-content #txtPagar,
.signup-page-form.modo-content #imp,
.signup-page-form.modo-content #txtPagar,
.signup-page-form.modo-content #volverComercio,
.izq.divizq.modo-content #imp,
.izq.divizq.modo-content #txtPagar,
.der.divder.modo-content #imp,
.der.divder.modo-content #txtPagar,
.ticket-info.modo-content #imp,
.ticket-info.modo-content #txtPagar,
#pago_tarjeta.modo-content #imp,
#pago_tarjeta.modo-content #txtPagar {
  color: var(--accessibility-custom-content-color-blanco, #fff) !important;
}

#mega_contenedor.modo-content #buttons #pagar,
#mega_contenedor.modo-content #buttons #cancelar,
.signup-page-form.modo-content #buttons #pagar,
.signup-page-form.modo-content #buttons #cancelar,
.izq.divizq.modo-content #buttons #pagar,
.izq.divizq.modo-content #buttons #cancelar,
.der.divder.modo-content #buttons #pagar,
.der.divder.modo-content #buttons #cancelar,
.ticket-info.modo-content #buttons #pagar,
.ticket-info.modo-content #buttons #cancelar,
#pago_tarjeta.modo-content #buttons #pagar,
#pago_tarjeta.modo-content #buttons #cancelar {
  color: var(--accessibility-custom-content-color-blanco, #fff) !important;
}

#mega_contenedor.modo-headers h3[name="wort"],
.signup-page-form.modo-headers h3[name="wort"],
.izq.divizq.modo-headers h3[name="wort"],
.der.divder.modo-headers h3[name="wort"],
.ticket-info.modo-headers h3[name="wort"],
#pago_tarjeta.modo-headers h3[name="wort"] {
  color: var(--accessibility-custom-headers-color, #ffffff) !important;
}

#accessibility-menu {
  width: 410px;
}