/* MyFoodVoucher Public Styles */

ul.noLightbox.social_bookmarks.icon_count_3 {
    display: none !important;
}

/* My Account Menu Link */
.mfv-my-account-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mfv-my-account-menu i {
    font-size: 14px;
}

.mfv-vouchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.mfv-voucher-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.mfv-voucher-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mfv-voucher-card.mfv-featured {
    border-color: #f0b849;
    box-shadow: 0 2px 8px rgba(240, 184, 73, 0.3);
}

.mfv-voucher-main {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.mfv-voucher-image {
    width: 50%;
    min-width: 50%;
    height: auto;
    aspect-ratio: 1.29;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.mfv-voucher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mfv-discount-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.mfv-discount-badge {
    background: #7bc043;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mfv-voucher-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.mfv-voucher-content h3 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 42px;
}

.mfv-business-name {
    margin: 0 0 12px 0;
    color: #999;
    font-size: 13px;
}

.mfv-description {
    display: none;
}

.mfv-voucher-meta {
    display: none;
}

.mfv-discount {
    font-size: 24px;
    font-weight: bold;
    color: #46b450;
}

.mfv-expiry {
    font-size: 12px;
    color: #666;
}

.mfv-voucher-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mfv-button {
    display: inline-block;
    padding: 8px 18px;
    background: #ff4757;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.mfv-button:hover {
    background: #ee5a6f;
    color: #fff;
}

.mfv-voucher-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid #f0f0f0;
    gap: 10px;
}

.mfv-expiry-date {
    font-size: 11px;
    color: #999;
    border: 1px solid #e0e0e0;
    padding: 4px 10px;
    border-radius: 14px;
    background: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.mfv-show-details {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.mfv-show-details:hover {
    color: #ff4757;
}

.mfv-favorite-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.mfv-favorite-btn:hover {
    background: #f0f0f0;
}

.mfv-favorite-btn.favorited {
    color: #dc3232;
    border-color: #dc3232;
}

/* Featured Deals Carousel */
.mfv-featured-deals {
    margin: 40px 0;
}

.mfv-featured-deals h2 {
    margin-bottom: 20px;
}

.mfv-deals-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.mfv-deals-carousel::-webkit-scrollbar {
    height: 8px;
}

.mfv-deals-carousel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.mfv-deals-carousel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
}

.mfv-deals-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.7);
}

.mfv-deals-carousel .mfv-voucher-card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.mfv-deals-carousel .mfv-voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.mfv-deals-carousel .mfv-voucher-main {
    flex-direction: column;
}

.mfv-deals-carousel .mfv-voucher-image {
    width: 100%;
    height: 200px;
    aspect-ratio: unset;
}

.mfv-deals-carousel .mfv-voucher-content {
    padding: 20px;
}

.mfv-deals-carousel .mfv-voucher-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    min-height: 44px;
}

.mfv-deals-carousel .mfv-voucher-footer {
    padding: 15px 20px;
    background: #f9f9f9;
}

.mfv-deals-carousel .mfv-discount-badge {
    background: #ff4757;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: bold;
}

/* Subscription Form */
.mfv-subscription-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
}

.mfv-subscription-form h3 {
    margin-top: 0;
}

.mfv-form-group {
    margin-bottom: 15px;
}

.mfv-form-group input[type="email"],
.mfv-form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mfv-gdpr-text {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.mfv-subscription-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.mfv-subscription-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mfv-subscription-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard Styles */
.mfv-dashboard {
    padding: 20px;
}

.mfv-dashboard-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.mfv-dashboard-nav a {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.mfv-dashboard-nav a.active,
.mfv-dashboard-nav a:hover {
    color: #ff5757;
    border-bottom-color: #ff5757;
}

/* Responsive */
@media (max-width: 768px) {
    .mfv-vouchers-grid {
        grid-template-columns: 1fr;
    }
    
    .mfv-voucher-main {
        flex-direction: column;
    }
    
    .mfv-voucher-image {
        width: 100%;
        height: 200px;
    }
    
    .mfv-deals-carousel .mfv-voucher-card {
        flex: 0 0 250px;
    }
}

@media (max-width: 550px) {
    .mfv-vouchers-grid {
        grid-template-columns: 1fr;
    }
}



.mfv-filter-list li {
    list-style: none;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
}

input#mfv-search-input {
    margin-bottom: 0 !important;
    border: 1px solid #6ac635 !important;
}

.av-main-nav li {
    width: 14.2% !important;
}
.mfv-search-icon {
    color: #ff5757 !important;
}
/* Authentication Modal Styles */
.mfv-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mfv-modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mfv-modal-close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.mfv-modal-close:hover,
.mfv-modal-close:focus {
    color: #000;
}

.mfv-modal-header {
    text-align: center;
    padding: 30px 30px 20px;
}

.mfv-modal-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.mfv-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

/* Auth Tabs */
.mfv-auth-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 30px;
}

.mfv-auth-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.mfv-auth-tab.active {
    color: #6ac635;
}

.mfv-auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #6ac635;
}

/* Auth Forms */
.mfv-auth-form {
    display: none;
    padding: 30px;
}

.mfv-auth-form.active {
    display: block;
}

.mfv-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.mfv-form-group {
    margin-bottom: 20px;
}

.mfv-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.mfv-form-group label i {
    color: #6ac635;
    margin-right: 5px;
}

.mfv-form-group input[type="text"],
.mfv-form-group input[type="email"],
.mfv-form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.mfv-form-group input:focus {
    outline: none;
    border-color: #6ac635;
}

.mfv-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.mfv-form-checkbox {
    margin-bottom: 15px;
}

.mfv-form-checkbox label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.mfv-form-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.mfv-form-message {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.mfv-form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mfv-form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mfv-form-message i {
    margin-right: 8px;
}

.mfv-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.mfv-btn-primary {
    background: linear-gradient(135deg, #6ac635 0%, #4a9622 100%);
    color: white;
}

.mfv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 198, 53, 0.3);
}

.mfv-btn-primary:active {
    transform: translateY(0);
}

.mfv-form-footer {
    text-align: center;
    margin-top: 20px;
}

.mfv-form-footer a {
    color: #6ac635;
    text-decoration: none;
    font-size: 14px;
}

.mfv-form-footer a:hover {
    text-decoration: underline;
}

/* OTP Form Styles */
.mfv-otp-header {
    text-align: center;
    margin-bottom: 30px;
}

.mfv-otp-header i {
    font-size: 48px;
    color: #6ac635;
    margin-bottom: 15px;
}

.mfv-otp-header h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333;
}

.mfv-otp-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.mfv-otp-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: bold;
}

#mfv-otp-form .mfv-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Auth Trigger Button */
.mfv-auth-trigger {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 600px) {
    .mfv-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .mfv-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .mfv-modal-header {
        padding: 20px 20px 15px;
    }
    
    .mfv-auth-form {
        padding: 20px;
    }
    
    #mfv-otp-form .mfv-form-footer {
        flex-direction: column;
        gap: 10px;
    }
}

/* Favorite Button Styles */
.mfv-favorite-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
    font-size: 18px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mfv-favorite-btn:hover {
    color: #dc3545;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.mfv-favorite-btn.favorited {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.mfv-favorite-btn.favorited:hover {
    background: rgba(220, 53, 69, 0.15);
}

.mfv-favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Detail page favorite button - larger size */
.mfv-favorite-btn.mfv-favorite-detail {
    width: 50px;
    height: 50px;
    font-size: 22px;
    bottom: 20px;
    left: 20px;
}
