/* Custom Styles for Winnies School of Excellence */

/* Product Loading States */
.products.loading {
    opacity: 0.5;
    position: relative;
}

.products.loading:after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Infinite Scroll Styles */
.infinite-scroll-loader {
    text-align: center;
    padding: 30px 20px;
    font-size: 16px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.infinite-scroll-loader:before {
    content: "⏳ ";
    margin-right: 8px;
}

.infinite-scroll-error {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
}

.infinite-scroll-error:before {
    content: "⚠️ ";
    margin-right: 8px;
}

@keyframes pulse {
    from {
        opacity: 0.6;
    }
    to {
        opacity: 1;
    }
}

/* WooCommerce Pagination Styles */
.woocommerce-pagination {
    margin: 40px 0;
    text-align: center;
}

.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.woocommerce-pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0;
    background: transparent;
    color: #333;
    text-decoration: none;
    border: none;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.woocommerce-pagination .page-numbers .current {
    background: #5ADBFF;
    color: #000;
    border-color: #5ADBFF;
    cursor: default;
    font-weight: 600;
}

.woocommerce-pagination .page-numbers .prev,
.woocommerce-pagination .page-numbers .next {
    padding: 0;
    font-weight: 500;
    display: flex;
}

.woocommerce-pagination .page-numbers .prev:hover,
.woocommerce-pagination .page-numbers .next:hover {
    color: #5ADBFF;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .woocommerce-pagination .page-numbers {
        gap: 6px;
    }
    
    .woocommerce-pagination .page-numbers a,
    .woocommerce-pagination .page-numbers span {
        min-width: 40px;
        padding: 0;
        font-size: 14px;
    }
    
    .woocommerce-pagination .page-numbers .prev,
    .woocommerce-pagination .page-numbers .next {
        padding: 0;
    }
}

/* Loading state for pagination */
.woocommerce-pagination.loading {
    opacity: 0.6;
    pointer-events: none;
}

.woocommerce-pagination.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #5ADBFF;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cart Sidebar Duplicate Prevention */
.cart-sidebar .cart-sidebar-footer:not(:last-child) {
    display: none !important;
}

/* Ensure only one subtotal, coupon section, and checkout button */
.cart-sidebar .cart-sidebar-footer ~ .cart-sidebar-footer {
    display: none !important;
}

/* LearnDash Course Search Styles */
.course-archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.course-archive-header .page-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px 0;
    font-family: 'Urbanist', sans-serif;
}

.course-search-container {
    max-width: 500px;
    margin: 0 auto;
}

.course-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 48px;
}

.course-search-wrapper:focus-within {
    border-color: #5ADBFF;
    box-shadow: 0 4px 12px rgba(90, 219, 255, 0.1);
    background: #f8f9fa;
}

.course-search-wrapper:hover {
    border-color: #5ADBFF;
    background: #f8f9fa;
}

.course-search-wrapper .search-icon {
    position: absolute;
    left: 16px;
    color: #666;
    z-index: 2;
    pointer-events: none;
    flex-shrink: 0;
}

.course-search-input {
    width: 100%;
    padding: 12px 16px 12px 52px;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Urbanist', sans-serif;
    background: transparent;
    color: #333;
    border-radius: 8px;
}

.course-search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.search-clear-btn:hover {
    background: #e9ecef;
    color: #5ADBFF;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px auto;
    padding: 20px;
    width: 100%;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #5ADBFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Course Search and Filter Layout */
.course-search-section {
    margin-bottom: 40px;
    margin-top: 40px;
}

.search-filters-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.filters-container {
    flex-shrink: 0;
    min-width: 320px;
}

.filter-group {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #495057;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.filter-select:focus {
    outline: none;
    border-color: #5ADBFF;
    box-shadow: 0 0 0 3px rgba(90, 219, 255, 0.1);
}

.filter-select:hover {
    border-color: #5ADBFF;
}

/* Modern Filter Dropdown Styling */
.custom-filter-wrapper {
    position: relative;
    display: inline-block;
}

.custom-filter-dropdown {
    position: relative;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Urbanist', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: space-between;
    min-width: 140px;
}

.filter-toggle:hover {
    border-color: #5ADBFF;
    background: #f8f9fa;
}

.filter-toggle.active {
    border-color: #5ADBFF;
    background: #f8f9fa;
}

.filter-icon {
    color: #666;
    flex-shrink: 0;
}

.filter-text {
    flex: 1;
    text-align: left;
}

.filter-toggle .dropdown-arrow {
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.filter-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 140px;
}

.filter-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: 'Urbanist', sans-serif;
    color: #333;
}

