/**
 * Aysa Credits Component Styles
 */

/* Main component container */
.aysa-credits-component {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
}

/* Credits value text */
.aysa-credits-value,
.aysa-credits {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
}

.aysa-credits-value:hover,
.aysa-credits:hover {
    color: #1e293b;
}

/* Stilizare pentru valoarea creditelor */
.aysa-credits-amount {
    font-weight: 800;
    color: #1d4ed8;
    min-width: 36px;
    display: inline-block;
    text-align: right;
}

/* Buy button */
.aysa-buy-credits-btn {
    display: none !important; /* Hide the buy button */
    background-color: #2f7d32;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 15px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.aysa-buy-credits-btn:hover {
    background-color: #1b5e20;
}

/* Also hide any other buy buttons that might be present */
.aysa-buy-btn {
    display: none !important;
}

/* Hide special buy links button */
.buy-links-btn {
    display: none !important;
}

/* Modal styles */
.aysa-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.aysa-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.aysa-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.aysa-modal-close:hover,
.aysa-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.aysa-modal h2 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.aysa-modal-body {
    margin-top: 15px;
}

/* Credit purchase options */
.aysa-credit-options {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.aysa-credit-option {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 160px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.aysa-credit-option:hover {
    border-color: #2f7d32;
}

.aysa-credit-option.selected {
    border-color: #2f7d32;
    background-color: rgba(47, 125, 50, 0.05);
}

.aysa-credit-option h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

.aysa-credit-price {
    font-size: 20px;
    font-weight: bold;
    color: #2f7d32;
    margin: 10px 0;
}

.aysa-credit-savings {
    font-size: 13px;
    color: #e53935;
    font-weight: 500;
}

.aysa-select-credit-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.aysa-credit-option.selected .aysa-select-credit-btn {
    background-color: #2f7d32;
    color: white;
    border-color: #2f7d32;
}

.aysa-confirm-purchase-btn {
    display: block;
    width: 100%;
    background-color: #2f7d32;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.aysa-confirm-purchase-btn:hover:not([disabled]) {
    background-color: #1b5e20;
}

.aysa-confirm-purchase-btn[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
} 
