﻿/* AFC Accessibility Widget Styles - Home page only */

.access-ignore, .access-ignore * {
  zoom: 1 !important;
  filter: none !important;
  text-transform: none !important;
  letter-spacing: 0px !important;
  line-height: 1 !important;
  box-sizing: border-box;
}

#access-btn {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 999999;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  cursor: pointer;
  background: #06245f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

#access-btn:hover {
  background: #0b347f;
  transform: translateY(-2px);
}

#access-btn svg {
  width: 28px;
  height: 28px;
  fill: #ffffff !important;
}

#access-panel {
  position: fixed;
  bottom: 78px;
  left: 18px;
  width: calc(100% - 36px);
  max-width: 380px;
  max-height: 455px;
  min-height: 300px;
  z-index: 999999999;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.32);
  background: #f6f8fc;
  display: none;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  user-select: none;
  overflow: hidden;
  border: 1px solid rgba(6, 36, 95, 0.15);
}

#access-panel.open {
  display: flex;
}

.access-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff;
  color: #06245f;
  border: none;
  border-radius: 999px;
  height: 30px;
  width: 30px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  line-height: 30px;
}

.access-close:hover {
  background: #ffffff;
}

.access-header {
  background: #06245f;
  padding: 0 50px 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  text-align: center;
}

.access-header h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 15px 0 !important;
  color: #ffffff !important;
}

.access-content {
  padding: 12px 18px;
  overflow-y: auto;
  flex: 1;
  color: #101828;
  background: #f6f8fc;
}

.access-content::-webkit-scrollbar {
  width: 6px;
}

.access-content::-webkit-scrollbar-thumb {
  background: #06245f;
  border-radius: 10px;
}

.access-footer {
  padding: 14px;
  text-align: center;
  background: #06245f;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.access-reset {
  background: #ffffff;
  color: #06245f;
  border: none;
  padding: 8px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  min-width: 110px;
}

.access-reset:hover {
  background: #eef2f8;
  color: #06245f;
}

.access-section-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #06245f !important;
  border-bottom: 1px solid rgba(6, 36, 95, 0.35) !important;
  margin: 14px 0 10px !important;
  padding-bottom: 6px !important;
  text-align: left !important;
}

.access-box {
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  margin: 0 8px 8px 0;
  box-shadow: 0 4px 12px rgba(6, 36, 95, 0.12);
  flex-grow: 1;
  display: inline-block;
  vertical-align: top;
  border: 1px solid rgba(6, 36, 95, 0.08);
}

.access-inline {
  display: flex;
  flex-wrap: wrap;
}

.access-box-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #06245f;
}

.access-colors {
  display: flex;
  flex-wrap: wrap;
}

.access-color {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  margin: 4px;
  cursor: pointer;
  border: 1px solid #d0d5dd;
}

.access-color:hover {
  opacity: 0.75;
}

.access-color.active {
  outline: 3px solid #ffffff;
  border-color: #06245f;
}

.access-counter {
  display: flex;
  align-items: center;
  background: #eef2f8;
  border-radius: 999px;
  padding: 3px 6px;
  width: fit-content;
}

.access-counter button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0 10px;
  color: #06245f;
  font-weight: 700;
}

.access-counter span {
  font-size: 12px;
  background: #ffffff;
  padding: 3px 9px;
  border-radius: 999px;
  min-width: 38px;
  text-align: center;
  color: #06245f;
  font-weight: 700;
}

.access-select {
  padding: 7px;
  border-radius: 6px;
  border: 1px solid #cfd6e4;
  width: 100%;
  color: #06245f;
  background: #ffffff;
}

.access-font-btn {
  background: #eef2f8;
  border: 1px solid transparent;
  font-size: 15px;
  margin: 2px;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 6px;
  color: #06245f;
}

.access-font-btn.active {
  background: #06245f;
  color: #ffffff;
  border-color: #ffffff;
}

.access-toggle {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #cfd6e4;
  position: relative;
  cursor: pointer;
}

.access-toggle.active {
  background: #06245f;
}

.access-toggle .knob {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.access-toggle.active .knob {
  left: 22px;
}

@media (max-width: 767px) {
  #access-btn {
    bottom: 86px;
    left: 14px;
    width: 44px;
    height: 44px;
  }

  #access-panel {
    left: 10px;
    bottom: 138px;
    width: calc(100% - 20px);
    max-width: 360px;
    max-height: 430px;
  }
}
