/**
 * WooCommerce Wallet & Auto Coupons Frontend Styles
 */

/* Wallet Container */
.wwac-wallet-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Wallet Balance Section */
.wwac-wallet-balance-section {
    text-align: center;
    margin-bottom: 30px;
}

.wwac-wallet-balance {
    margin: 20px 0;
}

.wwac-balance-amount {
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
}

.wwac-wallet-info {
    margin-top: 15px;
    color: #666;
}

/* Wallet Actions */
.wwac-wallet-actions {
    margin: 20px 0;
    text-align: center;
}

/* Referral Section */
.wwac-referral-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wwac-referral-link-container {
    margin: 20px 0;
}

.wwac-referral-link-box {
    display: flex;
    margin: 10px 0;
}

.wwac-referral-link {
    flex: 1;
    margin-right: 10px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #f9f9f9;
}

.wwac-copy-btn {
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wwac-copy-btn .dashicons {
    margin-right: 5px;
}

/* Enhanced Referral Styles */
.wwac-callout {
    background-color: #f0f9ff;
    border-left: 4px solid #0073aa;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 3px;
}

.wwac-callout h3 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 10px;
}

.wwac-callout p {
    margin-bottom: 10px;
}

.wwac-callout p:last-child {
    margin-bottom: 0;
}

.wwac-share-section {
    margin: 30px 0;
}

/* Share Buttons */
.wwac-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.wwac-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    margin-right: 0;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wwac-share-btn:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wwac-share-btn .dashicons {
    margin-right: 8px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 16px;
}

.wwac-facebook {
    background-color: #3b5998;
}

.wwac-twitter {
    background-color: #1da1f2;
}

.wwac-whatsapp {
    background-color: #25d366;
}

.wwac-telegram {
    background-color: #0088cc;
}

.wwac-linkedin {
    background-color: #0077b5;
}

.wwac-email {
    background-color: #777;
}

.wwac-pinterest {
    background-color: #bd081c;
}

.wwac-reddit {
    background-color: #ff4500;
}

.wwac-tumblr {
    background-color: #35465c;
}

.wwac-qrcode {
    background-color: #1a73e8;
}

.wwac-sms {
    background-color: #4caf50;
}

.wwac-copy {
    background-color: #607d8b;
}

/* Stats Boxes */
.wwac-stats-boxes {
    display: flex;
    flex-wrap: wrap;
    margin: 20px -10px;
}

.wwac-stats-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin: 10px;
    flex: 1 1 40%;
    min-width: 200px;
    display: flex;
    align-items: center;
    border-radius: 5px;
}

.wwac-stats-icon {
    margin-right: 15px;
}

.wwac-stats-icon .dashicons {
    width: 40px;
    height: 40px;
    font-size: 40px;
    color: #0073aa;
}

.wwac-stats-content {
    flex: 1;
}

.wwac-stats-label {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #555;
}

.wwac-stats-value {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #0073aa;
}

/* Wallet Transactions */
.wwac-wallet-transactions {
    margin-bottom: 30px;
}

.positive {
    color: #4caf50;
}

.negative {
    color: #f44336;
}

/* Referrals */
.wwac-referrals {
    margin-bottom: 30px;
}

.wwac-referral-history {
    margin-top: 30px;
}

.wwac-referral-empty {
    margin: 30px 0;
}

.wwac-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.wwac-status-completed {
    background-color: #dff0d8;
    color: #3c763d;
}

.wwac-status-pending {
    background-color: #fcf8e3;
    color: #8a6d3b;
}

/* Thank You Page */
.wallet-thankyou {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .wwac-referral-link-box {
        flex-direction: column;
    }
    
    .wwac-referral-link {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .wwac-balance-amount {
        font-size: 28px;
    }
    
    .wwac-share-buttons {
        flex-direction: column;
    }
    
    .wwac-share-btn {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Wallet Balance Notice */
.wwac-available-balance {
    background-color: #f0f9ff;
    border-left: 4px solid #0073aa;
    padding: 15px;
    margin: 15px 0;
    border-radius: 3px;
}

.wwac-available-balance p {
    margin-bottom: 8px;
}

.wwac-available-balance p:last-child {
    margin-bottom: 0;
}

.wwac-available-balance strong {
    color: #0073aa;
}

/* Apply Wallet Button */
.wwac-apply-wallet-credit {
    margin: 15px 0;
    text-align: right;
}

#wwac-apply-wallet-btn {
    background-color: #0073aa;
    color: #fff;
    border-color: #005f8b;
}

#wwac-apply-wallet-btn:hover {
    background-color: #005f8b;
}

/* Wallet Discount Row */
tr.wallet-discount th,
tr.wallet-discount td {
    font-weight: bold;
    color: #4caf50;
}

/* Coupon Section */
.wwac-coupon-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f7fcff;
    border-radius: 5px;
    border: 1px solid #d1ecf1;
}

