/* EPTM Pro Styles */

/* Base Styles */
.eptm-trigger {
    color: #0073aa;
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
    transition: all 0.3s;
}

.eptm-trigger:hover {
    color: #005a87;
    transform: translateY(-2px);
}

.eptm-content {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

/* Filter Off Canvas Styles */
.eptm-filter-offcanvas {
    position: fixed;
    top: 0;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 100000;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.eptm-filter-offcanvas.eptm-offcanvas-right {
    right: 0;
    transform: translateX(100%);
}

.eptm-filter-offcanvas.eptm-offcanvas-left {
    left: 0;
    transform: translateX(-100%);
}

.eptm-filter-offcanvas.active {
    transform: translateX(0);
}

.eptm-filter-offcanvas .eptm-offcanvas-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    flex-shrink: 0;
}

.eptm-filter-offcanvas .eptm-offcanvas-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.eptm-filter-offcanvas .eptm-offcanvas-close {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.3s;
}

.eptm-filter-offcanvas .eptm-offcanvas-close:hover {
    color: #333;
}

.eptm-filter-offcanvas .eptm-offcanvas-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.eptm-filter-offcanvas .eptm-offcanvas-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Toggle Styles */
.eptm-toggle-wrapper {
    margin: 20px 0;
}

.eptm-toggle-content {
    display: none;
    margin-top: 15px;
    border-left: 3px solid #0073aa;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* Popup Styles */
.eptm-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.eptm-popup-overlay.active {
    display: flex;
}

.eptm-popup-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.eptm-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

/* Off Canvas Styles */
.eptm-offcanvas {
    position: fixed;
    top: 0;
    height: 100vh;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 100000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.eptm-offcanvas-right {
    right: 0;
    transform: translateX(100%);
}

.eptm-offcanvas-left {
    left: 0;
    transform: translateX(-100%);
}

.eptm-offcanvas.active {
    transform: translateX(0);
}

.eptm-offcanvas-trigger {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.eptm-offcanvas-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
}

.eptm-offcanvas-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .eptm-popup-content {
        width: 95%;
        padding: 20px;
    }
    
    .eptm-filter-offcanvas,
    .eptm-offcanvas {
        width: 85% !important;
        max-width: 350px;
    }
}