/* Плавающая кнопка */
.hash-live-floating-btn {
    display: none;
}

@media screen and (max-width: 767.5px) {
    .hash-live-floating-btn {
        padding: 8px;
        display: flex;
        align-items: center;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 14px;
        position: fixed;
        background-color: #1b1a26d1;
        box-shadow: 0px 2px 12px rgb(255 255 255 / 35%);
        color: white;
        border-radius: 5px;
        justify-content: center;
        font-weight: bold;
        cursor: pointer;
        z-index: 10000;
        transition: all 0.3s ease;
        min-width: 200px;
    }
}

@media screen and (max-width: 500px) {
    .hash-live-floating-btn {
        max-width: 80%;
        min-width: 100px;
        width: 300px;
        justify-content: center;
    }
}

.hash-live-floating-btn:hover {
    background-color: #005a87;
    transform: scale(1.1);
}

/* Модальное окно */
.hash-live-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hash-live-modal-content {
    background-color: var(--wpsc-white-bg);
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hash-live-modal-header {
    padding: 15px 20px;
    /* background-color: #f8f9fa; */
    background-color: var(--wpsc-body-bg);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.hash-live-modal-header h3 {
    margin: 0;
    /* color: #333; */
    color: var(--wpsc-text-color);
    font-size: 18px;
}

.hash-live-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.hash-live-close:hover {
    color: #000;
}

.hash-live-modal-body {
    padding: 20px;
}

.hash-live-input-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.hash-live-input-group label {
    margin-right: 10px;
    min-width: 100px;
    font-weight: bold;
    /* padding: 4px 8px; */
    border-radius: 3px;
}

.hash-live-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.hash-live-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Стили для placeholder */
.hash-live-input::placeholder {
    color: #999;
    font-style: italic;
    opacity: 0.7;
}

.hash-live-input:focus::placeholder {
    opacity: 0.5;
}

/* Стили для хештегов в контенте */
span[data-hash-word] {
    border-radius: 3px;
    font-weight: 500;
    /* padding: 2px 4px; */
}

/* Стили для виджета в сайдбаре */
.hash-live-widget-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hash-live-widget-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.text-width_label {
    display: block;
    padding: 0px 5px;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 0;
}

.hash-live-widget-item input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .hash-live-modal-content {
        width: 95%;
        margin: 0 auto;
        max-height: 90vh;
        overflow: scroll;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .hash-live-input-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hash-live-input-group label {
        margin-bottom: 5px;
        width: 100%;
    }
    
    .hash-live-input {
        width: 100%;
    }
}

.widget_hash_live_sidebar_widget {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* .word-text-width span {
    color: inherit !important;
} */


.text-width_label span, .word-text-width span {
    filter: brightness(0.8) contrast(1.1);
}


label.word-text-width {
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: 1.1;
}


