/*
Template:       medimall
Theme Name:     Medimall Child Theme
Theme URI:      http://radiustheme.com/demo/wordpress/themes/medimall
Author:         RadiusTheme
Author URI:     http://radiustheme.com
Description:    Medimall is a clean and modern WordPress Theme for Ecommerce and Online Store. This theme comes with all necessary features and pages for a Ecommerce website.
Version:        1.0
Text Domain:    medimall
Tags: 			one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
License:   	  	Envato split License
License URI:  	https://themeforest.net/licenses/terms/regular
*/

.main_cards .elementor-widget, 
.main_cards .elementor-widget .elementor-widget-container,
.main_cards .elementor-widget .elementor-widget-container .wow,
.main_cards .elementor-widget .elementor-widget-container .wow .rt-servie-box{
        height: 100%;
}

.main_cards .elementor-widget .elementor-widget-container .wow .rt-servie-box{
    flex-direction: column;
}

.main_cards .rt-servie-box .item-icon {
    margin-bottom: 15px;
}

.main_cards .rt-servie-box .item-content {
    text-align: center;
}

/* =========================================
   EBS - Trusted Brands Equal Height Cards
========================================= */

/* All brand cards same height */
body.home .rt-brand-box-2 {
    height: 195px !important;
    min-height: 195px !important;
    padding: 18px 14px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Same logo container size */
body.home .rt-brand-box-2 .item-icon {
    width: 100% !important;
    height: 105px !important;
    min-height: 105px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 0 10px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Fit all logos without stretching */
body.home .rt-brand-box-2 .item-icon img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 100px !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 auto !important;
}

/* Brand title alignment */
body.home .rt-brand-box-2 .title {
    width: 100% !important;
    min-height: 40px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;

    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile responsive */
@media (max-width: 767px) {

    body.home .rt-brand-box-2 {
        height: 165px !important;
        min-height: 165px !important;
        padding: 12px 10px !important;
    }

    body.home .rt-brand-box-2 .item-icon {
        height: 85px !important;
        min-height: 85px !important;
        margin-bottom: 8px !important;
    }

    body.home .rt-brand-box-2 .item-icon img {
        max-height: 80px !important;
    }

    body.home .rt-brand-box-2 .title {
        font-size: 14px !important;
    }
}




/* ===========================================
   EBS - Homepage Service Cards
   Icon Top + Equal Height + Centered Content
=========================================== */

/* Main card */
.rt-service-box.style-1 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;
    height: 285px !important;
    min-height: 285px !important;

    padding: 25px 18px !important;
    box-sizing: border-box !important;

    text-align: center !important;
    gap: 12px !important;
}

/* Orange icon container */
.rt-service-box.style-1 > .item-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    order: 1 !important;

    width: auto !important;
    height: 42px !important;
    min-height: 42px !important;

    flex: 0 0 42px !important;

    margin: 0 auto !important;
    padding: 0 !important;
}

/* Icon */
.rt-service-box.style-1 > .item-icon i,
.rt-service-box.style-1 > .item-icon svg {
    font-size: 34px !important;
    margin: 0 !important;
}

/* Heading and paragraph container */
.rt-service-box.style-1 > .item-content {
    order: 2 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    width: 100% !important;
    flex: 1 1 auto !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;
}

/* Heading */
.rt-service-box.style-1 > .item-content h3,
.rt-service-box.style-1 > .item-content h4 {
    width: 100% !important;
    margin: 0 0 8px !important;
    text-align: center !important;
    line-height: 1.45 !important;
}

/* Description */
.rt-service-box.style-1 > .item-content p {
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.6 !important;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    .rt-service-box.style-1 {
        height: 310px !important;
        min-height: 310px !important;
        padding: 20px 15px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .rt-service-box.style-1 {
        height: auto !important;
        min-height: 245px !important;
        padding: 24px 18px !important;
    }
}



@media (min-width: 768px) and (max-width: 1024px) {
    .latest-product-section-style-1
    .row.rt-gutter-20 > .col-xl-3.order-2.order-xl-1 {
        display: none !important;
    }
}



/* Prescription upload after Order Notes */

.ebs-prescription-upload {
    margin-top: 25px;
    margin-bottom: 20px;
    width: 100%;
}

.ebs-prescription-upload table {
    width: 100%;
}

.ebs-prescription-upload label {
    font-weight: 500;
    font-size: 15px;
}


/* Medimall Footer Contact Icons Fix */

.footer-widget.widget_medimall_contact .contact-list > li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    height: auto;
    padding-left: 60px;
    margin-bottom: 12px;
}

/* Correct icon positioning */
.footer-widget.widget_medimall_contact .contact-list > li > .icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    margin: 0;
    flex-shrink: 0;
}

/* Contact information text */
.footer-widget.widget_medimall_contact .contact-list > li > .info {
    display: block;
    width: 100%;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Remove unnecessary spacing after last item */
.footer-widget.widget_medimall_contact .contact-list > li:last-child {
    margin-bottom: 0;
}
