/* === Heart Icons — plugin hearts (.wcuk-wl-heart) === */

.wcuk-wl-heart {
    cursor: pointer;
    color: var(--wcuk-wl-color, #ccc);
    transition: color 0.2s;
    position: relative;
    z-index: 1;
    font-size: 20px;
    line-height: 1;
}

@media (hover: hover) {
    .wcuk-wl-heart:hover {
        color: #666;
    }

    .wcuk-wl-heart:hover i {
        font-weight: 900;
    }
}

.wcuk-wl-heart--active,
.wcuk-wl-heart--active:hover {
    color: var(--wcuk-wl-active-color, #00B8FF);
}

.wcuk-wl-heart--active i {
    font-weight: 900;
}

.wcuk-wl-heart.wcuk-wl-processing {
    pointer-events: none;
}

.wcuk-wl-heart.wcuk-wl-processing i {
    visibility: hidden;
}

.wcuk-wl-heart--single {
    font-size: 20px;
    line-height: 1;
}

/* === Heart Spinner (during AJAX) === */

.wcuk-wl-heart.wcuk-wl-processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #ddd;
    border-top-color: #00B8FF;
    border-radius: 50%;
    animation: wcuk-wl-spin 0.6s linear infinite;
}

@keyframes wcuk-wl-spin {
    to { transform: rotate(360deg); }
}

/* === Toast confirmation === */

.wcuk-wl-toast {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    padding: 5px 10px;
    line-height: 1.5;
    font-size: 13px;
    color: #666;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    animation: wcuk-wl-toast-in 0.3s ease;
}

@keyframes wcuk-wl-toast-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Wishlist Page — Tabs === */

.wcuk-wl-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

.myWishlist {
    position: relative;
}

/* === Toolbar (dropdown + manage button + add-to-basket) === */

.wcuk-wl-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.wcuk-wl-toolbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.wcuk-wl-toolbar__icons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.wcuk-wl-toolbar__right {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === List picker dropdown === */

.wcuk-wl-listpicker {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wcuk-wl-listpicker__select {
    padding: 8px 14px;
    border: 1px solid #E8E8E8;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
    color: #2A2A2A;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 160px;
}

.wcuk-wl-listpicker--multi .wcuk-wl-listpicker__select {
    padding-right: 32px;
}

.wcuk-wl-listpicker__arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

/* === Icon buttons (PDF, Share) === */

.wcuk-wl-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.wcuk-wl-btn-icon:hover {
    opacity: 0.8;
    color: #fff;
}

.wcuk-wl-btn-icon--pdf {
    background: #E8511A;
}

.wcuk-wl-btn-icon--share {
    background: #048fd2;
}

.wcuk-wl-btn-icon .fa-spin {
    animation-duration: 0.6s;
}

.wcuk-wl-btn-icon.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* === Share modal extras === */

.wcuk-wl-share-url {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: #f5f5f5;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.wcuk-wl-share-expiry {
    font-size: 12px;
    color: #999;
    margin: 0 0 16px;
}

.wcuk-wl-share-actions {
    display: flex;
    gap: 8px;
}

.wcuk-wl-share-actions .wcuk-wl-modal__btn {
    flex: 1;
}

.wcuk-wl-btn-copied {
    background: #2a9d2a !important;
    border-color: #2a9d2a !important;
}

/* === Share page notice === */

.wcuk-wl-share-notice {
    margin-top: 8px;
    margin-bottom: 28px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* === Share page loader === */

.wcuk-wl-share-loader {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

/* === Manage lists button === */

.wcuk-wl-btn-manage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    background: #048fd2;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.wcuk-wl-btn-manage:hover {
    opacity: 0.8;
    color: #fff;
}

/* === Add List to Basket button === */

.wcuk-wl-btn-basket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    background: #2a2a2a;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.wcuk-wl-btn-basket:hover {
    opacity: 0.8;
    color: #fff;
}

.wcuk-wl-btn-basket__icon {
    color: #00B8FF;
    font-size: 18px;
    transition: opacity 0.2s;
}

/* === Modal sections (for manage lists) === */

.wcuk-wl-modal__section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E8E8E8;
}

.wcuk-wl-modal__section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.wcuk-wl-modal__subtitle {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 12px;
    color: #2A2A2A;
}

.wcuk-wl-modal__btn--danger {
    background: #E8511A !important;
    border-color: #E8511A !important;
}

.wcuk-wl-modal__btn--danger:hover {
    opacity: 0.85;
}

.wcuk-wl-modal__btn--danger[disabled] {
    opacity: 0.5;
    cursor: default;
}

@media (max-width: 767px) {
    .wcuk-wl-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .wcuk-wl-toolbar__left {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .wcuk-wl-toolbar__icons {
        margin-left: 0;
        order: 2;
    }

    .wcuk-wl-listpicker {
        order: 1;
        flex: 1;
    }

    .wcuk-wl-btn-manage {
        order: 3;
        width: 100%;
    }

    .wcuk-wl-toolbar__right {
        position: static;
    }

    .wcuk-wl-btn-basket {
        width: 100%;
    }

    .wcuk-wl-listpicker__select {
        width: 100%;
    }
}

/* === Wishlist Page — Notes === */

.wcuk-wl-note {
    width: 100%;
    margin-top: 8px;
    padding: 6px 8px;
    font-size: 12px;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 36px;
    max-height: 80px;
    transition: border-color 0.2s;
}

.wcuk-wl-note:focus {
    border-color: var(--wcuk-wl-active-color, #00B8FF);
    outline: none;
}

.wcuk-wl-note::placeholder {
    color: #bbb;
}

/* === Modal (shared — New List + Move to List) === */

.wcuk-wl-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wcuk-wl-overlay.wcuk-wl-open {
    display: flex;
}

.wcuk-wl-overlay.wcuk-wl-visible {
    opacity: 1;
}

.wcuk-wl-modal {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(-10px);
    transition: transform 0.2s ease;
}

.wcuk-wl-visible .wcuk-wl-modal {
    transform: translateY(0);
}

.wcuk-wl-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #999;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    z-index: 1;
    transition: color 0.15s;
}

.wcuk-wl-modal__close:hover {
    color: #333;
}

.wcuk-wl-modal__body {
    padding: 32px 28px 28px;
}

.wcuk-wl-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
}

.wcuk-wl-modal__text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px;
}

.wcuk-wl-modal__field {
    margin-bottom: 16px;
}

.wcuk-wl-modal__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.wcuk-wl-modal__input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #f9f9f9;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.wcuk-wl-modal__input:focus {
    outline: none;
    border-color: var(--btn-action-bg, #048fd2);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--btn-action-bg, #048fd2);
}

.wcuk-wl-modal__btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--btn-action-bg, #048fd2);
    background: var(--btn-action-bg, #048fd2);
    color: #fff;
    transition: filter 0.15s;
    box-sizing: border-box;
}

.wcuk-wl-modal__btn:hover:not(:disabled) {
    filter: brightness(0.92);
}

.wcuk-wl-modal__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wcuk-wl-modal__btn.loading {
    pointer-events: none;
}

.wcuk-wl-modal__btn.loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

/* === Modal — Radio List (FiboFilters style) === */

.wcuk-wl-radio-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.wcuk-wl-radio-list li {
    margin-bottom: 8px;
}

.wcuk-wl-radio-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: border-color 0.15s, background 0.15s;
}