.wwac-coupon-section h3 {
    color: #0c5460;
    margin-top: 0;
    margin-bottom: 15px;
}

.wwac-create-coupon-form {
    margin-top: 20px;
}

.wwac-coupon-amount-field {
    margin-bottom: 15px;
}

.wwac-coupon-amount-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.wwac-coupon-amount-field input {
    width: 100%;
    max-width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wwac-max-amount {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.wwac-create-coupon-form .description {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.wwac-coupon-generated {
    margin-top: 20px;
    padding: 15px;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    color: #3c763d;
}

.wwac-coupon-code {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f7f7f7;
    border: 1px dashed #aaa;
    border-radius: 3px;
    font-family: monospace;
    font-size: 14px;
    margin-right: 5px;
}

.wwac-copy-coupon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    color: #0073aa;
}

.wwac-copy-coupon-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.wwac-coupon-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.wwac-coupon-status-active {
    background-color: #dff0d8;
    color: #3c763d;
}

.wwac-coupon-status-used {
    background-color: #d9edf7;
    color: #31708f;
}

.wwac-coupon-used-msg {
    color: #999;
    font-style: italic;
}

.wwac-delete-coupon-btn {
    background-color: #f44336 !important;
    color: white !important;
    border-color: #d32f2f !important;
}

.wwac-delete-coupon-btn:hover {
    background-color: #d32f2f !important;
}

.wwac-create-new-coupon {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .wwac-coupon-code {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .wwac-delete-coupon-form {
        margin-top: 10px;
    }
}

/* Percentage Indicators */
.wwac-percent-low,
.wwac-percent-medium,
.wwac-percent-high {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 14px;
}

.wwac-percent-low {
    background-color: #eff9f1;
    color: #5b9a68;
    border: 1px solid #c3e6cb;
}

.wwac-percent-medium {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.wwac-percent-high {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Enhanced Referral System */
.wwac-share-notification {
    position: fixed;
    bottom: -100px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    margin: 0 auto;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: bottom 0.3s ease-in-out;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.wwac-share-notification.active {
    bottom: 20px;
}

.wwac-share-notification .dashicons {
    margin-right: 10px;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.wwac-referral-highlight {
    background-color: #fffecd;
    border: 1px dashed #d6be1f;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    border-radius: 4px;
}

.wwac-referral-highlight h4 {
    margin-top: 0;
    color: #856404;
}

.wwac-referral-highlight p {
    margin-bottom: 0;
}

.wwac-referral-highlight strong {
    color: #d6be1f;
    font-size: 120%;
}

/* Floating share button */
.wwac-float-share-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 990;
}

.wwac-float-share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0073aa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wwac-float-share-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.wwac-float-share-btn:hover {
    transform: scale(1.1);
}

.wwac-float-share-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.wwac-float-share-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wwac-float-share-options h4 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.wwac-float-share-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.wwac-float-share-buttons .wwac-share-btn {
    padding: 8px;
    justify-content: center;
    font-size: 12px;
}

.wwac-float-share-buttons .wwac-share-btn .dashicons {
    margin-right: 0;
    margin-bottom: 5px;
    font-size: 20px;
    display: block;
    width: 100%;
    text-align: center;
}

.wwac-referral-bonus-counter {
    display: flex;
    align-items: center;
    background-color: #f0f9ff;
    border: 1px solid #cce5ff;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.wwac-referral-bonus-icon {
    margin-right: 15px;
    background-color: #0073aa;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wwac-referral-bonus-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.wwac-referral-bonus-content {
    flex: 1;
}

.wwac-referral-bonus-content h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #0073aa;
}

.wwac-referral-bonus-content p {
    margin: 0;
}

.wwac-share-count {
    font-weight: bold;
    color: #0073aa;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .wwac-float-share-options {
        width: 250px;
        right: 0;
    }
    
    .wwac-float-share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wwac-share-notification {
        left: 10px;
        right: 10px;
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .wwac-share-notification.active {
        bottom: 10px;
    }
} 