/* 
 * QAR Market Global Styles
 * This file contains global styles used across the Home layout
 */

/* =============================================
   CSS Variables (Note: --main-color is set inline in HTML)
   ============================================= */

/* =============================================
   Modal Styles
   ============================================= */
.qar-modal-mask {
  background: #00000099 !important;
  -webkit-backdrop-filter: blur(2.5px) !important;
  backdrop-filter: blur(2.5px) !important;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden !important;
}

/* =============================================
   Custom Checkbox Component
   ============================================= */
.qar-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border-radius: 4px;
  border: 1px solid #646464;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.qar-checkbox:checked {
  background: var(--main-color);
  border-color: var(--main-color);
}

.qar-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' viewBox='0 0 9 7' fill='none'%3E%3Cpath d='M7.41667 0.75L2.83333 5.33333L0.75 3.25' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.qar-checkbox:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qar-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--main-color) 20%, transparent);
}
