/* Restrict Actions Modal Styles */

.restrict-actions-field {
    margin-bottom: 1.5vw;
}

.restrict-actions-field:last-of-type {
    margin-bottom: 0;
}

.restrict-actions-label {
    display: block;
    font-size: 0.9vw;
    font-weight: 600;
    color: #0f0f14;
    margin-bottom: 0.8vw;
}

.restrict-actions-buttons {
    display: flex;
    gap: 0.8vw;
    flex-wrap: wrap;
}

.restrict-action-btn {
    flex: 1;
    min-width: 8vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    padding: 0.8vw 1.2vw;
    font-size: 0.85vw;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
    background-color: rgba(255, 255, 255, 0.8);
    border: 0.1vw solid rgba(139, 92, 246, 0.2);
    border-radius: 0.5vw;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.restrict-action-btn:hover {
    background-color: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
    color: rgba(0, 0, 0, 0.9);
}

.restrict-action-btn.active {
    background-color: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    color: rgba(139, 92, 246, 0.7);
    font-weight: 500;
}

.restrict-action-btn.active:hover {
    background-color: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.4);
}

.restrict-action-btn i {
    font-size: 0.85vw;
}

.restrict-duration-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8vw;
    position: relative;
}

.restrict-duration-input {
    flex: 1;
    max-width: 10vw;
    padding: 0.8vw 1vw;
    font-size: 0.9vw;
    font-weight: 500;
    color: #0f0f14;
    background-color: rgba(255, 255, 255, 0.8);
    border: 0.1vw solid rgba(139, 92, 246, 0.2);
    border-radius: 0.5vw;
    transition: all 0.2s ease;
    font-family: inherit;
}

.restrict-duration-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 0.2vw rgba(139, 92, 246, 0.1);
}

.restrict-duration-label {
    font-size: 0.85vw;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
}

/* Error message for duration input */
.restrict-duration-error {
    position: absolute;
    bottom: -1.5vw;
    right: 0;
    font-size: 0.75vw;
    color: #ef4444;
    font-weight: 500;
    display: none;
    white-space: nowrap;
    background-color: rgba(239, 68, 68, 0.1);
    padding: 0.3vw 0.6vw;
    border-radius: 0.3vw;
    border: 0.069vw solid rgba(239, 68, 68, 0.3);
}

.restrict-duration-error.show {
    display: block;
}

/* Модальное окно для ограничений */
#restrict-actions-modal .modal {
    max-width: 34.53vw;
    border-radius: 1.105vw !important;
    overflow: visible;
}

#restrict-actions-modal .modal-body {
    padding: 1.5vw;
    overflow: visible;
}

#restrict-actions-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8vw;
    padding: 1.2vw 1.5vw;
    border-top: 0.08vw solid rgba(139, 92, 246, 0.1);
}

/* Reason Select Field - Custom Dropdown (like country selector) */
.restrict-reason-select {
    position: relative;
    width: 100%;
    z-index: 1;
}

.restrict-reason-selected {
    padding: 0.7vw 1.2vw;
    font-size: 0.8vw;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.6);
    border: 0.08vw solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5vw;
    color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.6vw;
    min-height: auto;
    height: auto;
}

.restrict-reason-selected:hover {
    border-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.08);
}

.restrict-reason-selected.active {
    border-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.08);
}

.restrict-reason-icon {
    font-size: 0.9vw;
    flex-shrink: 0;
    width: 1vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    color: rgba(139, 92, 246, 0.8);
}

.restrict-reason-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.8vw;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.85);
    font-family: inherit;
    padding: 0;
    cursor: pointer;
}

.restrict-reason-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.restrict-reason-input[readonly] {
    cursor: pointer;
}

.restrict-reason-chevron {
    font-size: 0.7vw;
    color: rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.restrict-reason-selected.active .restrict-reason-chevron {
    transform: rotate(180deg);
}

.restrict-reason-dropdown {
    position: fixed;
    background-color: #ffffff;
    border: 0.08vw solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5vw;
    box-shadow: 0 0.276vw 0.829vw rgba(0, 0, 0, 0.15);
    z-index: 5000001;
    display: none;
    max-height: 20vw;
    overflow: hidden;
    flex-direction: column;
    min-width: 13.812vw;
}

.restrict-reason-dropdown.active {
    display: flex;
}

.restrict-reason-list {
    overflow-y: auto;
    max-height: 20vw;
    padding: 0.3vw 0;
}

.restrict-reason-item {
    padding: 0.4vw 1vw;
    display: flex;
    align-items: center;
    gap: 0.6vw;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.8vw;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 500;
}

.restrict-reason-item:hover {
    background-color: rgba(139, 92, 246, 0.1);
}

.restrict-reason-item.selected {
    background-color: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.restrict-reason-item i {
    font-size: 0.9vw;
    flex-shrink: 0;
    width: 1vw;
    text-align: center;
    line-height: 1;
    color: rgba(139, 92, 246, 0.7);
}

.restrict-reason-item.selected i {
    color: #8b5cf6;
}

.restrict-reason-item span {
    flex: 1;
}

