.order-agrees {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-agrees .item {
    --aggreeBackgroundColor: var(--color-orange);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: #fafafa;
    border-radius: 12px;
    padding: 8px 16px;
    min-height: 40px;
}

.order-agrees a {
    text-decoration: underline;
}

@media (hover: hover) {
    .order-agrees .item:not(:has(a:hover)):hover {
        background: hsl(from var(--aggreeBackgroundColor) h l 98%);
    }

    .order-agrees a:hover {
        text-decoration: none;
    }
}

.order-agrees .item:is(:active, :focus-visible):not(:has(a:is(:hover, :active, :focus-visible))) {
    background: hsl(from var(--aggreeBackgroundColor) h l 96%);
}

.order-agrees .checkbox {
    width: 18px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--color-light-3);
    border-radius: 50%;
    box-shadow: inset 2px 1px 1px hsl(from var(--color-black) h s l / 10%);
}

@media (min-width: 768px) {
    .order-agrees .checkbox {
        width: 20px;
    }
}

.order-agrees .checkbox .icon {
    display: none;
}

.order-agrees .item:has(input:checked) {
    --aggreeBackgroundColor: var(--color-success);
}

.order-agrees .checkbox:has(input:checked) {
    background: var(--color-black);
}

.order-agrees .checkbox:has(input:checked) .icon {
    display: block;
}

.order-agrees .checkbox .icon {
    color: var(--color-font-inverse);
    width: 80%;
    translate: 0 2%;
}

.order-agrees .checkbox input {
    display: none !important;
}

.order-agrees .text {
    font-family: Onest;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    line-height: 125%;
    /* text-wrap: balance; */
    user-select: none;
}

@media (min-width: 768px) {
    .order-agrees .text {
        font-size: 12px;
    }
}
