/**
 * WooCommerce Checkout Notes - Frontend Styles
 *
 * Styles for displaying notes on cart and checkout pages.
 *
 * @package WooCommerce_Checkout_Notes
 * @author Deniz.in
 * @copyright 2024 Deniz.in
 * @license GPL-2.0-or-later
 * @since 1.0.0
 */

.ccn-checkout-notes-wrapper {
    margin-bottom: 30px;
}

.ccn-cart-notes-wrapper {
    margin-top: 10px !important;
    margin-bottom: 50px !important;
    padding: 15px 0 30px 0 !important;
    border-bottom: 3px solid #ddd !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
}

.ccn-checkout-note {
    background: #f8f9fa !important;
    border-left: 4px solid #2271b1 !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    clear: both !important;
}

.ccn-checkout-note:last-child {
    margin-bottom: 0;
}

.ccn-note-product {
    border-left-color: #1976d2;
}

.ccn-note-category {
    border-left-color: #7b1fa2;
}

.ccn-note-title {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.ccn-note-title strong {
    font-weight: 600;
}

.ccn-note-content {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.ccn-note-content p {
    margin: 0 0 10px;
}

.ccn-note-content p:last-child {
    margin-bottom: 0;
}

.ccn-note-content ul,
.ccn-note-content ol {
    margin: 0 0 10px 20px;
}

.ccn-note-content li {
    margin-bottom: 5px;
}

.ccn-note-content strong {
    font-weight: 600;
}

.ccn-note-content em {
    font-style: italic;
}

/* Different note styles */
.ccn-checkout-note.ccn-style-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.ccn-checkout-note.ccn-style-warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.ccn-checkout-note.ccn-style-success {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.ccn-checkout-note.ccn-style-error {
    background: #ffebee;
    border-left-color: #f44336;
}

/* Icon styles */
.ccn-note-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
}

.ccn-note-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ccn-note-with-icon .ccn-note-icon {
    flex-shrink: 0;
    font-size: 22px;
    margin-right: 0;
    line-height: 1;
}

.ccn-note-with-icon .ccn-note-body {
    flex: 1;
}

/* Animations */
.ccn-animate-fade {
    animation: ccnFadeIn 0.4s ease-out;
}

.ccn-animate-slide {
    animation: ccnSlideDown 0.4s ease-out;
}

.ccn-animate-bounce {
    animation: ccnBounce 0.6s ease-out;
}

@keyframes ccnFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ccnSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ccnBounce {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .ccn-checkout-note {
        padding: 15px;
    }

    .ccn-note-title {
        font-size: 15px;
    }

    .ccn-note-content {
        font-size: 13px;
    }

    .ccn-note-with-icon {
        flex-direction: column;
        gap: 8px;
    }
}

