/* Para Puan Plus — Frontend Styles */

/* === CHECKOUT WIDGET === */
.ppp-checkout-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fffde7;
    border: 1.5px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 16px;
    box-shadow: none;
    max-width: 100%;
    box-sizing: border-box;
}

.ppp-checkout-widget.ppp-widget-info {
    background: #f5f5f5;
    border-color: #ddd;
    opacity: 0.85;
}

.ppp-widget-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.ppp-widget-body {
    flex: 1;
    min-width: 0;
}

.ppp-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.ppp-widget-header strong {
    font-size: 0.95em;
    color: #333;
}

.ppp-points-badge {
    background: #ffc107;
    color: #333;
    font-size: 0.78em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.ppp-widget-desc {
    color: #555;
    font-size: 0.88em;
    margin: 0 0 8px;
    line-height: 1.4;
}

.ppp-widget-applied {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85em;
    color: #2e7d32;
    margin-bottom: 8px;
}

.ppp-apply-btn,
.ppp-remove-btn {
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.85em !important;
    padding: 6px 14px !important;
    cursor: pointer;
    transition: background 0.15s ease;
    display: inline-block;
}

.ppp-apply-btn {
    background: #ffc107 !important;
    color: #333 !important;
    border: none !important;
}

.ppp-apply-btn:hover {
    background: #ffb300 !important;
}

.ppp-remove-btn {
    background: transparent !important;
    color: #c62828 !important;
    border: 1px solid #c62828 !important;
    font-size: 0.78em !important;
    padding: 4px 10px !important;
}

.ppp-remove-btn:hover {
    background: #ffebee !important;
}

/* Loading state */
.ppp-checkout-widget.ppp-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* === CART BANNER === */
.ppp-cart-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.92em;
    color: #555;
}

.ppp-cart-banner .ppp-icon {
    font-size: 20px;
}

/* === CART / CHECKOUT EARN ROW === */
.ppp-earn-row th,
.ppp-earn-row td {
    color: #e65100 !important;
    font-size: 0.9em;
}

.ppp-earn-amount {
    color: #e65100;
    font-size: 1em;
}

.ppp-earn-row td small {
    display: block;
    color: #999;
    font-size: 0.82em;
}

/* === MY ACCOUNT WIDGET === */
.ppp-myaccount-widget {
    background: linear-gradient(135deg, #fff8e1, #fffde7);
    border: 1.5px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.ppp-myaccount-widget h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
}

.ppp-points-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ppp-points-big {
    font-size: 2.5em;
    font-weight: 800;
    color: #f57c00;
    line-height: 1;
}

.ppp-points-label {
    font-size: 1em;
    color: #777;
    font-weight: 500;
}

.ppp-points-value {
    font-size: 0.9em;
    color: #555;
    background: #fff3e0;
    padding: 2px 8px;
    border-radius: 12px;
}

.ppp-btn-outline {
    border: 2px solid #ffc107 !important;
    color: #e65100 !important;
    background: transparent !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

/* === MY ACCOUNT POINTS PAGE === */
.ppp-myaccount-page .ppp-balance-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ff8f00, #ffc107);
    color: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.35);
}

.ppp-balance-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ppp-balance-left .ppp-icon {
    font-size: 40px;
}

.ppp-balance-points {
    font-size: 2em;
    font-weight: 800;
    line-height: 1.1;
}

.ppp-balance-value {
    font-size: 1em;
    opacity: 0.9;
}

.ppp-balance-right small {
    opacity: 0.8;
    font-size: 0.85em;
}

.ppp-history-table {
    width: 100%;
    border-collapse: collapse;
}

.ppp-history-table th,
.ppp-history-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.ppp-positive { color: #2e7d32; font-weight: 700; }
.ppp-negative { color: #c62828; font-weight: 700; }

/* === HOW TO BOX === */
.ppp-how-to {
    background: #f0f7ff;
    border: 1px solid #b3d4f5;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0 20px;
}
.ppp-how-to h4 {
    margin: 0 0 8px;
    font-size: 0.95em;
    color: #1a5276;
}
.ppp-how-to ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.88em;
    color: #444;
}
.ppp-how-to li { margin-bottom: 4px; }

/* === HISTORY TABLE === */
.ppp-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}
.ppp-history-table th {
    background: #f8f8f8;
    padding: 10px 14px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 700;
    color: #333;
}
.ppp-history-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.ppp-history-table tfoot td {
    border-top: 2px solid #e0e0e0;
    border-bottom: none;
    background: #fafafa;
}
.ppp-history-table tbody tr:hover td {
    background: #fffde7;
}
