/**
 * Locker Renewal Manager - Styles
 */

.lrm-renewals-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Welcome Section */
.lrm-welcome-message {
    background: #f8f9fa;
    border-left: 4px solid #2c3e50;
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.lrm-welcome-message h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #2c3e50;
}

.lrm-user-info {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.lrm-user-info a {
    color: #0066cc;
    text-decoration: none;
}

.lrm-user-info a:hover {
    text-decoration: underline;
}

.lrm-description {
    margin: 15px 0 0 0;
    color: #555;
    line-height: 1.6;
}

/* Lockers List */
.lrm-lockers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Locker Card */
.lrm-locker-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lrm-locker-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Locker Header */
.lrm-locker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.lrm-locker-number {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lrm-locker-number .lrm-label {
    font-weight: normal;
    font-size: 14px;
    color: #666;
}

.lrm-locker-number .lrm-number {
    font-weight: bold;
    font-size: 24px;
    color: #2c3e50;
}

.lrm-locker-size {
    background: #3498db;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.lrm-locker-size.lrm-size-s {
    background: #27ae60;
}

.lrm-locker-size.lrm-size-m {
    background: #3498db;
}

.lrm-locker-size.lrm-size-l {
    background: #e67e22;
}

.lrm-locker-size.lrm-size-xl {
    background: #e74c3c;
}

/* Locker Details */
.lrm-locker-details {
    margin-bottom: 20px;
}

.lrm-detail-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
}

.lrm-detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    color: #666;
    font-weight: 500;
}

.lrm-detail-value {
    color: #333;
    flex: 1;
}

.lrm-end-date {
    font-weight: 600;
    color: #e74c3c;
}

.lrm-extension-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.lrm-extension-product {
    font-style: italic;
    color: #555;
}

/* Icons */
.lrm-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.lrm-icon-warning {
    width: 20px;
    height: 20px;
    color: #f39c12;
    flex-shrink: 0;
}

.lrm-button-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Actions */
.lrm-locker-actions {
    margin-top: 20px;
}

.lrm-renew-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lrm-renew-button:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.lrm-renew-button:active {
    transform: translateY(0);
}

.lrm-renew-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.lrm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.lrm-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: lrm-spin 0.8s linear infinite;
}

@keyframes lrm-spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.lrm-locker-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.lrm-locker-message.lrm-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lrm-locker-message.lrm-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* No Extension Available */
.lrm-no-extension {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    font-size: 14px;
}

/* Renewal Status Badges */
.lrm-renewal-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.lrm-renewal-status.lrm-status-processing {
    background: #e7f3ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.lrm-renewal-status.lrm-status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lrm-renewal-status .lrm-icon-check {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
    flex-shrink: 0;
}

.lrm-renewal-status strong {
    font-weight: 600;
    font-size: 14px;
}

.lrm-order-link {
    font-weight: 600;
    font-size: 14px;
}

.lrm-order-link a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
}

.lrm-order-link a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .lrm-lockers-list {
        grid-template-columns: 1fr;
    }
    
    .lrm-locker-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .lrm-detail-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .lrm-detail-label {
        min-width: auto;
    }
}

/* WooCommerce Info Box Override */
.lrm-renewals-page .woocommerce-info {
    margin-top: 20px;
}

/* Review Prompt Styles */
.lrm-review-prompt-container {
    margin: 0 0 40px 0;
    padding: 0;
    width: 100%;
    clear: both;
}

.lrm-review-prompt-box {
    background-color: #FFFFFF;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 30px 40px 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.15);
}

.lrm-review-prompt-header {
    color: #2271b1;
    font-size: 22px;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.3;
}

.lrm-review-prompt-content {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.lrm-review-prompt-content p {
    margin: 0 0 15px 0;
}

.lrm-review-prompt-content p:last-child {
    margin-bottom: 0;
}

.lrm-review-prompt-content strong {
    color: #2271b1;
    font-weight: 700;
}

.lrm-review-button-wrapper {
    text-align: center;
    margin-top: 20px;
}

.lrm-review-button {
    display: inline-block;
    padding: 14px 40px;
    background-color: #2271b1;
    color: #FFFFFF !important;
    border: 2px solid #2271b1;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.lrm-review-button:hover {
    background-color: #135e96;
    border-color: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(34, 113, 177, 0.35);
}

.lrm-review-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .lrm-review-prompt-box {
        padding: 25px 20px 20px;
    }
    
    .lrm-review-prompt-header {
        font-size: 18px;
    }
    
    .lrm-review-prompt-content {
        font-size: 14px;
    }
    
    .lrm-review-button {
        padding: 12px 30px;
        font-size: 15px;
    }
}


