/* ============================================================
   Pricing Table Pro – v1.2
   ============================================================ */

.ptp-wrap {
    width: 100%;
    padding: 30px 15px;
    box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────────── */
.ptp-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.ptp-header-left { flex: 1; min-width: 200px; }

.ptp-subtitle {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.ptp-main-title {
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* ── Toggle ─────────────────────────────────────────────── */
.ptp-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
}

.ptp-toggle-label {
    font-size: 13px;
    color: #888;
    transition: color 0.2s, font-weight 0.2s;
}

.ptp-toggle-label.active {
    color: #222;
    font-weight: 600;
}

.ptp-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
    flex-shrink: 0;
}

.ptp-toggle-switch input { opacity: 0; width: 0; height: 0; }

.ptp-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: background 0.3s;
}

.ptp-slider::before {
    content: '';
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.ptp-toggle-switch input:checked + .ptp-slider {
    background: var(--toggle-color, #222);
}

.ptp-toggle-switch input:checked + .ptp-slider::before {
    transform: translateX(22px);
}

/* ── Grid ───────────────────────────────────────────────── */
.ptp-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: 20px;
    align-items: start;
}

/* ── Card ───────────────────────────────────────────────── */
.ptp-card {
    position: relative;
    padding: 32px 28px;
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ptp-card:hover { transform: translateY(-4px); }

/* ── Badge ──────────────────────────────────────────────── */
.ptp-badge {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ── Plan Name ──────────────────────────────────────────── */
.ptp-plan-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* ── Price Block ────────────────────────────────────────── */
.ptp-price-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: opacity 0.15s ease;
}

.ptp-price-row {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex-wrap: wrap;
}

.ptp-currency {
    font-size: 18px;
    font-weight: 700;
    align-self: flex-start;
    margin-top: 8px;
}

.ptp-price {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.ptp-period {
    font-size: 14px;
    font-weight: 400;
    margin-left: 2px;
    opacity: 0.75;
}

.ptp-price-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
}

.ptp-original-price {
    text-decoration: line-through;
    opacity: 1;
}

.ptp-original-price,.ptp-save-label{
	font-size: 15px;
    text-decoration: line-through;
}

.ptp-save-label { opacity: 1; }

.ptp-save-highlight {
    display: inline-block;
    color: #fff;
    background: #e67e22;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 11px;
}

.ptp-discount {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #e74c3c;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.04em;
}

/* ── Button Group ────────────────────────────────────────── */
.ptp-btn-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

/* ── Button ─────────────────────────────────────────────── */
.ptp-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.25s ease, opacity 0.2s ease;
    border: none;
}

.ptp-btn:hover { opacity: 0.88; }

/* ── Features ───────────────────────────────────────────── */
.ptp-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.ptp-feat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 0;
    border-bottom: 1px solid rgba(128,128,128,0.15);
}

.ptp-feat:last-child { border-bottom: none; }

.ptp-feat-icon {
    flex-shrink: 0;
    font-size: 14px;
    width: 18px;
    text-align: center;
    margin-top: 1px;
}

.ptp-feat.enabled .ptp-feat-icon  { color: #27ae60; }
.ptp-feat.disabled .ptp-feat-icon { color: #888; }
.ptp-feat.disabled                { opacity: 0.45; }
.ptp-feat-text                    { flex: 1; }

/* ── Feature Link ───────────────────────────────────────── */
.ptp-feat-link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

/* ── Feature Tooltip ────────────────────────────────────── */
.ptp-tooltip-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 6px;
    border-radius: 50%;
    background: rgba(128,128,128,0.28);
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
    outline: none;
}

.ptp-tooltip-icon::before {
    content: 'i';
}

.ptp-tooltip-box {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: normal;
    width: max-content;
    max-width: 220px;
    text-align: left;
    z-index: 30;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.ptp-tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.ptp-tooltip-icon.ptp-tooltip-active .ptp-tooltip-box { display: block; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .ptp-header     { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .ptp-card       { min-height: unset !important; } /* override JS equal height on mobile */
}
