@keyframes exclusivePickerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes exclusivePickerSlideIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.exclusive-value-picker-backdrop {
    position: fixed;
    z-index: 1050;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(20, 13, 7, 0.62);
    backdrop-filter: blur(3px);
    animation: exclusivePickerFadeIn 0.2s ease-out both;
}

.exclusive-value-picker {
    width: 100%;
    max-width: 390px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    background: #fffdf9;
    box-shadow: 0 22px 60px rgba(48, 28, 8, 0.38);
    animation: exclusivePickerSlideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.exclusive-value-picker__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 16px 20px 16px 64px;
    color: #fff;
    background: linear-gradient(135deg, #7a2918 0%, #b64b22 55%, #d88628 100%);
}

.exclusive-value-picker__header::before {
    position: absolute;
    left: 20px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    content: "\2605";
    color: #ffe5a5;
    font-size: 17px;
}

.exclusive-value-picker__title {
    margin: 0;
    padding-right: 12px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.exclusive-value-picker__close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    outline: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 25px;
    line-height: 29px;
    text-align: center;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.exclusive-value-picker__close:hover,
.exclusive-value-picker__close:focus {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: rotate(90deg);
}

.exclusive-value-picker__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 310px;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(180deg, #fffaf1 0%, #fff 100%);
}

.exclusive-value-picker__option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 45px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #eadbc8;
    border-radius: 9px;
    background: #fff;
    color: #4f3528;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(92, 56, 25, 0.05);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.exclusive-value-picker__option:hover {
    border-color: #d88a45;
    background: #fff8ed;
    box-shadow: 0 5px 12px rgba(146, 75, 28, 0.12);
    transform: translateY(-1px);
}

.exclusive-value-picker__option.is-selected,
.exclusive-value-picker__option:has(input:checked) {
    border-color: #bd5a28;
    background: #fff0dc;
    color: #812e18;
    box-shadow: inset 0 0 0 1px rgba(189, 90, 40, 0.12);
}

.exclusive-value-picker__option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #b64b22;
}

.exclusive-value-picker__footer {
    padding: 13px 20px;
    border-top: 1px solid #efe0ce;
    background: #fffaf3;
    text-align: right;
}

.exclusive-value-picker__footer .btn-primary {
    min-width: 110px;
    padding: 9px 20px;
    border: 0;
    border-radius: 22px;
    outline: 0;
    background: linear-gradient(135deg, #a83e20, #d17a26);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(150, 65, 26, 0.25);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.exclusive-value-picker__footer .btn-primary:hover,
.exclusive-value-picker__footer .btn-primary:focus {
    background: linear-gradient(135deg, #913019, #bd651c);
    box-shadow: 0 6px 14px rgba(150, 65, 26, 0.34);
    transform: translateY(-1px);
}

textarea.js-exclusive-value-picker {
    cursor: pointer;
    background-color: #fffdf8;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea.js-exclusive-value-picker:hover,
textarea.js-exclusive-value-picker:focus {
    border-color: #c87532;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(200, 117, 50, 0.16);
}

@media (max-width: 480px) {
    .exclusive-value-picker__options {
        gap: 8px;
        padding: 14px;
    }

    .exclusive-value-picker__header {
        padding-left: 58px;
    }

    .exclusive-value-picker__header::before {
        left: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .exclusive-value-picker-backdrop,
    .exclusive-value-picker {
        animation: none;
    }
}
