xf/* ==========================================
   СТИЛИ ДЛЯ КНОПКИ НАМЕКА О ПОДАРКЕ
   ========================================== */

/* ==========================================
   КНОПКА НАМЕКА О ПОДАРКЕ
   ========================================== */
.hint-gift-wrapper {
    display: block !important;
    margin-top: 12px !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
}

.hint-gift-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 18.39px !important;
    color: #000000 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all ease 0.25s !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-family: inherit !important;
    letter-spacing: 0 !important;
    outline: none !important;
}

.hint-gift-trigger:hover {
    opacity: 0.7 !important;
    color: #000000 !important;
    text-decoration: none !important;
}

.hint-gift-trigger:visited,
.hint-gift-trigger:active {
    color: #000000 !important;
    text-decoration: none !important;
}

.hint-gift-trigger svg {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    stroke: #000000 !important;
    fill: none !important;
}

.hint-gift-trigger span {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #000000 !important;
    line-height: 18.39px !important;
}

/* Жесткое переопределение для всех состояний */
.hint-gift-wrapper .hint-gift-trigger,
.hint-gift-wrapper .hint-gift-trigger:link,
.hint-gift-wrapper .hint-gift-trigger:visited,
.hint-gift-wrapper .hint-gift-trigger:hover,
.hint-gift-wrapper .hint-gift-trigger:active {
    color: #000000 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

/* ==========================================
   ДЕСКТОПНАЯ ВЕРСИЯ (от 1201px)
   ========================================== */
@media (min-width: 1201px) {
    .hint-gift-wrapper {
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }
    
    .hint-gift-trigger {
        font-size: 16px !important;
        gap: 8px !important;
    }
    
    .hint-gift-trigger span {
        font-size: 16px !important;
    }
    
    .hint-gift-trigger svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ==========================================
   ПЛАНШЕТНАЯ ВЕРСИЯ (769px - 1200px)
   ========================================== */
@media (min-width: 769px) and (max-width: 1200px) {
    .hint-gift-wrapper {
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }
    
    .hint-gift-trigger {
        font-size: 16px !important;
        gap: 10px !important;
    }
    
    .hint-gift-trigger span {
        font-size: 16px !important;
    }
    
    .hint-gift-trigger svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ==========================================
   МОБИЛЬНАЯ ВЕРСИЯ (до 768px)
   ========================================== */
@media (max-width: 768px) {
    .hint-gift-wrapper {
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }
    
    .hint-gift-trigger {
        font-size: 16px !important;
        gap: 10px !important;
    }
    
    .hint-gift-trigger span {
        font-size: 16px !important;
        line-height: 16.1px !important;
    }
    
    .hint-gift-trigger svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ==========================================
   ИСПРАВЛЕНИЕ ОТСТУПОВ ССЫЛОК НА ВСЕХ ЭКРАНАХ
   ========================================== */

/* Гравировка */
.product-detail__engraving {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
}

/* Ссылка "Купить со скидкой" */
.product-detail__sample-sale-link {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
}

/* Отступы для всех ссылок на мобилке */
@media (max-width: 768px) {
    .product-detail__engraving {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }
    
    .product-detail__sample-sale-link {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }
}

/* ==========================================
   ПОПАП НАМЕКА
   ========================================== */
.hint-popup-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 9999 !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.hint-popup-overlay.active {
    display: flex !important;
}

.hint-popup-content {
    background: #ffffff;
    max-width: 480px;
    width: 100%;
    padding: 40px 35px 35px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: hintFadeIn 0.3s ease;
    max-height: 95vh;
    overflow-y: auto;
}

@keyframes hintFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hint-popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.hint-popup-close:hover {
    color: #000;
}

.hint-popup-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #111;
}

.hint-popup-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 28px 0;
}

.hint-popup-subtitle strong {
    color: #000;
}

.hint-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hint-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hint-field label {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.3px;
}

.hint-field input {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    transition: border 0.2s;
    background: #fcfcfc;
    width: 100%;
    box-sizing: border-box;
}

.hint-field input:focus {
    border-color: #000;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
}

.hint-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
}

.hint-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #000;
    cursor: pointer;
}

.hint-checkbox label {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    cursor: pointer;
}

.hint-checkbox label a {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
}

.hint-submit-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 16px 20px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 8px;
    letter-spacing: 0.3px;
    width: 100%;
}

.hint-submit-btn:hover {
    background: #2a2a2a;
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hint-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hint-success-message {
    text-align: center;
    padding: 30px 0;
}

.hint-success-message .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.hint-success-message h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #111;
}

.hint-success-message p {
    color: #666;
    font-size: 15px;
}

@media (max-width: 600px) {
    .hint-popup-content {
        padding: 30px 20px;
    }
}