/* ===================================
   Pontos de Fidelidade - Estilos
   =================================== */

/* --- Badge na página do produto --- */
.produto-pontos-fidelidade {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 14px;
    background: #e8f4f0;
    border-radius: 8px;
    font-size: 14px;
    color: #004F6B;
}

.produto-pontos-fidelidade svg,
.produto-pontos-fidelidade .lucide-award {
    width: 18px;
    height: 18px;
    color: #004F6B;
    flex-shrink: 0;
}

/* --- Shortcode Page --- */
.pf-page {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Hero */
.pf-hero {
    text-align: center;
    padding: 40px 0 30px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 30px;
}

.pf-hero-title {
    font-size: 28px;
    font-weight: 700;
    color: #131313;
    margin: 0 0 10px;
}

.pf-hero-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px;
}

.pf-hero-balance {
    display: inline-block;
    padding: 12px 24px;
    background: #e8f4f0;
    border-radius: 8px;
    font-size: 15px;
    color: #004F6B;
}

.pf-hero-balance a {
    color: #004F6B;
    font-weight: 600;
    text-decoration: underline;
}

/* Sections */
.pf-section {
    margin-bottom: 40px;
}

.pf-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #131313;
    margin: 0 0 10px;
}

.pf-section-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}

/* Rules Grid */
.pf-rules-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pf-rule-card {
    padding: 24px;
    border: 1px solid #e8e8e8;
    border-bottom: none;
}

.pf-rule-card:first-child {
    border-radius: 8px 8px 0 0;
}

.pf-rule-card:last-child {
    border-bottom: 1px solid #e8e8e8;
    border-radius: 0 0 8px 8px;
}

.pf-rule-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #131313;
    margin: 0 0 6px;
}

.pf-rule-card p {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
}

.pf-rule-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #004F6B;
}

.pf-coin {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #f5c842, #e6a817);
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #d4a017;
}

/* FAQ */
.pf-faq {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.pf-faq-item {
    border-bottom: 1px solid #e8e8e8;
}

.pf-faq-item:last-child {
    border-bottom: none;
}

.pf-faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #004F6B;
    text-align: left;
    transition: background-color 0.2s;
}

.pf-faq-question:hover {
    background-color: #f8f8f8;
}

.pf-faq-question svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pf-faq-item.active .pf-faq-question svg {
    transform: rotate(90deg);
}

.pf-faq-answer {
    display: none;
    padding: 0 20px 16px 46px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.pf-faq-item.active .pf-faq-answer {
    display: block;
}

.pf-faq-answer p {
    margin: 0 0 10px;
}

.pf-faq-answer p:last-child {
    margin-bottom: 0;
}

.pf-faq-answer em {
    color: #004F6B;
}

/* --- Checkout UI --- */
.loyalty-checkout-box {
    background: #f8fafb;
    border: 1px solid #d8e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.loyalty-checkout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #004F6B;
    margin: 0 0 10px;
}

.loyalty-checkout-balance {
    font-size: 14px;
    color: #333;
    margin: 0 0 12px;
}

.loyalty-checkout-equiv {
    color: #666;
    font-size: 13px;
}

.loyalty-checkout-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.loyalty-points-input {
    flex: 1;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
}

.loyalty-apply-btn,
.loyalty-remove-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.loyalty-apply-btn {
    background: #004F6B;
    color: #fff;
}

.loyalty-apply-btn:hover {
    background: #003d54;
}

.loyalty-remove-btn {
    background: #e74c3c;
    color: #fff;
}

.loyalty-remove-btn:hover {
    background: #c0392b;
}

.loyalty-checkout-hint {
    font-size: 12px;
    color: #999;
    margin: 6px 0 0;
}

.loyalty-checkout-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #e8f4f0;
    border-radius: 6px;
    font-size: 14px;
    color: #004F6B;
    font-weight: 500;
}

.loyalty-checkout-message {
    margin-top: 8px;
}

.loyalty-error {
    color: #e74c3c;
    font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pf-hero {
        padding: 30px 0 20px;
    }

    .pf-hero-title {
        font-size: 22px;
    }

    .pf-section-title {
        font-size: 18px;
    }

    .pf-rule-card {
        padding: 18px;
    }

    .pf-faq-question {
        font-size: 14px;
        padding: 14px 16px;
    }

    .pf-faq-answer {
        padding: 0 16px 14px 40px;
        font-size: 13px;
    }

    .produto-pontos-fidelidade {
        font-size: 13px;
        padding: 6px 10px;
    }

    .loyalty-checkout-form {
        flex-direction: column;
        align-items: stretch;
    }

    .loyalty-points-input {
        max-width: 100%;
    }
}
