/* Base Styles */
.mahak-pricing-table {
    direction: rtl;
    text-align: right;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0;
    visibility: hidden;
    position: relative;
}

.mahak-pricing-table * {
    background: none;
    border: none;
    box-sizing: content-box !important;
    letter-spacing: normal !important;
    margin: 0;
    outline: none;
    padding: 0;
    text-transform: none;
    text-decoration: none !important;
    -webkit-hyphens: none;
    hyphens: none;
    word-break: normal;
    word-break: break-word;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-font-smoothing: antialiased;
}

.mahak-pricing-table.mahak-pricing-clean {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    visibility: visible;
}

/* Column Styles */
.mahak-pricing-col-wrap {
    display: inline-block !important;
    box-sizing: border-box !important;
    float: none !important;
    font-size: 12px;
    line-height: 16px;
    padding: 20px 0;
    position: relative;
    transition: padding 0.2s linear, margin 0.2s linear !important;
    vertical-align: top !important;
    width: calc(var(--column-width, 16.66) * 1%) !important;
}

.mahak-pricing-col-wrap:first-child {
    margin-left: 0;
}

.mahak-pricing-col-wrap.mahak-pricing-hover {
    z-index: 2;
}

.mahak-pricing-col {
    border: solid 1px #ebebeb;
    border-bottom: solid 2px #d3d3d3;
    border-top-width: 2px;
    position: relative;
    top: 0;
    transition: margin-top 0.2s linear, top 0.2s linear, box-shadow 0.2s linear;
}

.mahak-pricing-col-inner {
    box-shadow: 0 0 20px -2px rgba(0,0,0,0);
    float: none !important;
    overflow: hidden;
    padding: 0 !important;
    transition: box-shadow 0.2s linear;
    background: #fff;
}

.mahak-pricing-table.mahak-pricing-enlarge-current .mahak-pricing-col-wrap.mahak-pricing-hover .mahak-pricing-col-inner {
    box-shadow: 0 0 20px -2px rgba(0,0,0,0.25);
}

/* Header Styles */
.mahak-pricing-header {
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 100%;
    background: linear-gradient(to bottom, var(--header-gradient-start), var(--header-gradient-end));
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 120px;
    justify-content: space-between;
}

.mahak-pricing-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-bottom: 0;
}

