/* MySave Compare Packages — Elementor widget */

.ypc-wrap {
    --ypc-brand: #20A748;
    --ypc-brand-dark: #178a3a;
    --ypc-accent: #FBE418;
    --ypc-check: #20A748;
    --ypc-cross: #D1D5DB;
    --ypc-radius: 20px;
    --ypc-card-bg: #ffffff;
    --ypc-cta-bg: #20A748;
    --ypc-cta-fg: #ffffff;
    --ypc-cta-radius: 999px;
    --ypc-line: #E5E7EB;
    --ypc-muted: #6B7280;
    --ypc-text: #111827;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

.ypc-heading {
    margin: 0 0 8px;
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ypc-text);
}

.ypc-subheading {
    margin: 0 0 28px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--ypc-muted);
}

.ypc-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--ypc-radius);
    background:
        linear-gradient(180deg, rgba(32, 167, 72, 0.06), transparent 120px),
        #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(32, 167, 72, 0.12);
}

.ypc-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.ypc-table th,
.ypc-table td {
    vertical-align: middle;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ypc-line);
    text-align: center;
    background: #fff;
}

.ypc-label-col,
.ypc-sticky-col {
    width: 200px;
    text-align: left !important;
    font-weight: 600;
    color: #374151;
    background: #fafafa;
}

.ypc-sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 4px 0 12px rgba(15, 23, 42, 0.04);
}

.ypc-pkg-col {
    width: auto;
}

.ypc-pkg-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 8px 4px 4px;
}

.ypc-pkg-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ypc-brand-dark);
    letter-spacing: 0.04em;
}

.ypc-pkg-media {
    width: 140px;
    height: 140px;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.ypc-pkg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ypc-pkg-price {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    color: var(--ypc-text);
    line-height: 1.1;
}

.ypc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: var(--ypc-cta-radius);
    background: var(--ypc-cta-bg);
    color: var(--ypc-cta-fg) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 18px rgba(32, 167, 72, 0.28);
}

.ypc-cta:hover {
    background: var(--ypc-brand-dark);
    transform: translateY(-1px);
    color: #fff !important;
}

.ypc-section-row td {
    text-align: left !important;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--ypc-brand), var(--ypc-brand-dark)) !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 0;
    letter-spacing: 0.01em;
}

.ypc-table tbody tr:hover td:not(.ypc-section-row td),
.ypc-table tbody tr:hover th {
    background: rgba(32, 167, 72, 0.03);
}

.ypc-table .is-highlight {
    background: rgba(251, 228, 24, 0.12) !important;
}

.ypc-pkg-col.is-highlight .ypc-pkg-card {
    position: relative;
}

.ypc-pkg-col.is-highlight .ypc-pkg-name {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--ypc-accent);
    color: #111827;
}

.ypc-text,
.ypc-value {
    font-size: 14px;
    line-height: 1.45;
    color: #374151;
    font-weight: 600;
}

.ypc-empty-cell {
    color: #9CA3AF;
}

.ypc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
}

.ypc-icon svg {
    width: 20px;
    height: 20px;
}

.ypc-icon-yes {
    color: var(--ypc-check);
    background: rgba(32, 167, 72, 0.12);
}

.ypc-icon-no {
    color: var(--ypc-cross);
    background: #F3F4F6;
}

.ypc-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1.5px solid var(--ypc-brand);
    background: #fff;
    color: var(--ypc-brand-dark) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ypc-download svg {
    width: 18px;
    height: 18px;
}

.ypc-download:hover {
    background: var(--ypc-brand);
    color: #fff !important;
}

.ypc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ypc-empty {
    padding: 24px;
    border-radius: 16px;
    background: #f9fafb;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 768px) {
    .ypc-subheading {
        margin-bottom: 18px;
        font-size: 0.95rem;
    }

    .ypc-pkg-media {
        width: 110px;
        height: 110px;
    }

    .ypc-label-col,
    .ypc-sticky-col {
        width: 140px;
        font-size: 13px;
    }

    .ypc-table th,
    .ypc-table td {
        padding: 12px 10px;
    }
}
