@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

body {
  padding-top: env(safe-area-inset-top);
  background: #fff;
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

/* Progressive enhancement: animate same-origin page navigations where supported. */
@supports (view-transition-name: none) {
  @view-transition {
    navigation: none;
  }

  @media (display-mode: standalone) {
    @view-transition {
      navigation: auto;
    }
  }

  :root {
    --q-pwa-vt-old-animation: none;
    --q-pwa-vt-new-animation: none;
    --q-pwa-vt-duration: 1ms;
    --q-pwa-vt-easing: cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  :root[data-q-pwa-standalone="1"] {
    --q-pwa-vt-old-animation: q-pwa-vt-cross-fade-old;
    --q-pwa-vt-new-animation: q-pwa-vt-cross-fade-new;
    --q-pwa-vt-duration: 280ms;
  }

  :root[data-q-pwa-transition="none"] {
    --q-pwa-vt-old-animation: none;
    --q-pwa-vt-new-animation: none;
    --q-pwa-vt-duration: 1ms;
  }

  :root[data-q-pwa-transition="scale"] {
    --q-pwa-vt-old-animation: q-pwa-vt-scale-old;
    --q-pwa-vt-new-animation: q-pwa-vt-scale-new;
  }

  :root[data-q-pwa-transition="scale-slide"] {
    --q-pwa-vt-old-animation: q-pwa-vt-scale-slide-old;
    --q-pwa-vt-new-animation: q-pwa-vt-scale-slide-new;
  }

  :root[data-q-pwa-transition="enlarging-icons"] {
    --q-pwa-vt-old-animation: q-pwa-vt-enlarge-icons-old;
    --q-pwa-vt-new-animation: q-pwa-vt-enlarge-icons-new;
    --q-pwa-vt-duration: 320ms;
  }

  :root[data-q-pwa-transition="swap"] {
    --q-pwa-vt-old-animation: q-pwa-vt-swap-old;
    --q-pwa-vt-new-animation: q-pwa-vt-swap-new;
    --q-pwa-vt-duration: 300ms;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: var(--q-pwa-vt-duration);
    animation-timing-function: var(--q-pwa-vt-easing);
  }

  ::view-transition-old(root) {
    animation-name: var(--q-pwa-vt-old-animation);
  }

  ::view-transition-new(root) {
    animation-name: var(--q-pwa-vt-new-animation);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 1ms !important;
  }
}

@keyframes q-pwa-vt-cross-fade-old {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes q-pwa-vt-cross-fade-new {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes q-pwa-vt-scale-old {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.94);
  }
}

@keyframes q-pwa-vt-scale-new {
  from {
    opacity: 0;
    transform: scale(1.06);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes q-pwa-vt-scale-slide-old {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(-18px) scale(0.96);
  }
}

@keyframes q-pwa-vt-scale-slide-new {
  from {
    opacity: 0;
    transform: translateX(18px) scale(1.04);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes q-pwa-vt-enlarge-icons-old {
  from {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1);
  }

  to {
    opacity: 0;
    transform: scale(0.92);
    filter: saturate(0.9);
  }
}

@keyframes q-pwa-vt-enlarge-icons-new {
  from {
    opacity: 0;
    transform: scale(1.1);
    filter: saturate(1.1);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1);
  }
}

@keyframes q-pwa-vt-swap-old {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(24px);
  }
}

@keyframes q-pwa-vt-swap-new {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.q-pwa-page-loader {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.q-pwa-page-loader-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(90vw, 320px);
  text-align: center;
  max-width: 100%;
}

/* Defensive rule: never render text/content below loader visual */
.q-pwa-page-loader-center > :not(.q-pwa-page-loader-visual) {
  display: none !important;
}

.q-pwa-page-loader.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.q-pwa-page-loader-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.q-pwa-loader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid
    color-mix(in srgb, var(--pwa-theme-color, #2563eb) 20%, #ffffff);
  border-top-color: var(--pwa-theme-color, #2563eb);
  animation: q-pwa-loader-rotate 0.85s linear infinite;
}

.q-pwa-loader-style-preloader .q-pwa-page-loader-visual {
  width: 28px;
  height: 28px;
}

.ui-preloader-inner {
  --uib-size: 28;
  --uib-color: var(--pwa-theme-color, #2563eb);
  --uib-speed: 3.5s;
  --uib-stroke: 4;
  --uib-mult: calc(var(--uib-size) / var(--uib-stroke));
  --uib-stroke-px: calc(var(--uib-stroke) * 1px);
  --uib-size-px: calc(var(--uib-size) * 1px);
  position: relative;
  width: var(--uib-size-px);
  height: var(--uib-size-px);
}

.ui-preloader-line {
  position: absolute;
  top: calc(50% - var(--uib-stroke-px) / 2);
  left: calc(50% - var(--uib-stroke-px) / 2);
  width: var(--uib-stroke-px);
  height: var(--uib-stroke-px);
  background-color: var(--uib-color);
  transition: background-color 0.3s ease;
  animation: q-pwa-preloader-center-line var(--uib-speed) ease infinite;
}

.ui-preloader-inner::before,
.ui-preloader-inner::after {
  content: "";
  position: absolute;
  width: var(--uib-stroke-px);
  height: var(--uib-stroke-px);
  background-color: var(--uib-color);
  transition: background-color 0.3s ease;
  animation: q-pwa-preloader-explore var(--uib-speed) ease infinite;
}

.ui-preloader-inner::after {
  animation-delay: calc(var(--uib-speed) * -0.5);
}

.q-pwa-loader-style-preloader .ui-preloader-inner {
  position: relative;
}

.q-pwa-loader-style-dots .q-pwa-page-loader-visual {
  gap: 8px;
}

.q-pwa-loader-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--pwa-theme-color, #2563eb);
  opacity: 0.35;
  animation: q-pwa-loader-dot 1s infinite ease-in-out;
}

.q-pwa-loader-dot:nth-child(2) {
  animation-delay: 0.14s;
}

.q-pwa-loader-dot:nth-child(3) {
  animation-delay: 0.28s;
}

.q-pwa-loader-style-bar .q-pwa-page-loader-visual {
  width: 180px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pwa-theme-color, #2563eb) 14%, #ffffff);
  overflow: hidden;
}

.q-pwa-loader-bar-fill {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--pwa-theme-color, #2563eb);
  animation: q-pwa-loader-bar 1.05s infinite ease-in-out;
}

.q-pwa-loader-pulse {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--pwa-theme-color, #2563eb);
  border: 3px solid currentColor;
  animation: q-pwa-loader-pulse 1.1s infinite ease-in-out;
}

.q-pwa-loader-style-image .q-pwa-page-loader-visual {
  max-width: min(84vw, 320px);
  max-height: min(50vh, 260px);
}

.q-pwa-loader-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(84vw, 320px);
  max-height: min(50vh, 260px);
  object-fit: contain;
}

@keyframes q-pwa-loader-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes q-pwa-loader-dot {
  0%,
  80%,
  100% {
    transform: translateY(0) scale(0.92);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-6px) scale(1);
    opacity: 1;
  }
}

@keyframes q-pwa-loader-bar {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(250%);
  }
}

@keyframes q-pwa-loader-pulse {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 currentColor;
    opacity: 0.65;
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 18px transparent;
    opacity: 0;
  }

  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 transparent;
    opacity: 0.65;
  }
}

