.social-links-wrapper { 
    margin-bottom: 15px; 
    position: relative; 
}

.social-link-item { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 10px; 
    align-items: center; 
    padding: 10px; 
    background: #f9f9f9; 
    border-radius: 5px; 
    border: 1px solid #eee; 
}

.social-link-item.is-priority { 
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%); 
    border-color: #ffc107; 
    border-left: 3px solid #ffc107; 
}

.sortable .social-link-item { 
    cursor: move; 
}

.sort-handle { 
    cursor: move; 
    padding: 5px; 
    color: #666; 
    font-size: 16px; 
    user-select: none; 
}

.priority-info-panel { 
    margin-bottom: 15px; 
    padding: 12px 15px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    border-radius: 6px; 
    color: white; 
}

.priority-info-header { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 600; 
    margin-bottom: 5px; 
}

.priority-info-header svg { 
    width: 18px; 
    height: 18px; 
    fill: currentColor; 
}

.priority-info-text { 
    margin: 0; 
    font-size: 0.85rem; 
    opacity: 0.9; 
}

.priority-checkbox { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 32px; 
    height: 32px; 
    cursor: pointer; 
    flex-shrink: 0; 
}

.priority-checkbox input[type="checkbox"] { 
    display: none; 
}

.priority-star { 
    font-size: 20px; 
    color: #ddd; 
    transition: all 0.2s ease; 
}

.priority-checkbox input[type="checkbox"]:checked + .priority-star { 
    color: #ffc107; 
    text-shadow: 0 0 3px rgba(255,193,7,0.5); 
    transform: scale(1.1); 
}

.priority-counter { 
    margin-top: 10px; 
    font-size: 0.85rem; 
    color: #666; 
    text-align: right; 
}

.priority-counter .priority-count-current { 
    font-weight: 600; 
    color: #ffc107; 
}

.social-icon-select { 
    width: 150px; 
    padding: 6px 12px; 
    border: 1px solid #ddd; 
    border-radius: 3px; 
    font-size: 14px; 
    background: #fff; 
    cursor: pointer; 
}

.social-icon-select:focus { 
    border-color: #4CAF50; 
    outline: none; 
    box-shadow: 0 0 0 2px rgba(76,175,80,0.2); 
}

.social-text-input, .social-url-input { 
    padding: 6px 12px; 
    border: 1px solid #ddd; 
    border-radius: 3px; 
    font-size: 14px; 
    background: #f7f7f7; 
    font-weight: bold; 
    color: #475bff; 
}

.show-text .social-text-input, .show-text .social-url-input { 
    flex: 1; 
}

.hide-text .social-url-input { 
    flex: 2; 
}

.social-text-input:focus, .social-url-input:focus { 
    border-color: #4CAF50; 
    outline: none; 
    box-shadow: 0 0 0 2px rgba(76,175,80,0.2); 
}

.social-text-input[readonly] { 
    background: #f5f5f5; 
    cursor: not-allowed; 
}

.social-icon-preview { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 24px; 
    height: 24px; 
}

.social-icon-preview .icms-svg-icon { 
    width: 20px; 
    height: 20px; 
}

.remove-social-link { 
    padding: 6px 12px; 
    background: #ff4444; 
    color: white; 
    border: none; 
    border-radius: 3px; 
    cursor: pointer; 
    font-size: 14px; 
    transition: background 0.2s; 
}

.add-social-link { 
    padding: 8px 15px; 
    background: #4CAF50; 
    color: white; 
    border: none; 
    border-radius: 3px; 
    cursor: pointer; 
    margin-top: 10px; 
    font-size: 14px; 
    transition: background 0.2s; 
}

.add-social-link:disabled { 
    background: #ccc; 
    cursor: not-allowed; 
}

.remove-social-link:hover:not(:disabled) { 
    background: #cc0000; 
}

.add-social-link:hover:not(:disabled) { 
    background: #45a049; 
}

.base-url-prefix { 
    position: absolute; 
    left: 12px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #666; 
    font-size: 14px; 
    pointer-events: none; 
    z-index: 1; 
    white-space: nowrap; 
    user-select: none; 
}

.url-input-wrapper { 
    position: relative; 
    flex: 2; 
}

.social-url-input { 
    width: 100%; 
    padding-left: 12px; 
    box-sizing: border-box; 
}

.items-counter { 
    margin-top: 5px; 
    font-size: 12px; 
    color: #666; 
    text-align: right; 
}

.sortable .social-links-list { 
    min-height: 50px; 
}

