/* PS Rewards Global Styles - High Visibility */

/* Conway's Coffee Brand Colors */
:root {
    --rewards-primary: #9932CC;
    --rewards-secondary: #8B2AC2;
    --rewards-accent: #FFA500;
    --rewards-success: #28a745;
    --rewards-warning: #ffc107;
    --rewards-light: #f8f9fa;
    --rewards-dark: #2c2c2c;
}

/* Top Banner */
.rewards-top-banner {
    background: linear-gradient(135deg, var(--rewards-primary) 0%, var(--rewards-secondary) 100%);
    color: white;
    padding: 8px 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(153, 50, 204, 0.3);
}

.rewards-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.points-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-display .material-icons {
    font-size: 20px;
    color: #FFD700;
}

.points-number {
    font-size: 1.2em;
    font-weight: 700;
    color: #FFD700;
}

.btn-rewards {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-rewards:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}



/* Product Page Rewards Info */
.product-rewards-info {
    background: linear-gradient(135deg, var(--rewards-light) 0%, #e9ecef 100%);
    border: 2px solid var(--rewards-primary);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.product-rewards-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rewards-primary), var(--rewards-accent), var(--rewards-primary));
}

.rewards-earn-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.rewards-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--rewards-primary), var(--rewards-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(153, 50, 204, 0.3);
}

.rewards-icon .material-icons {
    font-size: 24px;
}

.earn-text {
    font-size: 1.3em;
    color: var(--rewards-primary);
    display: block;
    margin-bottom: 5px;
}

.value-text {
    color: #666;
    font-size: 0.9em;
}

.current-balance {
    background: rgba(153, 50, 204, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid var(--rewards-primary);
}

.rewards-link {
    color: var(--rewards-primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 10px;
}

.rewards-link:hover {
    color: var(--rewards-secondary);
    text-decoration: underline;
}

/* Order Confirmation Celebration */
.order-rewards-confirmation {
    background: linear-gradient(135deg, var(--rewards-success) 0%, #20c997 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.order-rewards-confirmation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="20" fill="rgba(255,255,255,0.1)">⭐</text></svg>') repeat;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.rewards-celebration {
    position: relative;
    z-index: 2;
}

.celebration-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.celebration-icon .material-icons {
    font-size: 60px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.rewards-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.rewards-details {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.rewards-details p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.rewards-cta {
    margin-top: 25px;
}

.rewards-cta .btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--rewards-primary);
    border: none;
    font-weight: 700;
    font-size: 1.2em;
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.rewards-cta .btn:hover {
    background: white;
    color: var(--rewards-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.rewards-cta .material-icons {
    vertical-align: middle;
    margin-right: 8px;
}

/* Enhanced My Account Section */
.ps-rewards-account {
    background: linear-gradient(135deg, var(--rewards-light) 0%, #e9ecef 100%);
    border: 2px solid var(--rewards-primary);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
}

.ps-rewards-account::before {
    content: '⭐';
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--rewards-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 1.2em;
}

.ps-rewards-account h4 {
    color: var(--rewards-primary);
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-rewards-account h4::before {
    content: '🎁';
    font-size: 1.2em;
}

.ps-rewards-account p {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.ps-rewards-account strong {
    color: var(--rewards-primary);
    font-weight: 700;
}

.ps-rewards-account a {
    display: inline-block;
    background: linear-gradient(135deg, var(--rewards-primary), var(--rewards-secondary));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.ps-rewards-account a:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 50, 204, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .rewards-banner-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .points-display {
        justify-content: center;
    }
    
    .product-rewards-info {
        padding: 15px;
        margin: 15px 0;
    }
    
    .rewards-earn-notice {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .order-rewards-confirmation {
        padding: 20px;
        margin: 20px 0;
    }
    
    .rewards-title {
        font-size: 1.4em;
    }
    
    .rewards-cta .btn {
        font-size: 1em;
        padding: 12px 25px;
    }
}

/* Animation for points counter */
.points-number {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Notification badges */
.rewards-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--rewards-success);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ------ Promotional Banner Styling ------ */
.rewards-promo-banner {
  position: relative;
  width: 100%;
  padding: 8px 0;
  color: white;
  font-family: 'Lato', sans-serif;
  z-index: 1001;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rewards-promo-banner .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.promo-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.banner-icon {
  flex-shrink: 0;
}

.banner-icon i {
  font-size: 24px;
  color: #FFA500;
  animation: pulse 2s infinite;
}

.banner-text {
  flex: 1;
  text-align: center;
}

.banner-message {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-promo-cta {
  background: #FFA500;
  color: #9932CC;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid #FFA500;
  white-space: nowrap;
}

.btn-banner1 {
    background:#9932CC !important;
    border: none !important;
    color: #fff !important;
}

.btn-promo-cta:hover {
  background: white;
  color: #9932CC;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-promo-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-promo-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-promo-close i {
  font-size: 18px;
}

/* Pulse animation for icon */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Mobile optimizations for promotional banner */
@media (max-width: 768px) {
  .rewards-promo-banner {
    padding: 6px 0;
  }
  
  .promo-banner-content {
    gap: 10px;
  }
  
  .banner-icon i {
    font-size: 20px;
  }
  
  .banner-message {
    font-size: 14px;
    line-height: 1.2;
  }
  
  .btn-promo-cta {
    padding: 5px 12px;
    font-size: 13px;
  }
  
  .btn-promo-close i {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .banner-text {
    text-align: left;
  }
  
  .banner-message {
    font-size: 13px;
  }
  
  .btn-promo-cta {
    padding: 4px 10px;
    font-size: 12px;
  }
  
  .banner-actions {
    gap: 8px;
  }
}