@keyframes q-pwa-preloader-center-line {
  0%,
  25%,
  50%,
  75%,
  100% {
    transform: scaleX(1) scaleY(1);
  }

  12.5%,
  62.5% {
    transform: scaleX(var(--uib-mult)) scaleY(1);
  }

  37.5%,
  87.5% {
    transform: scaleX(1) scaleY(var(--uib-mult));
  }
}

@keyframes q-pwa-preloader-explore {
  0%,
  100% {
    transform: scaleX(1) scaleY(1) translate(0%, 0%);
    transform-origin: top left;
    top: 0;
    left: 0;
  }

  12.5% {
    transform: scaleX(var(--uib-mult)) scaleY(1) translate(0%, 0%);
    transform-origin: top left;
    top: 0;
    left: 0;
  }

  12.50001% {
    transform: scaleX(var(--uib-mult)) scaleY(1) translate(0%, 0%);
    transform-origin: top right;
    top: 0;
    left: initial;
    right: 0;
  }

  25% {
    transform: scaleX(1) scaleY(1) translate(0%, 0%);
    transform-origin: top right;
    top: 0;
    left: initial;
    right: 0;
  }

  37.5% {
    transform: scaleX(1) scaleY(var(--uib-mult)) translate(0%, 0%);
    transform-origin: top right;
    top: 0;
    left: initial;
    right: 0;
  }

  37.5001% {
    transform: scaleX(1) scaleY(var(--uib-mult)) translate(0%, 0%);
    transform-origin: bottom right;
    top: initial;
    bottom: 0;
    left: initial;
    right: 0;
  }

  50% {
    transform: scaleX(1) scaleY(1) translate(0%, 0%);
    transform-origin: bottom right;
    top: initial;
    bottom: 0;
    left: initial;
    right: 0;
  }

  62.5% {
    transform: scaleX(var(--uib-mult)) scaleY(1) translate(0%, 0%);
    transform-origin: bottom right;
    top: initial;
    bottom: 0;
    left: initial;
    right: 0;
  }

  62.5001% {
    transform: scaleX(var(--uib-mult)) scaleY(1) translate(0%, 0%);
    transform-origin: bottom left;
    top: initial;
    bottom: 0;
    left: 0;
  }

  75% {
    transform: scaleX(1) scaleY(1) translate(0%, 0%);
    transform-origin: bottom left;
    top: initial;
    bottom: 0;
    left: 0;
  }

  87.5% {
    transform: scaleX(1) scaleY(var(--uib-mult)) translate(0%, 0%);
    transform-origin: bottom left;
    top: initial;
    bottom: 0;
    left: 0;
  }

  87.5001% {
    transform: scaleX(1) scaleY(var(--uib-mult)) translate(0%, 0%);
    transform-origin: top left;
    top: 0;
    left: 0;
  }
}

