/* Согласие на обработку данных — галочка под кнопкой оплаты
   (розница /checkout/, опт и «День в день» на /cart/). Как на Киссатен,
   в цветах Ярового. */

.nbc-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 0;
    cursor: pointer;
    user-select: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #2A2A2A;
    text-align: left;
}

.nbc-consent input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.nbc-consent-box {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: -1px;
    border: 1.5px solid #C49953;
    border-radius: 6px;
    background: #fff;
    transition: background .15s, box-shadow .15s;
}

.nbc-consent-box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.nbc-consent input:checked + .nbc-consent-box { background: #C49953; }
.nbc-consent input:checked + .nbc-consent-box::after { opacity: 1; }
.nbc-consent input:focus-visible + .nbc-consent-box { box-shadow: 0 0 0 3px rgba(196, 153, 83, .3); }

.nbc-consent-text a {
    color: #1B2356;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nbc-consent-text a:hover { color: #C49953; }

/* Кнопка оплаты без галочки */
.nbc-no-consent:disabled,
button.nbc-no-consent[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

/* Розница /checkout/: блок оплаты WooCommerce — колонка, где у кнопки order: 1,
   а метки полей там в капслоке 11px. Возвращаем галочке её вид и ставим под кнопку. */
#payment label.nbc-consent {
    display: flex;
    order: 2;
    margin: 14px 0 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    color: #2A2A2A;
}

.nbc-consent .nbc-consent-box { display: block; }