.sortable .social-link-item.sortable-ghost { 
    opacity: 0.5; 
    background: #e3f2fd; 
}

.sortable .social-link-item.sortable-chosen { 
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
}

.social-links-list-front { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    margin: 10px 0; 
    width: 100%; 
}

.social-regular-links, 
.social-priority-links { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    width: 100%; 
}

.social-item-wrapper {
    position: relative;
    display: inline-block;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none !important;
    background: #f5f5f5;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    cursor: pointer;
}

.social-link:hover,
.social-link:focus,
.social-link:active,
.social-link:visited {
    text-decoration: none !important;
    outline: none;
}

.with-animation .social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.icon-size-small .icms-svg-icon { 
    width: 16px; 
    height: 16px; 
}

.icon-size-medium .icms-svg-icon { 
    width: 24px; 
    height: 24px; 
}

.icon-size-large .icms-svg-icon { 
    width: 32px; 
    height: 32px; 
}

.icon-style-outline .social-link { 
    background: transparent; 
    border: 2px solid currentColor; 
}

.icon-style-rounded .social-link { 
    border-radius: 8px; 
}

.icon-style-circle .social-link { 
    border-radius: 50%; 
    padding: 10px; 
}

.color-scheme-brand .social_link_facebook-f { color: #3b5998; }
.color-scheme-brand .social_link_github { color: #24292e; }
.color-scheme-brand .social_link_instagram { color: #c13584; }
.color-scheme-brand .social_link_odnoklassniki { color: #ee8208; }
.color-scheme-brand .social_link_vk { color: #4a76a8; }
.color-scheme-brand .social_link_telegram-plane { color: #0088cc; }
.color-scheme-brand .social_link_youtube { color: #ff0000; }
.color-scheme-brand .social_link_whatsapp { color: #25d366; }
.color-scheme-brand .social_link_viber { color: #665CAC; }
.color-scheme-brand .social_link_vimeo { color: #1ab7ea; }
.color-scheme-brand .social_link_steam { color: #000000; }
.color-scheme-brand .social_link_snapchat { color: #FFFC00; }
.color-scheme-brand .social_link_skype { color: #00AFF0; }
.color-scheme-brand .social_link_slack { color: #4A154B; }
.color-scheme-brand .social_link_patreon { color: #FF424D; }
.color-scheme-brand .social_link_yandex { color: #FF0000; }
.color-scheme-brand .social_link_link { color: #333333; }

.color-scheme-monochrome .social-link { 
    color: #666 !important; 
}

.color-scheme-monochrome .social-link:hover { 
    color: #333 !important; 
}

.social_link_text { 
    font-size: 14px; 
    color: inherit; 
}

.with-priority { 
    flex-direction: column; 
    align-items: stretch; 
}

.social-priority-block { 
    width: 100%; 
    border-radius: 8px; 
    padding: 12px 15px; 
    margin-bottom: 12px; 
    box-shadow: 0 2px 8px rgba(255,193,7,0.15); 
}

.social-priority-header { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-weight: 600; 
    margin-bottom: 10px; 
    padding-bottom: 8px; 
    border-bottom: 1px dashed; 
}

.social-star-icon { 
    width: 16px; 
    height: 16px; 
}

.social-priority-links .social-link { 
    background: white; 
}

.social-priority-links .social-link::before { 
    content: '★'; 
    color: inherit; 
    font-size: 12px; 
    margin-right: 4px; 
    opacity: 0.9; 
}

.social-copy-btn {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 30;
    padding: 0;
    margin: 0;
}

.with-copy .social-link {
    padding-right: 25px;
}

.social-item-wrapper:hover .social-copy-btn {
    opacity: 1;
    visibility: visible;
    right: -4px;
}

.social-copy-btn .copy-icon {
    width: 14px;
    height: 14px;
    stroke: #666;
    fill: none;
    stroke-width: 2;
}

.social-copy-btn:hover .copy-icon {
    stroke: #28a745;
}

.social-copy-btn .copy-success {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 10px;
    padding: 4px 8px;
    background: #28a745;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.social-copy-btn.copied .copy-success {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .with-copy .social-link {
        padding-right: 30px;
    }
    
    .social-copy-btn {
        opacity: 1;
        visibility: visible;
        right: -2px;
    }
}

.add-social-link, 
.remove-social-link { 
    position: relative; 
    overflow: hidden; 
}

.add-social-link:after, 
.remove-social-link:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease-out, height 0.3s ease-out;
}

.add-social-link:active:after, 
.remove-social-link:active:after { 
    width: 200px; 
    height: 200px; 
}