/* Make install prompt scrollable and above wide slider */
.q-pwa-install-prompt {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100vh;
  z-index: 10002;
  position: relative;
}

/* PWA Install Prompt */
.q-pwa-install-container {
  position: fixed;
  top: 0;
  z-index: 9999;
  height: 100vh;
  background: #ffffff;
  transition:
    transform 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}

.q-pwa-install-container.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* iOS Install Instructions */
.q-pwa-ios-instructions {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.q-pwa-ios-instructions-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 350px;
  position: relative;
}

.q-pwa-ios-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.q-pwa-ios-instructions-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}

.q-pwa-ios-instructions-content ol {
  margin: 0;
  padding-left: 20px;
}

.q-pwa-ios-instructions-content li {
  margin-bottom: 10px;
}

.ios-share-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-left: 5px;
}

.q-ios-prompt-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 20px 0;
  gap: 10px;
  border-bottom: 1px solid #f2f4f7;
}

.q-pwa-install-content {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 95%;
  margin: 0 auto;
}

/* Screenshot slider dots */
.q-pwa-screenshot-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.q-pwa-screenshot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d0d5dd;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.q-pwa-screenshot-dot.active {
  width: 16px;
  border-radius: 3px;
  background: #0384c6;
}

.q-pwa-narrow-dots {
  margin-top: 20px;
}

.q-pwa-wide-dots {
  margin-top: 12px;
}

/* PWA Screenshot Slider */
.q-pwa-screenshot-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Specific styles for narrow slider */
.q-pwa-narrow-slider {
  margin-left: 10%;
  margin-top: 10px;
  margin-bottom: 10px;
}

.q-pwa-screenshot-slides {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* .q-pwa-narrow-slide {
  width:auto;
  height: 420px;
  padding: 15px;
  border-radius: 8px;
  background: #F2F4F7 ;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
} */

.q-pwa-narrow-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f2f4f7;
  padding: 20px;
  border-radius: 20px;
}

