/* netSEO Stilizare cod — copy SKU (stil tip Roveli) */

.ty-sku-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ty-sku-item .ty-control-group__label {
    margin: 0;
    color: #8a8a8a;
    font-weight: 400;
}

.ty-sku-item .ns-sc-copy,
.ty-sku-item .ty-control-group__item.ns-sc-copy,
.ns-sc-copy {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    color: inherit;
    vertical-align: middle;
}

.ns-sc-copy:focus {
    outline: none;
}

.ns-sc-copy:focus-visible {
    outline: 2px solid #1b344a;
    outline-offset: 2px;
    border-radius: 3px;
}

.ns-sc-copy__icon {
    display: inline-block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background-color: #9a9a9a;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ns-sc-copy__text {
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.2;
}

.ns-sc-copy:hover .ns-sc-copy__icon,
.ns-sc-copy:focus-visible .ns-sc-copy__icon {
    background-color: #666;
}

.ns-sc-copy:active .ns-sc-copy__icon {
    transform: scale(1.08);
}

/* Stare „copiat”: iconiță check verde */
.ns-sc-copy.is-copied .ns-sc-copy__icon {
    background-color: #2ecc71;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: scale(1.12);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.ns-sc-copy.is-copied:hover .ns-sc-copy__icon,
.ns-sc-copy.is-copied:focus-visible .ns-sc-copy__icon {
    background-color: #27ae60;
}

.ns-sc-copy.is-copied .ns-sc-copy__text {
    color: #1e7e34;
}

/* Tooltip „Copiază” / „cod copiat” */
.ns-sc-copy[data-ns-sc-tooltip]:hover::after,
.ns-sc-copy[data-ns-sc-tooltip]:focus-visible::after,
.ns-sc-copy.is-copied[data-ns-sc-tooltip]::after {
    content: attr(data-ns-sc-tooltip);
    position: absolute;
    top: calc(100% + 6px);
    left: 8px;
    transform: translateX(-50%);
    z-index: 50;
    padding: 4px 8px;
    background: #f3f3f3;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    color: #444;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.ns-sc-copy.is-copied[data-ns-sc-tooltip]::after {
    background: #e8f6e8;
    border-color: #b7e0b7;
    color: #1e7e34;
}

/* Notificare „cod copiat” — stil pastilă verde pal */
.cm-notification-content:has(.ns-sc-notif),
.notification-content:has(.ns-sc-notif),
.alert:has(.ns-sc-notif) {
    background: #e8f6e8 !important;
    border-color: #cfe8cf !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ns-sc-notif {
    display: inline-block;
    padding: 2px 4px;
    font-size: 14px;
    font-weight: 500;
    color: #2c2c2c;
    text-transform: lowercase;
}

/* Liste / carusele / categorie — stil compact tip Roveli: COD: [icon] xxxx */
.ns-sc-list-sku,
.ty-grid-list__sku,
.ty-simple-list__sku {
    margin: 1px 0 3px;
    line-height: 1.2;
    min-width: 0;
}

.ns-sc-list-sku .ty-sku-item,
.ty-grid-list__sku .ty-sku-item,
.ty-simple-list__sku .ty-sku-item,
.ty-scroller-list .ty-sku-item,
.ty-grid-list .ty-sku-item,
.ty-compact-list .ty-sku-item {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    background: none !important;
    font-size: 12px;
    line-height: 1.2;
    color: #9a9a9a;
    width: fit-content !important;
    max-width: 100%;
    text-align: left !important;
    white-space: nowrap !important;
    word-break: normal !important;
}

/* Anulează width/min-width din temă (90–120px) pe label-ul COD: */
.ns-sc-list-sku .ty-control-group__label,
.ty-grid-list__sku .ty-control-group__label,
.ty-simple-list__sku .ty-control-group__label,
.ty-scroller-list .ty-sku-item .ty-control-group__label,
.ty-grid-list .ty-sku-item .ty-control-group__label,
.ty-compact-list .ty-sku-item .ty-control-group__label,
.ns-sc-list-sku .ty-sku-item .ty-control-group__label {
    display: inline !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #9a9a9a !important;
    white-space: nowrap;
}

.ns-sc-list-sku .ns-sc-copy,
.ty-grid-list__sku .ns-sc-copy,
.ty-simple-list__sku .ns-sc-copy,
.ty-scroller-list .ns-sc-copy,
.ty-grid-list .ns-sc-copy,
.ty-compact-list .ns-sc-copy {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    gap: 4px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    color: #9a9a9a !important;
    white-space: nowrap !important;
    word-break: normal !important;
}

.ns-sc-list-sku .ns-sc-copy__icon,
.ty-grid-list__sku .ns-sc-copy__icon,
.ty-simple-list__sku .ns-sc-copy__icon,
.ty-scroller-list .ns-sc-copy__icon,
.ty-grid-list .ns-sc-copy__icon,
.ty-compact-list .ns-sc-copy__icon {
    flex: 0 0 12px !important;
    width: 12px !important;
    height: 12px !important;
    background-color: #b0b0b0;
}

.ns-sc-list-sku .ns-sc-copy__text,
.ty-grid-list__sku .ns-sc-copy__text,
.ty-simple-list__sku .ns-sc-copy__text,
.ty-scroller-list .ns-sc-copy__text,
.ty-grid-list .ns-sc-copy__text,
.ty-compact-list .ns-sc-copy__text {
    display: inline !important;
    flex: 0 0 auto !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #9a9a9a !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    word-break: normal !important;
}

.ns-sc-list-sku .ns-sc-copy.is-copied .ns-sc-copy__text,
.ty-grid-list__sku .ns-sc-copy.is-copied .ns-sc-copy__text,
.ty-simple-list__sku .ns-sc-copy.is-copied .ns-sc-copy__text,
.ty-scroller-list .ns-sc-copy.is-copied .ns-sc-copy__text,
.ty-grid-list .ns-sc-copy.is-copied .ns-sc-copy__text,
.ty-compact-list .ns-sc-copy.is-copied .ns-sc-copy__text {
    color: #1e7e34 !important;
}

.ns-sc-list-sku .ns-sc-copy.is-copied .ns-sc-copy__icon,
.ty-grid-list__sku .ns-sc-copy.is-copied .ns-sc-copy__icon,
.ty-simple-list__sku .ns-sc-copy.is-copied .ns-sc-copy__icon,
.ty-scroller-list .ns-sc-copy.is-copied .ns-sc-copy__icon,
.ty-grid-list .ns-sc-copy.is-copied .ns-sc-copy__icon,
.ty-compact-list .ns-sc-copy.is-copied .ns-sc-copy__icon {
    background-color: #2ecc71;
}