.filter-option:hover {
    background: #f8f9fa;
    color: #5ADBFF;
}

.filter-option.selected {
    background: #5ADBFF;
    color: white;
}

.filter-option:last-child {
    border-radius: 0 0 6px 6px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Modern Course Card Styles */
.course-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.course-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Course Thumbnail */
.course-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f8f9fa;
}

.course-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image {
    transform: scale(1.05);
}

/* Course Progress Overlay */
.course-progress-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.progress-text {
    display: block;
    line-height: 1;
}

/* Course Content */
.course-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    font-family: 'Urbanist', sans-serif;
}

.course-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: #000000;
}

/* Course Meta */
.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.course-students {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.course-students svg {
    color: #000000;
    flex-shrink: 0;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.price-amount {
    color: #000;
    font-size: 16px;
}

.price-interval {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.price-free {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
}

/* Course Excerpt */
.course-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

/* Course Actions */
.course-actions {
    margin-top: auto;
}

.btn-continue-course,
.btn-view-course {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Urbanist', sans-serif;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-continue-course {
    background-color: #5ADBFF;
    color: #000000;
}

.btn-continue-course:hover {
    transform: translateY(-2px);
}

.btn-view-course {
    background: #5ADBFF;
    color: #000;
}

.btn-view-course:hover {
    background: #4AC3E8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 219, 255, 0.3);
}

.search-results-container {
    margin-top: 40px;
}

/* AJAX Pagination Styles */
.course-pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.pagination-btn:hover {
    background: #f8f9fa;
    border-color: #5ADBFF;
    color: #5ADBFF;
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: #5ADBFF;
    border-color: #5ADBFF;
    color: #fff;
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-dots {
    padding: 0 8px;
    color: #999;
    font-weight: bold;
}

.prev-btn, .next-btn {
    font-weight: 600;
    padding: 8px 16px;
}

.load-more-btn {
    background: #5ADBFF;
    border-color: #5ADBFF;
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    min-width: 160px;
    height: auto;
}

.load-more-btn:hover {
    background: #4AC3E8;
    border-color: #4AC3E8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 219, 255, 0.3);
}

@media (max-width: 768px) {
    .pagination-wrapper {
        gap: 4px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
        height: 36px;
    }
    
    .prev-btn, .next-btn {
        padding: 6px 12px;
    }
}

/* Course Status Badge Styles */
.course-thumbnail {
    position: relative;
}

.course-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
}

.course-status-badge .status-icon {
    font-size: 12px;
    line-height: 1;
}

.course-status-badge .status-text {
    line-height: 1;
    white-space: nowrap;
}

/* Status Badge Variants */
.status-completed {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-in-progress {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-enrolled {
    background: #5ADBFF;
    color: white;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-not-enrolled {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-guest {
    background: rgba(107, 114, 128, 0.9);
    color: white;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Hover Effects */
.course-card:hover .course-status-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .course-status-badge {
        top: 15px;
        right: 15px;
        padding: 3px 6px;
        font-size: 10px;
        gap: 3px;
    }
    
    .course-status-badge .status-icon {
        font-size: 11px;
    }
}

/* No Results Styles */
.no-courses-found,
.no-search-results {
    text-align: center;
    padding: 60px 20px;
    background: transparent;
    border-radius: 12px;
    margin: 40px 0;
}

.no-courses-icon,
.no-results-icon {
    margin-bottom: 20px;
    color: #ccc;
}

.no-courses-found h3,
.no-search-results h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    font-family: 'Urbanist', sans-serif;
}

.no-courses-found p,
.no-search-results p {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.btn-clear-search {
    background: #5ADBFF;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Urbanist', sans-serif;
}

.btn-clear-search:hover {
    background: #4ac3e8;
    transform: translateY(-1px);
}

/* Course Pagination */
.course-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.course-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.course-pagination .page-numbers:hover,
.course-pagination .page-numbers.current {
    background: #5ADBFF;
    color: #fff;
    border-color: #5ADBFF;
}

.course-pagination .page-numbers.prev,
.course-pagination .page-numbers.next {
    padding: 8px 16px;
}

/* Search Error */
.search-error {
    text-align: center;
    padding: 40px 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

/* Quick View Modal Styles */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.quick-view-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: quickViewSlideIn 0.3s ease-out;
}

@keyframes quickViewSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.quick-view-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.quick-view-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.quick-view-close svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.quick-view-loading {
    padding: 60px 40px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5ADBFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.quick-view-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.quick-view-product-content {
    padding: 40px;
}

.quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.quick-view-images {
    position: relative;
}

.quick-view-main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.quick-view-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.quick-view-details h1 {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.quick-view-categories,
.quick-view-tags {
    font-size: 14px;
    margin: 8px 0;
    color: #000000;
}

.quick-view-categories .category-label,
.quick-view-tags .tag-label {
    font-weight: 600;
    color: #000000;
    margin-right: 8px;
}

.quick-view-price {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin: 20px 0;
}

/* Sale Price Styling - Product List & Quick View */
.price del,
.quick-view-price del {
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
    order: 2;
}

.price ins,
.quick-view-price ins {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    order: 1;
}

.price .woocommerce-Price-amount,
.quick-view-price .woocommerce-Price-amount {
    font-weight: inherit;
}

/* Reorder price display - Sale price first, then original */
.price,
.quick-view-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Product List Price Styling */
.product-content .price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 8px 0 0 0;
}

.product-content .price del .woocommerce-Price-amount {
    font-size: 18px;
    color: #999;
}

.product-content .price ins .woocommerce-Price-amount {
    font-size: 18px;
    color: #000000;
}

.quick-view-description {
    color: #000000;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.quick-view-actions {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
    flex-direction: column;
}

/* Quick View Variations Styling */
.quick-view-variations {
    width: 100%;
    margin-bottom: 20px;
}

.variation-option {
    margin-bottom: 20px;
}

.variation-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.variation-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.variation-btn {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    background: #fff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.variation-btn:hover {
    border-color: #5ADBFF;
    color: #5ADBFF;
    background: #f8f9fa;
}

.variation-btn.selected {
    border-color: #5ADBFF;
    background: #5ADBFF;
    color: white;
}

.variation-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #999;
}

.quick-view-quantity button {
    width: 30px;
    height: 30px;
    border: none;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-view-quantity button:hover {
    background: #5ADBFF;
    color: #fff;
}

.quick-view-quantity input {
    width: 30px;
    height: 30px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.quick-view-add-to-cart {
    flex: 1;
    height: 48px;
    background: #5ADBFF;
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 99999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-view-add-to-cart:hover {
    background: #4AC3E8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 219, 255, 0.3);
}

.quick-view-btn {
    background: #e9e6ed;
    color: #000;
    border: none;
    border-radius: 999999px;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-view-btn:hover {
    background: #e9e6ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 219, 255, 0.3);
}

.quick-view-btn svg {
    width: 16px;
    height: 16px;
}

/* Product Actions Layout */
.product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

/* Add to Cart Icon Button (beside Quick View) */
.add-to-cart-icon-btn {
    width: 40px;
    height: 40px;
    background: #5ADBFF;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.add-to-cart-icon-btn:hover {
    background: #4AC3E8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(90, 219, 255, 0.4);
}

.add-to-cart-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: white;
}

.add-to-cart-icon-btn.out-of-stock {
    background: #999;
    cursor: not-allowed;
}

.add-to-cart-icon-btn.out-of-stock:hover {
    background: #999;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Loading state for add to cart icon button */
.add-to-cart-icon-btn.adding {
    background: #4AC3E8;
    pointer-events: none;
}

.add-to-cart-icon-btn.adding .loading-spinner {
    animation: spin 1s linear infinite;
}

/* Success state for add to cart icon button */
.add-to-cart-icon-btn.added {
    background: #28a745;
}

/* Custom Sorting Dropdown Styling */
.custom-sorting-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.custom-sorting-dropdown {
    position: relative;
}

.sorting-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Urbanist', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: space-between;
}

.sorting-toggle:hover {
    border-color: #5ADBFF;
    background: #f8f9fa;
}

.sorting-toggle.active {
    border-color: #5ADBFF;
    background: #f8f9fa;
}

.sorting-icon {
    color: #666;
    flex-shrink: 0;
}

.sorting-text {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sorting-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.sorting-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -144px;
    right: 0;
    background: #fff;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    width: 200px;
}

.sorting-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sorting-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: 'Urbanist', sans-serif;
    color: #333;
}

.sorting-option:hover {
    background: #f8f9fa;
    color: #5ADBFF;
}

.sorting-option.selected {
    background: #5ADBFF;
    color: white;
}

.sorting-option:last-child {
    border-radius: 0 0 6px 6px;
}

.floating-cart-btn.adding {
    background: #28a745;
    animation: pulse 1s infinite;
}

.floating-cart-btn.added {
    background: #28a745;
}

.floating-cart-btn.added svg {
    color: #fff;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .course-archive-header .page-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .course-search-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .course-search-wrapper {
        min-height: 44px;
    }
    
    .course-search-input {
        padding: 10px 14px 10px 44px;
        font-size: 15px;
    }
    
    .course-search-wrapper .search-icon {
        left: 14px;
    }
    
    .search-clear-btn {
        right: 10px;
        width: 24px;
        height: 24px;
        padding: 4px;
    }
    
    /* Mobile Filter Styles */
    .search-filters-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-container {
        max-width: 100%;
        width: 100%;
    }
    
    .filters-container {
        min-width: auto;
        width: 100%;
    }
    
    .filter-group {
        gap: 15px;
        align-items: stretch;
    }
    
    .filter-select {
        min-width: auto;
        width: 100%;
    }
    
    /* Mobile Modern Filter Styles */
    .custom-filter-wrapper {
        width: 100%;
    }
    
    .filter-toggle {
        min-width: auto;
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-dropdown-menu {
        min-width: auto;
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    
    .course-card {
        border-radius: 12px;
    }
    
    .course-card:hover {
        transform: translateY(-4px);
    }
    
    .course-content {
        padding: 20px;
    }
    
    .course-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .course-students {
        font-size: 13px;
    }
    
    .course-excerpt {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .btn-continue-course,
    .btn-view-course {
        padding: 12px 20px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .no-courses-found,
    .no-search-results {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .sorting-toggle {
        min-width: 180px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .sorting-option {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .quick-view-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .quick-view-product {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .quick-view-product-content {
        padding: 30px 20px;
    }
    
    .quick-view-details h1 {
        font-size: 24px;
    }
    
    .quick-view-price {
        font-size: 20px;
    }
    
    .quick-view-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-view-btn {
        font-size: 13px;
        padding: 8px 14px;
        margin-top: 6px;
    }
    
    .floating-cart-btn {
        width: 40px;
        height: 40px;
        opacity: 1;
        transform: scale(1);
    }
    
    .floating-cart-btn svg {
        width: 18px;
        height: 18px;
    }
}

body.archive.post-type-archive-sfwd-courses .container {
    margin: 50px auto;
    max-width: 1300px;
    padding: 20px;
}

.course-archive-header {
    text-align: left;
}

.course-archive-header  h1.page-title {
    font-size: 60px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    font-family: 'Urbanist', sans-serif;
}

.search-container .search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    padding-right: 70px !important;
    background-color: transparent !important;
}

.search-input-wrapper button.search-btn {
    position: absolute;
    right: 16px;
    bottom: 10px;
    border: none;
    background-color: transparent;
}

.search-input-wrapper button.clear-search-btn {
    position: absolute;
    right: 50px;
    bottom: 12px;
    background: transparent;
    border: none;
}

.course-results-info {
    margin-bottom: 15px;
    padding-bottom: 10px;
}

/* Modern WooCommerce Messages */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    position: relative;
    padding: 16px 20px 16px 50px;
    margin: 20px 0;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Success Messages */
.woocommerce-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-left: 4px solid #22c55e;
    color: #065f46;
}

.woocommerce-message::before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error Messages */
.woocommerce-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-left: 4px solid #ef4444;
    color: #7f1d1d;
}

.woocommerce-error::before {
    content: "✕";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info Messages */
.woocommerce-info {
    background: linear-gradient(135deg, rgba(90, 219, 255, 0.1) 0%, rgba(90, 219, 255, 0.05) 100%);
    border-left: 4px solid #5ADBFF;
    color: #0c4a6e;
}

.woocommerce-info::before {
    content: "ℹ";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
    color: #5ADBFF;
    background: rgba(90, 219, 255, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notice Group Container */
.woocommerce-NoticeGroup {
    width: 100%;
    margin: 20px 0;
}

/* Message Links */
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
    color: inherit;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.woocommerce-message a strong,
.woocommerce-error a strong,
.woocommerce-info a strong {
    font-weight: 400;
}

.woocommerce-message a:hover {
    color: #16a34a;
    text-decoration: none;
}

.woocommerce-error a:hover {
    color: #dc2626;
    text-decoration: none;
}

.woocommerce-info a:hover {
    color: #0284c7;
    text-decoration: none;
}

/* Hover Effects */
.woocommerce-message:hover,
.woocommerce-error:hover,
.woocommerce-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Close Button Styling */
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: inherit;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.woocommerce-message .button:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
}

.woocommerce-error .button:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.woocommerce-info .button:hover {
    background: rgba(90, 219, 255, 0.2);
    border-color: #5ADBFF;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .woocommerce-message,
    .woocommerce-error,
    .woocommerce-info {
        padding: 14px 16px 14px 45px;
        margin: 15px 0;
        font-size: 13px;
    }
    
    .woocommerce-message::before,
    .woocommerce-error::before,
    .woocommerce-info::before {
        left: 14px;
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    .woocommerce-message .button,
    .woocommerce-error .button,
    .woocommerce-info .button {
        padding: 4px 8px;
        font-size: 11px;
        margin-left: 8px;
    }
}

/* Custom Payment Method Radio Buttons */
.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 20px;
    margin: 0;
    border: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin: 0 0 12px 0;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.woocommerce-checkout #payment ul.payment_methods li.payment_method_selected {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Payment Method Labels */
.woocommerce-checkout #payment ul.payment_methods li label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.woocommerce-checkout #payment ul.payment_methods li label:hover {
    font-weight: bold;
}

/* Hide Default Radio Buttons */
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

/* Custom Radio Button Design */
.woocommerce-checkout #payment ul.payment_methods li label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 50%;
    margin-right: 12px;
    background: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

/* Radio Button Checked State */
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked + label::before {
    border-color: #000000;
    background: #000000;
}

/* Inner Dot for Checked State */
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5ADBFF;
    transition: all 0.3s ease;
}

/* Payment Method Icons (if any) */
.woocommerce-checkout #payment ul.payment_methods li label img {
    max-height: 24px;
    margin-left: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.woocommerce-checkout #payment ul.payment_methods li:hover label img {
    opacity: 1;
}

/* Payment Box Styling */
.woocommerce-checkout #payment div.payment_box {
    background: transparent !important;
    color: #333 !important;
    border-radius: 0;
    padding: 0 20px;
    margin: auto;
    margin-bottom: 16px;
    border: none;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

.woocommerce-checkout #payment div.payment_box p {
    color: #333 !important;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

/* Place Order Button Enhancement */
.woocommerce-checkout #payment #place_order {
    background: #184CB1;
    border: none;
    border-radius: 99999px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 20px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

.woocommerce-checkout #payment #place_order:hover {
    transform: translateY(-2px);
}

.woocommerce-checkout #payment #place_order:active {
    transform: translateY(0);
}

/* Mobile Responsive for Payment Methods */
@media (max-width: 768px) {
    .woocommerce-checkout #payment ul.payment_methods li label {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .woocommerce-checkout #payment ul.payment_methods li label::before {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    
    .woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked + label::after {
        left: 23px;
        width: 6px;
        height: 6px;
    }
    
    .woocommerce-checkout #payment div.payment_box {
        padding: 16px;
    }
    
    .woocommerce-checkout #payment #place_order {
        padding: 16px 18px;
        font-size: 15px;
    }
}

/* Custom Checkout Loading Spinner */
.woocommerce-checkout .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.woocommerce-checkout .blockUI.blockOverlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid #e3f2fd;
    border-top: 3px solid #5ADBFF;
    border-radius: 50%;
    animation: checkout-spin 1s linear infinite;
    z-index: 9999;
}

/* Hide ALL Default WooCommerce Loading Elements */
.woocommerce-checkout .blockUI.blockMsg {
    display: none !important;
}

/* Hide default WooCommerce loading overlay */
.woocommerce .blockUI.blockOverlay {
    background: transparent !important;
}

/* Hide default WooCommerce processing class styling */
.woocommerce .processing {
    background-image: none !important;
}

/* Hide default WooCommerce loader */
.woocommerce .loader {
    display: none !important;
}

/* Hide default blockUI styling */
.blockUI.blockMsg {
    display: none !important;
}

/* Remove default WooCommerce checkout processing styles */
.woocommerce-checkout .woocommerce-checkout-payment .processing {
    background: none !important;
}

/* Hide default WooCommerce spinner */
.woocommerce .woocommerce-checkout .processing::before {
    display: none !important;
}

/* Remove default loading background images */
.woocommerce form .processing,
.woocommerce-page form .processing {
    background-image: none !important;
    background: transparent !important;
}

/* Hide default WooCommerce ajax loader */
.woocommerce .ajax-loader,
.woocommerce-page .ajax-loader {
    display: none !important;
}

/* Remove default blockUI message styling */
div.blockMsg {
    display: none !important;
}

/* Hide default WooCommerce checkout loader */
.woocommerce-checkout-review-order-table .processing {
    background: none !important;
}

/* Remove any default loading animations */
.woocommerce .processing,
.woocommerce-page .processing {
    animation: none !important;
    background-image: none !important;
}

/* Custom loading animation */
@keyframes checkout-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Loading overlay for specific sections */
.woocommerce-checkout .processing {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.woocommerce-checkout .processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid #e3f2fd;
    border-top: 2px solid #5ADBFF;
    border-radius: 50%;
    animation: checkout-spin 0.8s linear infinite;
    z-index: 10;
}

/* Custom spinner for payment methods */
.woocommerce-checkout #payment .payment_methods.processing {
    position: relative;
}

.woocommerce-checkout #payment .payment_methods.processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    z-index: 5;
}

.woocommerce-checkout #payment .payment_methods.processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid #e3f2fd;
    border-top: 3px solid #5ADBFF;
    border-radius: 50%;
    animation: checkout-spin 1s linear infinite;
    z-index: 10;
}

/* Loading state for place order button */
.woocommerce-checkout #payment #place_order.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.woocommerce-checkout #payment #place_order.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: checkout-spin 0.8s linear infinite;
}

/* Custom loading for form updates */
.woocommerce-checkout form.checkout.processing {
    position: relative;
}

.woocommerce-checkout form.checkout.processing::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9998;
}

.woocommerce-checkout form.checkout.processing::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #e3f2fd;
    border-top: 4px solid #5ADBFF;
    border-radius: 50%;
    animation: checkout-spin 1.2s linear infinite;
    z-index: 9999;
}

/* Pulse animation for loading states */
@keyframes checkout-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.woocommerce-checkout .loading-pulse {
    animation: checkout-pulse 1.5s ease-in-out infinite;
}

/* Mobile responsive loading */
@media (max-width: 768px) {
    .woocommerce-checkout .blockUI.blockOverlay::before {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }
    
    .woocommerce-checkout form.checkout.processing::after {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
}

.woocommerce-password-strength {
    margin-top: 5px;
    background-color: transparent !important;
    font-size: 14px;
    text-align: left;
}

.woocommerce-password-strength.bad,
.woocommerce-password-strength.short {
    color: #ff0000;
}

.woocommerce-password-strength.strong {
    color: #83c373;
}

.woocommerce-password-strength.good {
    color: #ffc733;
}

.woocommerce form p.form-row#billing_email_field {
    margin-bottom: 20px !important;
}