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

/* ===== КНОПКА ОТКРЫТИЯ ПОПАПА ===== */
.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;
}

@media (max-width: 768px) {
    .hint-gift-wrapper {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }
    .hint-gift-trigger {
        font-size: 16px !important;
        gap: 10px !important;
    }
    .hint-gift-trigger span {
        font-size: 16px !important;
        line-height: 18.39px !important;
    }
    .hint-gift-trigger svg {
        width: 24px !important;
        height: 24px !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;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99999 !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 !important;
    max-width: 480px !important;
    width: 100% !important;
    padding: 40px 35px 35px !important;
    border-radius: 16px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    animation: hintFadeIn 0.3s ease !important;
    max-height: 95vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

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

.hint-popup-close {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    background: none !important;
    border: none !important;
    font-size: 32px !important;
    line-height: 1 !important;
    color: #999 !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    z-index: 10 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

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

.hint-popup-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
    color: #111 !important;
    font-family: "Styrene A Web", sans-serif, "Arial", sans-serif !important;
    padding-right: 40px !important;
}

.hint-popup-subtitle {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin: 0 0 28px 0 !important;
    font-family: "Styrene A Web", sans-serif, "Arial", sans-serif !important;
}

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

/* ===== ФОРМА ===== */
.hint-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* ===== ПОЛЯ С ОТСТУПАМИ ===== */
.hint-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-bottom: 28px !important;
}

.hint-field:last-of-type {
    margin-bottom: 0 !important;
}

.hint-field label {
    display: none !important;
}

.hint-field input {
    padding: 18px 20px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    transition: border 0.2s !important;
    background: #fcfcfc !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: "Styrene A Web", sans-serif, "Arial", sans-serif !important;
    color: #000 !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.hint-field input::placeholder {
    color: #aaa !important;
    font-weight: 300 !important;
}

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

/* ===== ЧЕКБОКС ===== */
.hint-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-top: 8px !important;
    margin-bottom: 16px !important;
}

.hint-checkbox input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    accent-color: #000 !important;
    cursor: pointer !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
}

.hint-checkbox label {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #555 !important;
    cursor: pointer !important;
    font-family: "Styrene A Web", sans-serif, "Arial", sans-serif !important;
    display: block !important;
}

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

/* ===== КНОПКА ОТПРАВКИ ===== */
.hint-submit-btn {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 20px 20px !important;
    border-radius: 6px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    margin-top: 20px !important;
    letter-spacing: 0.3px !important;
    width: 100% !important;
    font-family: "Styrene A Web", sans-serif, "Arial", sans-serif !important;
    box-sizing: border-box !important;
    height: auto !important;
    line-height: 1.4 !important;
}

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

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

/* ===== БЛОК УСПЕХА ===== */
.hint-success-message {
    text-align: center !important;
    padding: 30px 0 20px !important;
}

.hint-success-message .logo {
    display: block !important;
    width: 80px !important;
    height: auto !important;
    margin: 0 auto 20px !important;
}

.hint-success-message h3 {
    font-size: 22px !important;
    font-weight: 400 !important;
    margin-bottom: 10px !important;
    color: #111 !important;
    font-family: "Styrene A Web", sans-serif, "Arial", sans-serif !important;
}

.hint-success-message p {
    color: #666 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
    font-family: "Styrene A Web", sans-serif, "Arial", sans-serif !important;
}

.hint-success-message p strong {
    color: #000 !important;
    font-weight: 500 !important;
}

.hint-success-message .hint-submit-btn {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 40px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    width: auto !important;
    min-width: 160px !important;
    font-family: "Styrene A Web", sans-serif, "Arial", sans-serif !important;
    margin-top: 0 !important;
}

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

/* ===== ОШИБКА ===== */
.hint-error {
    color: #d32f2f !important;
    font-size: 14px !important;
    text-align: center !important;
    margin-top: 10px !important;
    font-family: "Styrene A Web", sans-serif, "Arial", sans-serif !important;
    display: none !important;
}

.hint-error.show {
    display: block !important;
}

/* ===== СПИННЕР ===== */
.hint-spinner {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: hintSpin 0.7s linear infinite !important;
    vertical-align: middle !important;
    margin-right: 10px !important;
}

@keyframes hintSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 600px) {
    .hint-popup-content {
        padding: 30px 20px !important;
        margin: 10px !important;
        border-radius: 12px !important;
    }

    .hint-popup-close {
        top: 12px !important;
        right: 14px !important;
        font-size: 28px !important;
    }

    .hint-popup-title {
        font-size: 20px !important;
        padding-right: 40px !important;
    }

    .hint-popup-subtitle {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    .hint-success-message .logo {
        width: 60px !important;
    }

    .hint-success-message h3 {
        font-size: 20px !important;
    }

    .hint-field input {
        padding: 16px 18px !important;
        font-size: 15px !important;
    }

    .hint-field {
        margin-bottom: 24px !important;
    }

    .hint-submit-btn {
        padding: 18px 18px !important;
        font-size: 16px !important;
        margin-top: 16px !important;
    }

    .hint-checkbox {
        gap: 12px !important;
    }

    .hint-checkbox input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
    }

    .hint-checkbox label {
        font-size: 13px !important;
    }
}

/* ===== БЛОКИРОВКА СКРОЛЛА ===== */
body.hint-scroll-locked {
    overflow: hidden !important;
    height: 100% !important;
    position: relative !important;
    touch-action: none !important;
}