/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Oct 21 2025 | 09:05:06 */

/* Scope everything to this field only */
.tes-custom-class {
  --tes-accent: #2f7df6;        /* tweak to match your brand */
  --tes-accent-ink: #ffffff;
  --tes-border: rgba(0,0,0,.18);
  --tes-bg: #ffffff;
  --tes-bg-hover: #f6f8fb;
  --tes-radius: 12px;
  --tes-shadow: 0 1px 2px rgba(0,0,0,.06);
  --tes-shadow-active: 0 2px 10px rgba(47,125,246,.25);
}

/* Layout the two options side-by-side with a gap */
.tes-custom-class .frm_opt_container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;             /* ensures a slight space between buttons */
  margin-top: 8px;
}

/* Fallback spacing if grid gets overridden */
.tes-custom-class .frm_opt_container .frm_radio + .frm_radio {
  margin-left: 12px;
}

/* Each radio wrapper */
.tes-custom-class .frm_opt_container .frm_radio {
  min-width: 0;          /* avoid overflow */
}

/* Make the whole label a button */
.tes-custom-class .frm_opt_container .frm_radio > label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--tes-border);
  border-radius: var(--tes-radius);
  background: var(--tes-bg);
  box-shadow: var(--tes-shadow);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, box-shadow .2s ease, transform .02s ease;
  box-sizing: border-box; /* so borders/shadows don't visually 'touch' */
}

/* Hover/active interactions */
.tes-custom-class .frm_opt_container .frm_radio > label:hover {
  background: var(--tes-bg-hover);
}
.tes-custom-class .frm_opt_container .frm_radio > label:active {
  transform: translateY(0.5px);
}

/* Visually hide the native radio but keep it accessible */
.tes-custom-class .frm_opt_container input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
}

/* Selected state — style label when its radio is checked */
.tes-custom-class .frm_opt_container .frm_radio > label:has(input[type="radio"]:checked) {
  background: var(--tes-accent);
  color: var(--tes-accent-ink);
  border-color: var(--tes-accent);
  box-shadow: var(--tes-shadow-active);
}

/* Keyboard focus ring for accessibility */
.tes-custom-class .frm_opt_container .frm_radio > label:has(input[type="radio"]:focus-visible) {
  outline: 3px solid color-mix(in oklab, var(--tes-accent) 40%, white);
  outline-offset: 2px;
}

/* High-contrast/fallback if :has is unsupported */
@supports not (selector(:has(*))) {
  /* Graceful degrade: selection will use browser default */
  .tes-custom-class .frm_opt_container .frm_radio > label {
    /* no extra rules needed */
  }
}

/* Mobile: stack buttons with vertical spacing */
@media (max-width: 420px) {
  .tes-custom-class .frm_opt_container {
    grid-template-columns: 1fr;
    gap: 10px;          /* vertical spacing between stacked buttons */
  }
  .tes-custom-class .frm_opt_container .frm_radio + .frm_radio {
    margin-left: 0;     /* remove sideways margin when stacked */
  }
}

/* Field label spacing */
.tes-custom-class .frm_primary_label {
  margin-bottom: 6px;
  font-weight: 600;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .tes-custom-class .frm_opt_container .frm_radio > label {
    transition: none;
  }
}
