/* Gooey variant styles */
.zf-checkbox--gooey .checkbox-wrapper-12 {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  .zf-checkbox--gooey .checkbox-wrapper-12 > svg {
    position: absolute;
    top: -130%;
    left: -170%;
    width: 110px;
    pointer-events: none;
  }
  .zf-checkbox--gooey .checkbox-wrapper-12 * {
    box-sizing: border-box;
  }
  .zf-checkbox--gooey .checkbox-wrapper-12 input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    margin: 0;
  }
  .zf-checkbox--gooey .checkbox-wrapper-12 input[type="checkbox"]:focus {
    outline: 0;
  }
  .zf-checkbox--gooey .checkbox-wrapper-12 .cbx {
    width: 24px;
    height: 24px;
    top: calc(50vh - 12px);
    left: calc(50vw - 12px);
  }
  .zf-checkbox--gooey .checkbox-wrapper-12 .cbx input {
    position: absolute;
    top: 5px;
    left: 4px;
    width: 16px;
    height: 16px;
    border: 2px solid #bfbfc0;
    border-radius: 50%;
  }
  .zf-checkbox--gooey .checkbox-wrapper-12 .cbx label {
    width: 18px;
    height: 18px;
    background: none;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transform: trasnlate3d(0, 0, 0);
    pointer-events: none;
  }
  .zf-checkbox--gooey .checkbox-wrapper-12 .cbx svg {
    position: absolute;
    top: 5px;
    left: 7px;
    z-index: 1;
    pointer-events: none;
    width: 10px;
  }
  .zf-checkbox--gooey .checkbox-wrapper-12 .cbx svg path {
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 19;
    stroke-dashoffset: 19;
    transition: stroke-dashoffset 0.3s ease;
    transition-delay: 0.2s;
  }
  .zf-checkbox--gooey .checkbox-wrapper-12 .cbx input:checked + label {
    animation: splash-12 0.6s ease forwards;
  }
  .zf-checkbox--gooey .checkbox-wrapper-12 .cbx input:checked + label + svg path {
    stroke-dashoffset: 0;
  }
  @-moz-keyframes splash-12 {
    40% {
      background: #07C3D6;
      box-shadow: 0 -18px 0 -8px #07C3D6, 16px -8px 0 -8px #07C3D6, 16px 8px 0 -8px #07C3D6, 0 18px 0 -8px #07C3D6, -16px 8px 0 -8px #07C3D6, -16px -8px 0 -8px #07C3D6;
    }
    100% {
      background: #07C3D6;
      box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
  }
  @-webkit-keyframes splash-12 {
    40% {
      background: #07C3D6;
      box-shadow: 0 -18px 0 -8px #07C3D6, 16px -8px 0 -8px #07C3D6, 16px 8px 0 -8px #07C3D6, 0 18px 0 -8px #07C3D6, -16px 8px 0 -8px #07C3D6, -16px -8px 0 -8px #07C3D6;
    }
    100% {
      background: #07C3D6;
      box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
  }
  @-o-keyframes splash-12 {
    40% {
      background: #07C3D6;
      box-shadow: 0 -18px 0 -8px #07C3D6, 16px -8px 0 -8px #07C3D6, 16px 8px 0 -8px #07C3D6, 0 18px 0 -8px #07C3D6, -16px 8px 0 -8px #07C3D6, -16px -8px 0 -8px #07C3D6;
    }
    100% {
      background: #07C3D6;
      box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
  }
  @keyframes splash-12 {
    40% {
      background: #07C3D6;
      box-shadow: 0 -18px 0 -8px #07C3D6, 16px -8px 0 -8px #07C3D6, 16px 8px 0 -8px #07C3D6, 0 18px 0 -8px #07C3D6, -16px 8px 0 -8px #07C3D6, -16px -8px 0 -8px #07C3D6;
    }
    100% {
      background: #07C3D6;
      box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
  }
label.checkbox-2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animated variant */
.zf-checkbox--animated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.zf-checkbox--animated input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.zf-checkbox--animated .zf-checkbox__box {
    width: 25px;
    height: 25px;
    background-color: transparent;
    border: 2px solid #246DFF;
    border-radius: 50%;
    transform-origin: center;
    vertical-align: middle;
    transition: background-color 150ms 200ms, transform 350ms cubic-bezier(0.78, -1.22, 0.17, 1.89);
    position: relative;
    flex-shrink: 0;
}

.zf-checkbox--animated .zf-checkbox__box::before {
    content: "";
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #246DFF;
    position: absolute;
    transform: rotate(45deg);
    top: 11px;
    left: 7px;
    transition: width 50ms ease 50ms;
    transform-origin: 0% 0%;
}

.zf-checkbox--animated .zf-checkbox__box::after {
    content: "";
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #246DFF;
    position: absolute;
    transform: rotate(305deg);
    top: 15px;
    left: 9px;
    transition: width 50ms ease;
    transform-origin: 0% 0%;
}

.zf-checkbox--animated:hover .zf-checkbox__box::before {
    width: 5px;
    transition: width 100ms ease;
}

.zf-checkbox--animated:hover .zf-checkbox__box::after {
    width: 10px;
    transition: width 150ms ease 100ms;
}

.zf-checkbox--animated input:checked ~ .zf-checkbox__box {
    background-color: #246DFF;
    transform: scale(1.25);
}

.zf-checkbox--animated input:checked ~ .zf-checkbox__box::before {
    width: 5px;
    background: #fff;
    transition: width 150ms ease 100ms;
}

.zf-checkbox--animated input:checked ~ .zf-checkbox__box::after {
    width: 10px;
    background: #fff;
    transition: width 150ms ease 100ms;
}

.zf-checkbox--animated.zf-checkbox--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* SVG variant */
.zf-checkbox--svg {
    --cb-primary: #5F11E8;
    --cb-primary-20: rgb(95 17 232 / 20%);
    --cb-primary-10: rgb(95 17 232 / 10%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.zf-checkbox--svg input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.zf-checkbox--svg .zf-checkbox__symbol {
    display: inline-flex;
    margin-right: 0;
    border: 1px solid var(--cb-primary);
    position: relative;
    border-radius: 0.1em;
    width: 1.5em;
    height: 1.5em;
    font-size: 16px;
    transition: box-shadow 0.4s cubic-bezier(.11,.29,.18,.98), background-color 0.4s;
    box-shadow: 0 0 0 0 var(--cb-primary-10);
    flex-shrink: 0;
}

.zf-checkbox--svg .zf-checkbox__symbol::after {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    width: 0.25em;
    height: 0.25em;
    background-color: var(--cb-primary-20);
    opacity: 0;
    border-radius: 3em;
    transform: scale(1);
    transform-origin: 50% 50%;
}

.zf-checkbox--svg .icon-checkbox {
    width: 1em;
    height: 1em;
    margin: auto;
    fill: none;
    stroke-width: 3;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--cb-primary);
}

.zf-checkbox--svg .icon-checkbox path {
    stroke-dasharray: 30px, 31px;
    stroke-dashoffset: 31px;
    transition: stroke-dashoffset 0.2s ease-in;
}

.zf-checkbox--svg input:checked ~ .zf-checkbox__symbol::after {
    animation: zf-cb-ripple 1.5s cubic-bezier(.11,.29,.18,.98);
}

.zf-checkbox--svg input:checked ~ .zf-checkbox__symbol .icon-checkbox path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.4s cubic-bezier(.11,.29,.18,.98);
}

.zf-checkbox--svg input:focus ~ .zf-checkbox__symbol {
    box-shadow: 0 0 0 0.25em var(--cb-primary-20);
}

.zf-checkbox--svg.zf-checkbox--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes zf-cb-ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: scale(20);
    }
}

/* Error state */
.checkbox-error {
    display: block;
    color: var(--zf-error, #ef4444);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
