/**
 * Стили для элементов шапки, включая иконку избранного
 */

/* Контейнер ссылки на избранное */
.cwf-wishlist-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    text-decoration: none;
    color: #333; /* Основной цвет иконки */
    transition: color 0.2s;
    line-height: 1; 
}

.cwf-wishlist-link:hover {
    color: #ff4757; /* Цвет при наведении */
}

/* Иконка сердца */
.cwf-wishlist-icon {
    width: 26px; 
    height: 26px;
    margin-top: 2px;
    /* Убедитесь, что stroke (контур) наследует цвет, 
       а fill (заливка) остается 'none', как в SVG */
}

/* Бейдж-счетчик */
.cwf-wishlist-counter {
    position: absolute;
    top: 8px;
    right: 2px;
    /* Смещение для позиционирования на верхнем правом углу иконки */
    transform: translate(50%, -50%); 
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
    background-color: #CC3C14; /* Красный цвет бейджа */
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 10;
    /* JS управляет display: block/none */
}



@media (max-width: 767px) {
    /* Иконка сердца */
.cwf-wishlist-icon {
    width: 24px; 
    height: 24px;
	margin-top: 2px;
    /* Убедитесь, что stroke (контур) наследует цвет, 
       а fill (заливка) остается 'none', как в SVG */
}
   .cwf-wishlist-counter {
    
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 10px;
    background-color: #CC3C14;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 10;
}
}

/* * =========================================================================
 * 3D Badge and Remove Button Styles
 * =========================================================================
 */

/* 1. FIX: Ensure product card is the relative container
 * Apply position:relative to both contexts: shop loop and wishlist card
 */
.cwf-wishlist-card,
.woocommerce ul.products li.product {
    position: relative; 
}

/* * ----------------------------------------
 * Стили карточек товаров на странице избранного, A. 3D Badge (Top Right)
 * ----------------------------------------
 */
.product-3d-badge {
    position: absolute;
    top: 10px;
    right: 10px; /* <--- Привязка к правому краю */
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    z-index: 20;
    text-decoration: none !important;
}

.p3d-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.p3d-icon {
    color: #7D8187;
    transition: color .25s ease;
}

.p3d-icon-wrap:hover .p3d-icon {
    color: #CF3B15;
}

/* 2. Tooltip/effects */
.p3d-icon-wrap::after,
.p3d-icon-wrap::before {
    opacity: 0;
    transition: opacity .2s ease;
}


/* * ----------------------------------------
 * B. Remove Button (Top Left)
 * ----------------------------------------
 */
.cwf-wishlist-card .cwf-remove-item {
    position: absolute;
    top: 10px; /* Та же вертикальная позиция, что и у 3D иконки */
    left: 10px; /* <--- Привязка к левому краю */
    z-index: 20;
    
    /* Базовый стиль */
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #eee;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
}

.cwf-wishlist-card .cwf-remove-item:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

/* 3. Image width fix (важно для обеих карточек, чтобы изображение занимало 100% ширины) */
.cwf-wishlist-card .wishlist-thumb img,
.woocommerce ul.products li.product img {
    width: 100%;
    display: block;
}

/* ============================= */
/*  ONE CLICK FORM               */
/* ============================= */

#one-click-form {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 420px;
    margin: 0 auto;
}

.one-click-product-title {
    font-size: 20px;
    font-weight: 700;
    color: #CF3B15;
    margin-bottom: 20px;
}

#one-click-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

#one-click-form input[type="text"],
#one-click-form input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    transition: all 0.2s ease;
}

#one-click-form input:focus {
    outline: none;
    border-color: #CF3B15;
    box-shadow: 0 0 0 3px rgba(207,59,21,0.15);
}

/* Кнопка отправки */
#one-click-form button {
    width: 100%;
    padding: 14px;
    background: #CF3B15;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

#one-click-form button:hover {
    background: #b63212;
    transform: translateY(-1px);
}

#one-click-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Сообщения */
#one-click-success,
#one-click-error {
    max-width: 420px;
    margin: 15px auto 0;
    font-size: 15px;
    border-radius: 10px;
}

.oneclick .one-click-buy-link {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;

    padding: 14px 18px;
    background-color: #ffffff;
    color: #333 !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;

    transition: all 0.25s ease;
}

/* Hover */
.oneclick .one-click-buy-link:hover {
    background-color: #b63411;
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
  color: #fff!important;
}

/* Active */
.oneclick .one-click-buy-link:active {
    transform: translateY(0);
}

/* Убираем любые псевдо-иконки */
.oneclick .one-click-buy-link::before,
.oneclick .one-click-buy-link::after {
    display: none !important;
    content: none !important;
}