/**
 * WooCommerce Customer Portal Styles
 *
 * @package Peanut_License_Server
 * @since 1.3.2
 */

.peanut-licenses-portal {
    max-width: 800px;
}

.peanut-license-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.license-key {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.license-key label {
    font-size: 12px;
    color: #666;
    display: block;
    width: 100%;
    margin-bottom: 4px;
}

.license-key code {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
    letter-spacing: 1px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
}

.copy-btn:hover {
    color: #333;
}

.license-tier {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-free {
    background: #f0f0f0;
    color: #666;
}

.tier-pro {
    background: #e8f5e9;
    color: #2e7d32;
}

.tier-agency {
    background: #e3f2fd;
    color: #1565c0;
}

.license-meta {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: #666;
}

.license-status {
    font-weight: 600;
}

.status-active {
    color: #2e7d32;
}

.status-expired {
    color: #c62828;
}

.status-suspended {
    color: #f57c00;
}

.expires-date.expired {
    color: #c62828;
}

.license-sites {
    padding: 16px 0;
}

.license-sites h4 {
    margin: 0 0 12px;
    font-size: 14px;
}

.sites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 8px;
}

.site-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-url {
    font-size: 14px;
    color: #333;
}

.site-name {
    font-size: 12px;
    color: #666;
}

.deactivate-site-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    color: #666;
}

.deactivate-site-btn:hover {
    border-color: #c62828;
    color: #c62828;
}

.license-actions {
    padding-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.license-actions .button {
    text-decoration: none;
}

.renew-btn {
    background: #2e7d32 !important;
    color: #fff !important;
    border-color: #2e7d32 !important;
}

.peanut-no-licenses {
    text-align: center;
    padding: 48px 24px;
    background: #f9f9f9;
    border-radius: 8px;
}

.peanut-no-licenses p {
    margin-bottom: 16px;
    color: #666;
}

.peanut-help-text {
    background: #f0f7ff;
    border: 1px solid #cce5ff;
    border-radius: 8px;
    padding: 20px;
}

.peanut-help-text h4 {
    margin: 0 0 12px;
    font-size: 14px;
}

.peanut-help-text ol {
    margin: 0;
    padding-left: 20px;
}

.peanut-help-text li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}
