.nwc-warranty-widget {
    max-width: 600px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.nwc-search-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.nwc-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 0.5rem;
}

.nwc-subtitle {
    font-size: 0.95rem;
    color: #6e6e73;
    margin: 0 0 1.5rem;
}

.nwc-form {
    margin: 0;
}

.nwc-input-group {
    display: flex;
    gap: 0.5rem;
}

.nwc-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #d2d2d7;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.nwc-input:focus {
    border-color: #0071e3;
}

.nwc-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #0071e3;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.nwc-btn:hover {
    background: #0077ed;
}

.nwc-btn:disabled {
    background: #86868b;
    cursor: not-allowed;
}

/* Loading */
.nwc-loading {
    text-align: center;
    padding: 2rem;
}

.nwc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #d2d2d7;
    border-top-color: #0071e3;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: nwc-spin 0.8s linear infinite;
}

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

/* Results */
.nwc-result {
    margin-top: 1.5rem;
}

.nwc-result-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #d2d2d7;
}

.nwc-result-card.nwc-status-active {
    border-left-color: #34c759;
}

.nwc-result-card.nwc-status-expired {
    border-left-color: #ff9500;
}

.nwc-result-card.nwc-status-not_found {
    border-left-color: #ff3b30;
}

.nwc-result-card.nwc-status-not_sold {
    border-left-color: #007aff;
}

.nwc-result-card.nwc-status-no_warranty {
    border-left-color: #8e8e93;
}

.nwc-product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nwc-product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f5f7;
}

.nwc-product-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: #1d1d1f;
}

.nwc-product-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #6e6e73;
}

.nwc-status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.nwc-badge-active {
    background: #e8f8ec;
    color: #1b7a2e;
}

.nwc-badge-expired {
    background: #fff3e0;
    color: #b5651d;
}

.nwc-badge-not_found {
    background: #ffeaea;
    color: #c62828;
}

.nwc-badge-not_sold {
    background: #e3f2fd;
    color: #1565c0;
}

.nwc-badge-no_warranty {
    background: #f5f5f5;
    color: #616161;
}

.nwc-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.nwc-details li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.nwc-details li:last-child {
    border-bottom: none;
}

.nwc-details .nwc-label {
    color: #6e6e73;
}

.nwc-details .nwc-value {
    font-weight: 500;
    color: #1d1d1f;
}

/* Action buttons container */
.nwc-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.nwc-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.nwc-whatsapp-btn:hover {
    background: #1da851;
    color: #fff;
    text-decoration: none;
}

.nwc-whatsapp-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Support request button */
.nwc-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.nwc-support-btn:hover {
    background: #0077ed;
}

/* Support form */
.nwc-support-form {
    margin-top: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.nwc-support-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 1rem;
}

.nwc-form-group {
    margin-bottom: 0.75rem;
}

.nwc-form-group .nwc-input {
    width: 100%;
    box-sizing: border-box;
}

.nwc-textarea {
    resize: vertical;
    min-height: 70px;
}

.nwc-form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}

.nwc-btn-support {
    background: #0071e3;
}

.nwc-btn-support:hover {
    background: #0077ed;
}

.nwc-btn-cancel {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6e6e73;
    background: transparent;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.nwc-btn-cancel:hover {
    background: #f0f0f0;
    color: #1d1d1f;
}

/* Support messages */
.nwc-support-error {
    padding: 0.6rem 1rem;
    background: #ffeaea;
    color: #c62828;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.nwc-support-info {
    padding: 0.6rem 1rem;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Support success */
.nwc-support-success {
    text-align: center;
    padding: 1.5rem 1rem;
}

.nwc-support-success svg {
    margin-bottom: 0.75rem;
}

.nwc-support-success p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1b7a2e;
    margin: 0 0 1rem;
}

.nwc-support-success .nwc-whatsapp-btn {
    margin-top: 0.5rem;
}

.nwc-support-email-sent {
    font-size: 0.9rem;
    color: #555;
    font-weight: 400;
    margin: 0 0 0.5rem;
}

.nwc-message {
    font-size: 0.95rem;
    color: #6e6e73;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.nwc-error-message {
    text-align: center;
    padding: 1.5rem;
    color: #ff3b30;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 480px) {
    .nwc-input-group {
        flex-direction: column;
    }

    .nwc-product-header {
        flex-direction: column;
        text-align: center;
    }

    .nwc-actions {
        flex-direction: column;
    }

    .nwc-actions .nwc-whatsapp-btn,
    .nwc-actions .nwc-support-btn {
        width: 100%;
        justify-content: center;
    }

    .nwc-form-actions {
        flex-direction: column;
    }

    .nwc-form-actions .nwc-btn,
    .nwc-form-actions .nwc-btn-cancel {
        width: 100%;
        text-align: center;
    }
}