.mahak-pricing-header h3 {
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.mahak-pricing-header h3 small {
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.mahak-pricing-coin-wrap {
    font-size: 32px;
    height: 80px;
    width: 80px;
    position: relative;
    z-index: 1;
}

.mahak-pricing-coin-wrap:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 1px;
    top: 1px;
    border-radius: 50%;
    background: #ffffff;
}

.mahak-pricing-coinf {
    border: solid 2px #9D9D9D;
    border-radius: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
}

.mahak-pricing-coinf div {
    z-index: 1;
    text-align: center;
}

.mahak-pricing-coinf span {
    font-size: 13px !important;
    line-height: 15px !important;
    font-weight: bold !important;
}

.mahak-pricing-coinf small {
    display: block;
    font-size: 12px;
    line-height: 16px;
    margin-bottom: -5px;
    margin-top: 3px;
}

/* Body Styles */
.mahak-pricing-body {
    border-bottom: solid 1px #ebebeb;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    text-align: center;
    width: 100%;
}

.mahak-pricing-body > li {
    border-top: solid 1px #fff;
    box-sizing: border-box !important;
    display: table !important;
    position: relative;
    min-height: 17px;
    line-height: 16px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 14px 5px !important;
    table-layout: fixed;
    text-align: inherit !important;
    width: 100%;
    background: var(--body-odd-row-bg);
    color: var(--body-text-color);
}

.mahak-pricing-body > li.mahak-pricing-even {
    background: var(--body-even-row-bg);
}

.mahak-pricing-body > li .mahak-pricing-body-cell {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    position: relative;
    z-index: 1;
}

.mahak-pricing-col-wrap.mahak-pricing-hover .mahak-pricing-body > li {
    color: var(--body-text-hover-color);
}

/* Tooltip Styles */
.mahak-pricing-tooltip {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.mahak-pricing-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.mahak-pricing-tooltip-content {
    background: #1a1a1a;
    border: 2px solid var(--ribbon-bg-color);
    border-radius: 6px;
    color: #fff !important;
    padding: 10px 15px;
    text-align: justify;
    font-size: 12px;
    line-height: 1.5;
    width: 200px;
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mahak-pricing-tooltip-content:before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--ribbon-bg-color);
}

/* Footer Styles */
.mahak-pricing-footer-wrap {
    padding: 15px 0;
    display: flex;
    justify-content: center;
}

.mahak-pricing-footer {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mahak-pricing-btn {
    backface-visibility: hidden;
    border-radius: 4px;
    box-sizing: border-box !important;
    cursor: pointer;
    display: inline-block;
    font-family: inherit !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    overflow: hidden;
    position: relative;
    vertical-align: middle;
    background: linear-gradient(to bottom, var(--button-gradient-start), var(--button-gradient-end));
    border: 1px solid var(--button-border-color);
}

.mahak-pricing-btn:hover {
    background: linear-gradient(to bottom, var(--button-gradient-end), var(--button-gradient-start));
}

.mahak-pricing-btn-small {
    padding: 6px 12px !important;
    font-size: 12px !important;
}

.mahak-pricing-btn-medium {
    padding: 8px 16px !important;
    font-size: 14px !important;
}

.mahak-pricing-btn-large {
    padding: 10px 20px !important;
    font-size: 16px !important;
}

/* Ribbon Styles */
.mahak-pricing-ribbon-left,
.mahak-pricing-ribbon-right {
    background: var(--ribbon-bg-color);
    position: absolute;
    top: 20px;
    width: 80px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    z-index: 1;
}

.mahak-pricing-ribbon-left {
    left: -20px;
    transform: rotate(-45deg);
}

.mahak-pricing-ribbon-right {
    right: -20px;
    transform: rotate(45deg);
}

.mahak-pricing-ribbon-text span {
    color: var(--ribbon-text-color) !important;
    font-size: 12px !important;
}

/* Icons */
span[class*="mahak-pricing-icon"] {
    background-position: 50% 50% no-repeat;
    display: inline-block;
    height: 16px;
    margin: 0 3px -4px;
    width: 16px;
}

.mahak-pricing-icon-green-ok {
    background: url('/wp-content/plugins/shopmahak-core/assets/images/icons/icon_green_ok.png') 50% 50% no-repeat;
}

.mahak-pricing-icon-red-cross {
    background: url('/wp-content/plugins/shopmahak-core/assets/images/icons/icon_red_cross.png') 50% 50% no-repeat;
}

/* Column Widths (Fallback for older instances) */
.mahak-pricing-1col .mahak-pricing-col-wrap { width: 100% !important; }
.mahak-pricing-2cols .mahak-pricing-col-wrap { width: 50% !important; }
.mahak-pricing-3cols .mahak-pricing-col-wrap { width: 33.33% !important; }
.mahak-pricing-4cols .mahak-pricing-col-wrap { width: 25% !important; }
.mahak-pricing-5cols .mahak-pricing-col-wrap { width: 20% !important; }
.mahak-pricing-6cols .mahak-pricing-col-wrap { width: 16.66% !important; }
.mahak-pricing-7cols .mahak-pricing-col-wrap { width: 14.285% !important; }
.mahak-pricing-8cols .mahak-pricing-col-wrap { width: 12.5% !important; }
.mahak-pricing-9cols .mahak-pricing-col-wrap { width: 11.11% !important; }
.mahak-pricing-10cols .mahak-pricing-col-wrap { width: 10% !important; }

/* Swiper Styles for Mobile */
@media (max-width: 768px) {
    .mahak-pricing-table.swiper {
        width: 100% !important;
        overflow: hidden !important;
        padding: 10px !important;
    }

    .mahak-pricing-table .swiper-wrapper {
        display: flex !important;
        align-items: stretch !important;
    }

    .mahak-pricing-table .swiper-slide.mahak-pricing-col-wrap {
        width: calc(90% * var(--column-width, 16.66) / 100) !important;
        max-width: 350px !important;
        min-width: 280px !important;
        margin-left: 0 !important;
        padding: 15px 10px !important;
        display: inline-block !important;
        box-sizing: border-box !important;
    }

    .mahak-pricing-header {
        padding: 15px !important;
        height: 100px !important;
    }

    .mahak-pricing-header h3 {
        font-size: 14px !important;
        line-height: 18px !important;
    }

    .mahak-pricing-header h3 small {
        font-size: 10px !important;
    }

    .mahak-pricing-coin-wrap {
        font-size: 24px !important;
        height: 60px !important;
        width: 60px !important;
    }

    .mahak-pricing-coinf span {
        font-size: 11px !important;
        line-height: 13px !important;
    }

    .mahak-pricing-coinf small {
        font-size: 10px !important;
        line-height: 14px !important;
    }

    .mahak-pricing-body > li {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    .mahak-pricing-btn {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }

    .mahak-pricing-tooltip-content {
        width: 80% !important;
        font-size: 11px !important;
        padding: 8px 12px !important;
    }

    /* Progress Indicator Styles */
    .mahak-swiper-progress {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 15px;
        height: 12px;
        position: relative;
    }

    .mahak-swiper-progress .progress-dot {
        width: 8px;
        height: 8px;
        background: #d3d3d3;
        border-radius: 50%;
        margin: 0 6px;
        transition: all 0.3s ease;
        position: relative;
        z-index: 2;
    }

    .mahak-swiper-progress .progress-dot.active {
        width: 12px;
        height: 12px;
        background: linear-gradient(to bottom, var(--header-gradient-start), var(--header-gradient-end));
        transform: scale(1.2);
    }

    .mahak-swiper-progress .progress-line {
        position: absolute;
        top: 50%;
        left: 12px;
        right: 12px;
        height: 2px;
        background: #d3d3d3;
        transform: translateY(-50%);
        z-index: 1;
    }
}