/* My Account Points Display */
.wc-pds-my-account-points {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.wc-pds-my-account-points h2 {
    margin: 0 0 20px 0;
    color: #1a1a1a;
    font-size: 1.5em;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #e63946;
    display: inline-block;
}

.wc-pds-my-account-points h3 {
    margin: 25px 0 15px 0;
    color: #1a1a1a;
    font-size: 1.2em;
    font-weight: 600;
}

.wc-pds-points-summary {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wc-pds-points-balance,
.wc-pds-points-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wc-pds-points-balance:last-child,
.wc-pds-points-value:last-child {
    border-bottom: none;
}

.wc-pds-label {
    font-weight: 500;
    color: #666;
    font-size: 0.95em;
}

.wc-pds-value {
    font-size: 1.1em;
    font-weight: 700;
    color: #1a1a1a;
}

.wc-pds-conversion-info {
    text-align: center;
    color: #888;
    font-size: 0.85em;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    font-style: italic;
}

/* Points History Table */
.wc-pds-points-history {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wc-pds-points-history th {
    background: #1a1a1a;
    color: #fff;
    padding: 14px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-pds-points-history td {
    padding: 14px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95em;
    color: #333;
}

.wc-pds-points-history tbody tr:last-child td {
    border-bottom: none;
}

.wc-pds-points-history tbody tr:hover {
    background: #fafafa;
}

.wc-pds-points-history .positive {
    color: #27ae60;
    font-weight: 700;
}

.wc-pds-points-history .negative {
    color: #e63946;
    font-weight: 700;
}

/* Product Page Points Display */
.wc-pds-product-points {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 3px;
    padding: 10px 15px;
    margin: 15px 0;
}

.wc-pds-earn-points {
    margin: 0;
    color: #856404;
    font-size: 0.95em;
}

/* Checkout Points Redemption */
.wc-pds-checkout-points {
    background: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.wc-pds-checkout-points h3 {
    margin-top: 0;
    color: #007bff;
}

.wc-pds-points-info {
    background: #fff;
    padding: 15px;
    border-radius: 3px;
}

.wc-pds-conversion-note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.wc-pds-min-order-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    margin: 10px 0;
    color: #856404;
}

.wc-pds-redemption-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.wc-pds-redemption-form label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.wc-pds-redemption-form input[type="number"] {
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1em;
}

.wc-pds-redemption-form button {
    padding: 8px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.wc-pds-redemption-form button:hover {
    background: #0056b3;
}

.wc-pds-redemption-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#wc_pds_remove_points {
    background: #dc3545;
}

#wc_pds_remove_points:hover {
    background: #c82333;
}

.wc-pds-mutual-exclusion-notice {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 10px;
    margin: 10px 0;
    color: #004085;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-pds-points-balance,
    .wc-pds-points-value {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .wc-pds-redemption-form {
        flex-direction: column;
        align-items: stretch;
    }

    .wc-pds-redemption-form label {
        min-width: auto;
    }

    .wc-pds-redemption-form input[type="number"],
    .wc-pds-redemption-form button {
        width: 100%;
    }
}

/* Loading State */
.wc-pds-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.wc-pds-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 3px;
}

.wc-pds-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wc-pds-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Migration Notice */
.wc-pds-migration-notice {
    background: linear-gradient(135deg, #fff7e6 0%, #fff3cd 100%);
    border: 2px solid #f5a623;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
}

.wc-pds-migration-notice-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.wc-pds-migration-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #f5a623;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-pds-migration-icon .dashicons {
    font-size: 28px;
    color: #fff;
    width: 28px;
    height: 28px;
}

.wc-pds-migration-text {
    flex: 1;
}

.wc-pds-migration-text h3 {
    margin: 0 0 15px 0;
    color: #b8860b;
    font-size: 1.3em;
    font-weight: 700;
}

.wc-pds-migration-text p {
    margin: 0 0 12px 0;
    color: #5d4e37;
    line-height: 1.6;
    font-size: 0.95em;
}

.wc-pds-migration-text p:last-of-type {
    margin-bottom: 20px;
}

.wc-pds-highlight {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.wc-pds-migration-steps {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.wc-pds-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 200px;
}

.wc-pds-step .step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #e63946 0%, #ff6b6b 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
    flex-shrink: 0;
}

.wc-pds-step .step-text {
    color: #333;
    font-size: 0.9em;
    font-weight: 500;
}

/* Responsive for Migration Notice */
@media (max-width: 768px) {
    .wc-pds-migration-notice {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .wc-pds-migration-notice-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .wc-pds-migration-icon {
        width: 40px;
        height: 40px;
    }

    .wc-pds-migration-icon .dashicons {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }

    .wc-pds-migration-text h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .wc-pds-migration-text p {
        font-size: 0.9em;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .wc-pds-migration-text p:last-of-type {
        margin-bottom: 15px;
    }

    .wc-pds-highlight {
        display: inline;
        padding: 2px 6px;
        font-size: 0.9em;
    }

    .wc-pds-migration-steps {
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .wc-pds-step {
        min-width: auto;
        width: 100%;
        padding: 10px 12px;
        border-radius: 6px;
    }

    .wc-pds-step .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.8em;
    }

    .wc-pds-step .step-text {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .wc-pds-migration-notice {
        padding: 12px;
        border-width: 1px;
    }

    .wc-pds-migration-text h3 {
        font-size: 1em;
    }

    .wc-pds-migration-text p {
        font-size: 0.85em;
    }

    .wc-pds-step {
        padding: 8px 10px;
    }

    .wc-pds-step .step-number {
        width: 22px;
        height: 22px;
        font-size: 0.75em;
    }

    .wc-pds-step .step-text {
        font-size: 0.8em;
    }
}
