.pcjm-warranty-lookup {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pcjm-warranty-lookup h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    font-size: 24px;
}

.pcjm-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#pcjm_warranty_phone {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-warranty {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.search-warranty:hover {
    background: #005177;
}

.pcjm-warranty-results {
    margin-top: 30px;
}

.pcjm-warranty-results h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.warranty-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.warranty-card h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.warranty-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.warranty-info-item {
    display: flex;
    flex-direction: column;
}

.warranty-info-label {
    font-weight: 600;
    color: #000
    font-size: 14px;
    margin-bottom: 5px;
}

.warranty-info-value {
    color: #333;
    font-size: 16px;
}

.warranty-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.warranty-status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.warranty-status-expired {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.claim-warranty-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.claim-warranty-btn:hover {
    background: #218838;
    color: #fff;
    text-decoration: none;
}

.claim-warranty-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Warranty Messages */
.warranty-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}

.warranty-message.active {
    margin-top: 15px;
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.warranty-message.expired {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.warranty-message p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.warranty-message p:last-child {
    margin-bottom: 0;
}

.warranty-message.active p:first-child {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.warranty-message.active p:last-child {
    font-style: italic;
    font-size: 13px;
}

.pcjm-no-warranty-results {
    padding: 20px;
    text-align: center;
    background: #f8f8f8;
    border-radius: 4px;
    color: #666;
}

/* Loading state */
.pcjm-loading {
    text-align: center;
    padding: 20px;
}

.pcjm-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.pcjm-error {
    padding: 12px;
    margin: 10px 0;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* Success message */
.pcjm-success {
    padding: 12px;
    margin: 10px 0;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

/* Warranty Photos Section */
.warranty-photos-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.warranty-photos-section h6 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.warranty-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    max-width: 100%;
}

.warranty-photo-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.warranty-photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.warranty-photo-thumb:hover {
    transform: scale(1.05);
}

/* Lightbox Styles */
.pcjm-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pcjm-lightbox-overlay.active {
    opacity: 1;
}

.pcjm-lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcjm-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pcjm-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.pcjm-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Navigation buttons */
.pcjm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 15px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.pcjm-lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.pcjm-lightbox-prev {
    left: -60px;
}

.pcjm-lightbox-next {
    right: -60px;
}

/* Responsive design */
@media screen and (max-width: 600px) {
    .pcjm-warranty-lookup {
        margin: 20px;
        padding: 15px;
    }

    .pcjm-search-form {
        flex-direction: column;
    }

    .search-warranty {
        width: 100%;
    }

    .warranty-info {
        grid-template-columns: 1fr;
    }

    .warranty-card {
        padding: 15px;
    }

    .warranty-photos-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        max-width: 300px;
    }

    .pcjm-lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .pcjm-lightbox-close {
        top: -35px;
        right: 0;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }

    /* Mobile navigation buttons */
    .pcjm-lightbox-nav {
        font-size: 20px;
        padding: 12px 8px;
    }

    .pcjm-lightbox-prev {
        left: 10px;
    }

    .pcjm-lightbox-next {
        right: 10px;
    }
} 