/* ——— СТИЛИ ТОЛЬКО ДЛЯ БЛОКА LICENSE ——— */

/* Акцент нативного radio как запасной вариант */
.edd_download_purchase_form .edd-extra-license input[type="radio"]{
  accent-color:#FF3B30;
}

/* Заголовок LICENSE */
.edd_download_purchase_form .edd-extra-license .edd-license-heading{
  font-weight:700;
  color:#20314B;
  margin:16px 0 10px;
  text-transform:uppercase;
  letter-spacing:.02em;
  border-bottom:1px solid #E3E7EE;
  padding-bottom:10px;
}

/* Пункты LICENSE */
.edd_download_purchase_form .edd-extra-license .edd-license-option{
  position:relative;
  display:block;
  padding:.35rem 0 .35rem 30px; /* место под кружок */
  cursor:pointer;
  line-height:1.6;
  color:#20314B;
  user-select:none;
}

/* Скрыть нативный input и растянуть для клика */
.edd_download_purchase_form .edd-extra-license .edd-license-option input[type="radio"]{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer;
}

/* Серый кружок слева */
.edd_download_purchase_form .edd-extra-license .edd-license-option::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #C8D0DF;
    box-sizing: border-box;
}

.edd_download_purchase_form .edd-extra-license .edd-license-option::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 4px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-60%) rotate(45deg) scale(0);
    opacity: 0;
    transition: transform .18s 
ease, opacity .18s 
ease;
    pointer-events: none;
}

@supports selector(label:has(input:checked)) {
  .edd_download_purchase_form .edd-extra-license
  .edd-license-option:has(input:checked)::before{
    background:#FF3B30;
    border-color:#FF3B30;
  }
  .edd_download_purchase_form .edd-extra-license
  .edd-license-option:has(input:checked)::after{
    opacity:1;
    transform:translateY(-60%) rotate(45deg) scale(1);
  }
  .edd_download_purchase_form .edd-extra-license
  .edd-license-option:has(input:focus-visible)::before{
    outline:3px solid #9CC4FF;
    outline-offset:2px;
  }
  .edd_download_purchase_form .edd-extra-license .edd-license-option{ opacity:.85; }
  .edd_download_purchase_form .edd-extra-license
  .edd-license-option:has(input:checked){ opacity:1; }
}

/* Немного расстояния между пунктами */
.edd_download_purchase_form .edd-extra-license .edd-license-option{ margin:0px 0; }
