/* =============================================================================
   WEW Pricing Table — Frontend Styles
   ============================================================================= */

/* ── Container ─────────────────────────────────────────────────────────────── */
.wew-pricing-table {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 300ms ease;
    overflow: hidden;
}

/* ── Badge ────────────────────────────────────────────────────────── */
.wew-pt-badge {
    position: absolute;
    top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
    padding: 5px 14px;
    border-radius: 20px;
    background-color: transparent;
    /* managed by Elementor control */
    color: #ffffff;
    pointer-events: none;
    z-index: 2;
}

.wew-pt-badge--left {
    left: 16px;
}

.wew-pt-badge--right {
    right: 16px;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.wew-pt-header {
    margin-bottom: 24px;
    box-sizing: border-box;
}

.wew-pt-header-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.wew-pt-header-icon i {
    font-size: 50px;
}

.wew-pt-header-icon svg {
    width: 50px;
    height: 50px;
}

.wew-pt-header-image {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.wew-pt-header-image img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.wew-pt-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.wew-pt-subtitle {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.75;
    line-height: 1.5;
}

/* ── Price ──────────────────────────────────────────────────────────────────── */
.wew-pt-price-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 4px;
    margin-bottom: 24px;
    padding: 16px 24px;
    border-radius: 8px;
}

.wew-pt-original-price {
    width: 100%;
    /* occupies the entire row → stays above the main price */
    display: block;
    text-decoration: line-through;
    font-size: 1rem;
    opacity: 0.6;
    margin-bottom: 2px;
    line-height: 1.2;
}

.wew-pt-currency {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    padding-top: 8px;
}

.wew-pt-price-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.wew-pt-duration {
    font-size: 0.9rem;
    opacity: 0.7;
    align-self: flex-end;
    padding-bottom: 6px;
}

/* ── Features ───────────────────────────────────────────────────────────────── */
.wew-pt-features-wrap {
    flex: 1;
    margin-bottom: 24px;
    /* centers the <ul> block inside the box */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wew-pt-features {
    margin: 0;
    line-height: 1.7;
}

.wew-pt-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    /* no fixed width: the <ul> shrinks to the width of its longest item */
    align-self: center;
    /* centered by default */
}

/* The alignment control moves the entire <ul> block */
.wew-pt-features-list.wew-pt-list-align-left {
    align-self: flex-start;
}

.wew-pt-features-list.wew-pt-list-align-center {
    align-self: center;
}

.wew-pt-features-list.wew-pt-list-align-right {
    align-self: flex-end;
}

.wew-pt-feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* icon + text always to the left inside the <ul> */
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.wew-pt-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wew-pt-feature-icon i {
    font-size: 14px;
}

.wew-pt-feature-icon svg {
    width: 14px;
    height: 14px;
}

.wew-pt-feature-text {
    /* No flex-grow: icon + text stay tightly together, gap controls spacing */
    flex-shrink: 1;
}

/* ── Tooltip ─────────────────────────────────────────────────────────────────── */
.wew-pt-tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    color: inherit;
    opacity: 0.6;
    flex-shrink: 0;
}

.wew-pt-tooltip-text {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.4;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease;
    z-index: 99;
}

.wew-pt-tooltip-trigger:hover .wew-pt-tooltip-text {
    opacity: 1;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.wew-pt-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.wew-pt-buttons--column {
    flex-direction: column;
}

.wew-pt-buttons--row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.wew-pt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 250ms ease;
    line-height: 1;
    text-align: center;
}

.wew-pt-buttons--row .wew-pt-btn {
    flex: 1 1 auto;
}

.wew-pt-btn-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.wew-pt-btn-icon i,
.wew-pt-btn-icon svg {
    font-size: 1em;
    width: 1em;
    height: 1em;
}

/* Default visual fallbacks (overridden by Elementor controls) */
.wew-pt-btn1 {
    background-color: #4385d8;
    color: #ffffff;
}

.wew-pt-btn1:hover {
    background-color: #5649c0;
    color: #ffffff;
}

.wew-pt-btn2 {
    background-color: transparent;
    color: inherit;
    border-color: currentColor;
}

.wew-pt-btn2:hover {
    opacity: 0.8;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .wew-pt-buttons--row {
        flex-direction: column;
    }

    .wew-pt-price-amount {
        font-size: 2.4rem;
    }
}