/* Order Notes Manager Dashboard Styles */
.woocommerce-order-notes-manager {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
}

.woocommerce-order-notes-manager h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.order-notes-list {
    margin-bottom: 30px;
}

.order-note-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.order-note-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.note-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.default-badge {
    background: #7cb342;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
}

.set-default-btn {
    background: transparent;
    border: 1px solid #7cb342;
    color: #7cb342;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.set-default-btn:hover {
    background: #7cb342;
    color: #fff;
}

.note-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    padding: 10px 0;
}

.note-actions {
    display: flex;
    justify-content: flex-end;
}

.delete-note-btn {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 6px 16px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-note-btn:hover {
    background: #dc3545;
    color: #fff;
}

.no-notes-message {
    color: #999;
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 4px;
}

.add-new-note-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.add-new-note-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

#add-order-note-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 15px;
    resize: vertical;
}

#add-order-note-form textarea:focus {
    outline: none;
    border-color: #7cb342;
    box-shadow: 0 0 0 1px #7cb342;
}

#add-order-note-form .button {
    background: #7cb342;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#add-order-note-form .button:hover {
    background: #689f38;
}

.note-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.note-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.note-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Checkout Page Styles */
.woo-saved-notes-selector {
    margin-bottom: 20px;
}

.saved-order-note-select {
    width: 100%;
}

.woo-saved-notes-selector .form-row {
    padding: 0;
}

.woo-saved-notes-selector label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.woo-saved-notes-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .set-default-btn,
    .default-badge {
        align-self: flex-start;
    }
}

/* Loading State */
.order-note-item.deleting {
    opacity: 0.5;
    pointer-events: none;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-note-item {
    animation: fadeIn 0.3s ease;
}