.wcuk-wl-radio-list label:hover {
    border-color: #ccc;
    background: #fafafa;
}

.wcuk-wl-radio-list input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.wcuk-wl-radio-list input[type="radio"]:checked {
    border-color: var(--btn-action-bg, #048fd2);
    background: var(--btn-action-bg, #048fd2);
}

.wcuk-wl-radio-list input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wcuk-wl-radio-list input[type="radio"]:checked + span {
    font-weight: 600;
}

.wcuk-wl-radio-list__full label {
    opacity: 0.5;
    cursor: not-allowed;
}

.wcuk-wl-radio-list__full label:hover {
    border-color: #e5e5e5;
    background: #fff;
}

.wcuk-wl-radio-list__full input[type="radio"] {
    cursor: not-allowed;
}

.wcuk-wl-full-badge {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    color: #c00;
    margin-left: 4px;
}

.wcuk-wl-radio-list li {
    position: relative;
}

.wcuk-wl-revoke-btn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #048fd2;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.15s;
    z-index: 1;
}

.wcuk-wl-revoke-btn:hover {
    opacity: 0.6;
}

.wcuk-wl-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ddd;
    border-top-color: #048fd2;
    border-radius: 50%;
    animation: wcuk-wl-spin 0.6s linear infinite;
}

.wcuk-wl-rename-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #bbb;
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
    z-index: 1;
}

.wcuk-wl-rename-btn:hover {
    color: #048fd2;
}

.wcuk-wl-rename-input {
    flex: 1;
    padding: 6px 8px !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.wcuk-wl-radio-list__remove label {
    color: #E8511A;
    border-color: #f5cbb8;
}

.wcuk-wl-radio-list__remove label:hover {
    border-color: #E8511A;
    background: #fef7f4;
}

.wcuk-wl-radio-list__remove input[type="radio"]:checked {
    border-color: #E8511A;
    background: #E8511A;
}

.wcuk-wl-radio-list .wcuk-wl-radio-list__divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 12px 0;
}

/* === List switch loading overlay === */

.wcuk-wl-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.wcuk-wl-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e5e5;
    border-top-color: #00B8FF;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* === Add List to Basket — loading spinner on icon === */

#wcuk-wl-add-all-to-basket.loading {
    pointer-events: none;
    opacity: 0.85;
}

#wcuk-wl-add-all-to-basket.loading .wcuk-wl-btn-basket__icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(0, 184, 255, 0.3);
    border-top-color: #00B8FF;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

#wcuk-wl-add-all-to-basket.loading .wcuk-wl-btn-basket__icon {
    position: relative;
    color: transparent;
    display: inline-block;
    width: 18px;
    height: 18px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === Login Modal (logged-out heart click) === */

.wcuk-wl-login-modal .wcuk-wl-modal__title i {
    margin-right: 6px;
}

.wcuk-wl-login-modal__product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
}

.wcuk-wl-login-modal__img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 32px;
}

.wcuk-wl-login-modal__name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.wcuk-wl-login-modal a.wcuk-wl-modal__btn,
.wcuk-wl-login-modal a.wcuk-wl-modal__btn:hover,
.wcuk-wl-login-modal a.wcuk-wl-modal__btn:focus,
.wcuk-wl-login-modal a.wcuk-wl-modal__btn:visited {
    color: #fff;
    text-decoration: none;
}

.wcuk-wl-login-modal .wcuk-wl-modal__body {
    padding: 36px 32px 32px;
}

.wcuk-wl-login-modal__register {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin: 16px 0 0;
}

.wcuk-wl-login-modal__register a {
    color: var(--btn-action-bg, #048fd2);
    font-weight: 500;
}