/* Wide screenshot styles */
.q-pwa-wide-slide {
  width: 100%;
  height: 200px;
  display: none;
  align-items: center;
  justify-content: center;
}

.q-pwa-wide-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 21/9;
}

.q-pwa-install-icon {
  font-size: 48px;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  flex-shrink: 0;
}

.q-pwa-install-text {
  flex: 1;
}

.q-pwa-install-text h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.q-pwa-install-text p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.q-pwa-install-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.q-pwa-btn-primary {
  font-size: 12px;
  display: inline-block;
  border: 1px solid #d0d5dd;
  padding: 8px 15px;
  border-radius: 8px;
  box-shadow:
    0px 0px 1px rgba(16, 24, 40, 0.18) inset,
    0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
  transition: all 0.2s ease;
  background: #005a87;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.q-pwa-btn-primary:hover {
  background: #fff;
  color: #005a87;
}

/* Progress Bar Styles */
.q-pwa-install-progress-container {
  width: 100%;
  height: 8px;
  background: color-mix(in srgb, var(--pwa-theme-color, #005a87) 14%, #ffffff);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 16px;
  display: none;
}

.q-pwa-install-progress-bar {
  height: 100%;
  width: 0;
  background: var(--pwa-theme-color, #005a87);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.q-pwa-install-progress-container.show {
  display: block;
}

.q-pwa-btn-secondary {
  background: transparent;
  color: #000;
  border: 1px solid #000;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.q-pwa-btn-secondary:hover {
  background: #000;
  color: #fff;
}

/* PWA App Shell */

.pwa-installed .site-header {
  /* Adjust header for standalone mode */
  padding-top: env(safe-area-inset-top);
}

.pwa-installed .site-footer {
  /* Adjust footer for standalone mode */
  padding-bottom: env(safe-area-inset-bottom);
}

/* iOS Standalone Mode */
.ios-standalone {
  /* iOS-specific standalone styles */
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
  height: 100%;
  width: 100%;
  position: fixed;
}

.ios-standalone .site-header {
  padding-top: 44px;
  /* Status bar height */
}

/* Prevent content overlap with top section on iOS */
.ios-standalone body {
  padding-top: 44px !important;
}

/* Ensure top section is opaque on iOS */
.ios-standalone .site-header {
  background: #fff !important;
}

/* Fix for iOS blank screen issue */
@supports (-webkit-touch-callout: none) {
  html,
  body {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  body {
    /* Ensure body is visible on iOS */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Responsive Design for PWA */
@media (display-mode: standalone) {
  /* Styles when running as installed PWA */
  body {
    user-select: none;
    /* Prevent text selection in app mode */
  }

  /* Hide browser-specific elements */
  .browser-only {
    display: none !important;
  }

  /* Show PWA-specific elements */
  .pwa-only {
    display: block !important;
  }
}

@media (display-mode: fullscreen) {
  /* Styles for fullscreen mode */
  .site-header,
  .site-footer {
    display: none;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .q-pwa-install-actions {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .q-pwa-install-text h3 {
    font-size: 16px;
  }

  .q-pwa-install-text p {
    font-size: 13px;
  }
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes progressBar {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* Contact Picker Styles */
.q-pwa-contact-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.q-pwa-contact-container.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.q-pwa-contact-prompt {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.q-pwa-contact-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.q-pwa-contact-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.q-pwa-contact-text h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.q-pwa-contact-text p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.q-pwa-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

@keyframes loading {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .q-pwa-contact-content {
    background: #2c2c2c;
    color: #fff;
  }

  .q-pwa-install-text h3 {
    color: #fff;
  }

  .q-pwa-install-text p {
    color: #ccc;
  }
}

/* Subscription Toggle Styles */
#q-subscription-toggle {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
  border-radius: 8px;
  background-color: var(--pwa-theme-color, #007cba);
  border-color: var(--pwa-theme-color, #007cba);
  color: #ffffff;
}

#q-subscription-toggle i {
  transition: all 0.3s ease;
  font-size: 1.1em;
}

#q-subscription-toggle span {
  transition: all 0.3s ease;
}

/* Loading state */
#q-subscription-toggle.loading {
  pointer-events: none;
  background-color: #9ca3af;
  border-color: #9ca3af;
  color: #ffffff;
  cursor: progress;
}

#q-subscription-toggle.loading i {
  animation: spin 1s linear infinite;
}

/* Subscribed state */
#q-subscription-toggle.subscribed {
  background-color: #dc3545;
  border-color: #dc3545;
}

#q-subscription-toggle.subscribed:hover {
  background-color: #c82333;
  border-color: #bd2130;
  transform: translateY(-1px);
}

/* Unsubscribed state hover */
#q-subscription-toggle:not(.subscribed):not(.loading):hover {
  background-color: color-mix(
    in srgb,
    var(--pwa-theme-color, #007cba) 88%,
    #000000
  );
  border-color: color-mix(
    in srgb,
    var(--pwa-theme-color, #007cba) 88%,
    #000000
  );
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Focus styles for accessibility */
#q-subscription-toggle:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

/* Disabled state */
#q-subscription-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Ripple effect */
#q-subscription-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.3s ease,
    height 0.3s ease;
}

#q-subscription-toggle:active::before {
  width: 100px;
  height: 100px;
}

/* Notification styles */
.q-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease;
  cursor: pointer;
}

.q-notification-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.q-notification-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.q-notification-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.q-notification-content i {
  font-size: 1.2em;
  line-height: 1.2;
  margin-top: 1px;
  flex-shrink: 0;
}

.q-notification-content > :not(i) {
  flex: 1;
  min-width: 0;
}

/* Animations */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .q-notification {
    left: 20px;
    right: 20px;
    max-width: none;
  }

  #q-subscription-toggle {
    min-width: 100px;
    font-size: 0.9em;
  }
}

/* Print Styles */
@media print {
  .q-pwa-contact-container,
  .q-pwa-install-container,
  .q-notification,
  #q-subscription-toggle {
    display: none !important;
  }
}

/* PWA Stats Section */
.q-pwa-stats {
  background: #f2f4f7;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}

.q-pwa-stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
  gap: 6px;
}

.q-pwa-stats-label {
  font-size: 10px;
  font-weight: 500;
  color: #667085;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.q-pwa-stats-value {
  font-size: 18px;
  font-weight: 700;
  color: #667085;
}

/* Offline Banner */
.q-pwa-offline-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  text-align: center;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.2px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.q-pwa-offline-indicator.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.q-pwa-offline-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.frm_forms .q-pwa-offline-submit-disabled,
.frm_forms .q-pwa-offline-submit-disabled:hover,
.frm_forms .q-pwa-offline-submit-disabled:focus,
form.frm-show-form .q-pwa-offline-submit-disabled,
form.frm-show-form .q-pwa-offline-submit-disabled:hover,
form.frm-show-form .q-pwa-offline-submit-disabled:focus {
  background: #aeb6c2 !important;
  border-color: #9aa3b1 !important;
  color: #f5f7fa !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.78 !important;
  filter: grayscale(0.2);
}

@media (max-width: 480px) {
  .q-pwa-offline-indicator {
    justify-content: flex-start;
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* Toast Notification */
.q-pwa-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transition:
    transform 0.3s,
    opacity 0.3s;
  transform: translateY(0);
}

.q-pwa-toast-hiding {
  transform: translateY(10px);
  opacity: 0;
}

.q-pwa-toast-content {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
}

.q-pwa-toast-content span {
  flex: 1;
  font-size: 14px;
}

.q-pwa-toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
}

.q-pwa-toast-refresh {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.q-pwa-toast-info {
  border-left: 4px solid #3b82f6;
}

.q-pwa-toast-success {
  border-left: 4px solid #10b981;
  background: #10b981 !important;
  color: white !important;
}

.q-pwa-toast-success .q-pwa-toast-content {
  padding: 16px 20px;
}

.q-pwa-toast-success .q-pwa-toast-content span {
  font-size: 16px;
  font-weight: 500;
  color: white !important;
}

.q-pwa-toast-success .q-pwa-toast-close {
  color: white !important;
  opacity: 0.8;
}

.q-pwa-toast-warning {
  border-left: 4px solid #f59e0b;
}

.q-pwa-toast-error {
  border-left: 4px solid #ef4444;
}

/* Classes replacing inline styles from JS */

.q-ios-prompt-body {
  margin: 15px 0;
  padding: 10px;
  border: 1px solid #f2f4f7;
  border-radius: 12px;
  font-size: 12px;
}

.q-ios-prompt-body li span {
  background: var(--site-primary-color-light);
  border: 1px solid var(--site-primary-color-light-border);
  display: inline-block;
  border-radius: 999px;
  box-shadow:
    0px 0px 1px rgba(16, 24, 40, 0.18) inset,
    0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
  font-weight: 500;
  font-size: 11px;
}

.q-ios-prompt-list {
  margin: 12px 0 0 0;
  padding-left: 20px;
}

.q-ios-prompt-list-item {
  margin-bottom: 8px;
}

.q-ios-prompt-share-icon,
.q-ios-prompt-add-icon {
  background: #f2f4f7;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.q-ios-prompt-helper-image {
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  border-radius: 0px 0px 8px 8px;
}

.q-ios-prompt-video-section {
  width: 100%;
  margin: 16px 0 0 0;
}

.q-pwa-install-title-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.q-pwa-install-title {
  font-size: 22px;
  font-weight: bold;
  color: #000;
}

.q-pwa-stats-row {
  display: flex;
  gap: 0;
  justify-content: center;
  width: 100%;
  align-items: stretch;
}

.q-pwa-stats-divider {
  width: 1px;
  background: #e0e0e0;
  margin: 0 18px;
  min-height: 48px;
  align-self: center;
}

.q-pwa-stats-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.q-pwa-stats-desc {
  font-size: 10px;
  color: #667085;
  margin-top: 0;
  margin-bottom: 2px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.q-pwa-stats-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #e6f0fa;
  border-radius: 50%;
  margin: 0 auto 4px auto;
}

.q-pwa-stats-icon {
  font-size: 18px;
  color: #0384c6;
}

.q-pwa-stars {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-top: 2px;
}

.q-pwa-star {
  color: #667085;
  font-size: 10px;
  vertical-align: middle;
}

.q-pwa-install-desc {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.q-pwa-preview-heading {
  font-size: 17px;
  font-weight: bold;
  color: #000;
  text-align: left;
  width: 90%;
  margin: 20px auto 0px auto;
}

/* Video Section Styles */
.q-pwa-video-section {
  width: 90%;
  margin: 0 auto 25px auto;
}

.q-pwa-video-player {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow:
    0px 0px 1px rgba(16, 24, 40, 0.18) inset,
    0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  border: 1px solid #d0d5dd;
  background: #1d2327;
  display: block;
  margin-top: 20px;
}

.q-pwa-video-player::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.7);
}

.q-pwa-video-player::-webkit-media-controls-current-time-display {
  color: #fff;
}

/* Responsive video player */
@media (max-width: 768px) {
  .q-pwa-video-section {
    width: 95%;
  }

  .q-pwa-video-player {
    aspect-ratio: 16 / 9;
  }
}

/* End Notification Inbox */

/* Inline Style Replacements */
.q-preview-heading-section {
  margin: 0;
  margin-top: 15px;
}

.q-ios-instructions-list {
  list-style: none;
  padding-left: 0px;
}

.q-ios-step-label {
  color: #667085;
}

.q-samsung-install-container {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.q-samsung-browser-text {
  color: #d32f2f;
  font-size: 10px;
  font-weight: bold;
  margin: 0px;
}

.q-pwa-install-btn-loader {
  display: none;
  margin-left: 8px;
}

.q-pwa-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid var(--pwa-theme-color, #007bff);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.q-chrome-recommendation {
  margin: 15px 0;
  padding: 10px;
  border: 1px solid #f2f4f7;
  border-radius: 12px;
  font-size: 0.7em;
}

.q-ios-add-to-home-span {
  font-weight: 400;
  margin-top: 8px;
}
