/* loan Payment Methods Widget Styles */
.loan-custom-list {
    width: 100%;
}

.loan-list-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.loan-list-item {
    padding: 16px;
    border: 1px solid rgba(34, 34, 34, 0.1);
    border-radius: var(--et_inputs-border-radius);
    background-color: rgba(245, 245, 245, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.loan-list-item:hover {
    border: 1px solid var(--e-global-color-primary);
}

.loan-list-item-link {
    display: block;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.loan-list-item-image {
    width: 32px;
    max-height: 32px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--et_inputs-border-radius);;
}

.loan-list-item-content {
    flex: 1;
    padding-left: 12px;
}

.loan-list-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--et_dark-2-white);
}

.loan-list-item-description {
    margin: 0;
    font-size: 12px;
}

.loan-list-item-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loan-arrow-icon {
    width: 20px;
    height: 20px;
    transition: color 0.2s ease;
}


/* Responsive Design */
@media (max-width: 768px) {
    .loan-list-item {
        padding: 12px;
    }
    
    .loan-list-item-image {
        width: 50px;
        height: 50px;
    }
    
    .loan-list-item-image-wrapper {
        margin-right: 12px;
    }
    
    .loan-list-item-title {
        font-size: 14px;
    }
    
}

@media (max-width: 480px) {
    .loan-list-item {
        padding: 10px;
    }
    
    .loan-list-item-image {
        width: 40px;
        height: 40px;
    }
    
    .loan-list-item-image-wrapper {
        margin-right: 10px;
    }
    
    .loan-list-item-title {
        font-size: 13px;
    }
    
}

/* Drawer Styles */
.loan-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.3s ease;
}

.loan-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loan-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: var(--et_container-bg-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    /* z-index: 1000; */
    display: flex;
    /* overflow: hidden; */
    flex-direction: column;
}

.loan-drawer-overlay.active .loan-drawer {
    right: 0;
}

.loan-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px 20px 20px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.loan-drawer-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #222222;
}

.loan-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--et_font-color);
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.loan-drawer-close:hover {
    color: var(--et_dark-color);
}

.loan-drawer-content {
    flex: 1;
    padding: 32px;
    background-color: #fff;
    /* overflow-y: auto; */
}

.loan-drawer-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.loan-drawer-content strong {
    color: var(--et_dark-color);
    font-weight: 600;
}

/* Make items clickable */
.loan-list-item {
    cursor: pointer;
    user-select: none;
}

/* Responsive Drawer */
@media (max-width: 768px) {
    .loan-drawer {
        width: 100%;
        right: -100%;
    }
    
    .loan-drawer-header {
        padding: 15px;
    }
    
    .loan-drawer-content {
        padding: 15px;
    }
    
    .loan-drawer-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .loan-drawer-header {
        padding: 12px;
    }
    
    .loan-drawer-content {
        padding: 12px;
    }
    
    .loan-drawer-title {
        font-size: 16px;
    }
}
