/* Points Balance Display */
.rpp-points-balance th,
.rpp-points-balance td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.rpp-points-balance th {
    font-weight: 600;
    color: #333;
}

/* Cart Points Display */
.rpp-cart-points-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.rpp-cart-points-display h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.rpp-points-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rpp-points-count {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
}

.rpp-points-worth {
    color: #666;
    font-size: 14px;
}

/* Checkout Points Section */
.rpp-checkout-points-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.rpp-checkout-points-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.rpp-points-info p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.rpp-redemption-form {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    align-items: center;
    flex-wrap: wrap;
}

.rpp-redemption-form input[type="number"] {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.rpp-redemption-form button {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.rpp-redemption-form button:hover {
    background: #005a87;
}

.rpp-redeemed-info {
    color: #28a745;
    font-weight: 600;
    margin: 10px 0 0 0;
}

.rpp-no-points {
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

/* Thank You Page Points Display */
.rpp-thankyou-points {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.rpp-thankyou-points h3 {
    margin: 0 0 20px 0;
    color: #155724;
    font-size: 20px;
}

.rpp-thankyou-points .rpp-points-display-large {
    font-size: 32px;
    font-weight: bold;
    color: #155724;
    margin: 15px 0;
}

.rpp-thankyou-points .rpp-points-value {
    color: #155724;
    font-size: 16px;
    margin: 10px 0;
}

.rpp-thankyou-message {
    color: #155724;
    font-size: 14px;
    margin: 15px 0 0 0;
    font-style: italic;
}

/* My Account Points Display */
.rpp-account-points {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.rpp-account-points h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.rpp-current-balance {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.rpp-current-balance h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.rpp-points-display {
    font-size: 28px;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

.rpp-points-value {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

/* Lifetime Statistics */
.rpp-lifetime-stats {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

.rpp-lifetime-stats h4 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 16px;
    font-weight: 600;
}

.rpp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.rpp-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.rpp-stat-label {
    font-size: 12px;
    color: #856404;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rpp-stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Badge System Styles */
.rpp-earned-badges {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.rpp-earned-badges h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.rpp-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.rpp-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.rpp-badge-item:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.rpp-badge-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.rpp-badge-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* Next Badge Progress */
.rpp-next-badge {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.rpp-next-badge h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.rpp-next-badge p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.rpp-progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.rpp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.rpp-progress-text {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
}

/* Floating Points Button */
.rpp-floating-points-button {
    position: fixed;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    max-width: 300px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.rpp-floating-points-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
    background: linear-gradient(135deg, #005a87, #004466);
}

/* Different styles for users with points vs no points */
.rpp-floating-points-button.rpp-has-points {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.rpp-floating-points-button.rpp-has-points:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.rpp-floating-points-button.rpp-no-points {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.rpp-floating-points-button.rpp-no-points:hover {
    background: linear-gradient(135deg, #fd7e14, #e83e8c);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.rpp-floating-points-button.rpp-guest-user {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
    animation: rpp-guest-pulse 3s infinite;
}

.rpp-floating-points-button.rpp-guest-user:hover {
    background: linear-gradient(135deg, #e83e8c, #fd7e14);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
    animation: none;
}

/* Special animation for guest users to draw attention */
@keyframes rpp-guest-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(111, 66, 193, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
    }
}

.rpp-floating-points-icon {
    font-size: 20px;
    animation: rpp-pulse 2s infinite;
}

.rpp-floating-points-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rpp-floating-points-link {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rpp-floating-points-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

/* Pulse animation for the gift icon */
@keyframes rpp-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Points Modal Styles */
.rpp-points-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(5px);
}

.rpp-points-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: rpp-modal-slide-in 0.3s ease-out;
}

@keyframes rpp-modal-slide-in {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.rpp-modal-header {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rpp-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.rpp-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.rpp-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.rpp-modal-content {
    padding: 25px;
}

.rpp-current-points {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
}

.rpp-current-points h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.rpp-points-display-large {
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

.rpp-earn-points h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.rpp-earn-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rpp-earn-points li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 14px;
}

.rpp-earn-points li:last-child {
    border-bottom: none;
}

.rpp-earn-points-intro {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.rpp-earn-points-intro h4 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 18px;
}

.rpp-earn-points-intro p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

.rpp-points-example {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.rpp-points-example h4 {
    margin: 0 0 8px 0;
    color: #0c5460;
    font-size: 16px;
}

.rpp-points-example p {
    margin: 0;
    color: #0c5460;
    font-size: 14px;
    font-weight: 600;
}

.rpp-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.rpp-shop-button,
.rpp-account-button {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
}

.rpp-shop-button {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.rpp-shop-button:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.rpp-account-button {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.rpp-account-button:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* -------------------------------------------------------------------------
   Panel modal (opened when floating button is clicked)
   ------------------------------------------------------------------------- */
.rpp-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.rpp-panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px 24px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.rpp-panel h3 {
    margin: 0 0 16px;
    font-size: 1.2em;
    color: #1d2327;
}

.rpp-panel-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
}

.rpp-panel-close:hover {
    color: #000;
}

.rpp-panel-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.rpp-panel-list li {
    padding: 6px 0;
    font-size: 0.95em;
    border-bottom: 1px solid #f0f0f0;
    color: #3c434a;
}

.rpp-panel-list li:last-child {
    border-bottom: none;
}

.rpp-panel-balance {
    font-size: 1.4em;
    color: #1d2327;
    margin: 0 0 6px;
}

.rpp-panel-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.rpp-panel-btn:hover {
    opacity: 0.88;
    text-decoration: none;
}

.rpp-btn-primary {
    background: #0073aa;
    color: #fff;
}

.rpp-btn-secondary {
    background: #f0f0f0;
    color: #3c434a;
}

@media (max-width: 480px) {
    .rpp-panel {
        padding: 24px 16px 18px;
    }
}

/* Floating Points Button Positioning */
.rpp-floating-points-button {
    z-index: 9999;
    position: fixed;
    /* Remove default bottom/right positioning */
}
.rpp-position-bottom_right {
    bottom: 20px;
    right: 20px;
}
.rpp-position-bottom_left {
    bottom: 20px;
    left: 20px;
}
.rpp-position-top_right {
    top: 20px;
    right: 20px;
}
.rpp-position-top_left {
    top: 20px;
    left: 20px;
}

/* Responsive adjustments for floating button positions */
@media (max-width: 768px) {
    .rpp-position-bottom_right {
        bottom: 15px;
        right: 15px;
    }
    .rpp-position-bottom_left {
        bottom: 15px;
        left: 15px;
    }
    .rpp-position-top_right {
        top: 15px;
        right: 15px;
    }
    .rpp-position-top_left {
        top: 15px;
        left: 15px;
    }
}
@media (max-width: 480px) {
    .rpp-position-bottom_right {
        bottom: 10px;
        right: 10px;
    }
    .rpp-position-bottom_left {
        bottom: 10px;
        left: 10px;
    }
    .rpp-position-top_right {
        top: 10px;
        right: 10px;
    }
    .rpp-position-top_left {
        top: 10px;
        left: 10px;
    }
} 