/* Minimal CSS for new pricing cards layout */

.pt-root {
    margin-top: 24px;
}

.pt-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px auto;
    width: 200px;
}

.js-currency-select {
    margin-left: 24px;
    font-size: 1.1em;
}

.pt-switch { justify-self: center; }

/* Custom toggle switch to match provided design */
.pt-switch {
    position: relative;
    display: inline-block;
    width: 46px; /* track width */
    height: 24px; /* track height */
    cursor: pointer;
}
.pt-switch input {
    position: relative;
    opacity: 0;
    width: 46px;
    height: 24px;
    cursor: pointer;
}
.pt-switch::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #c9c9c9; /* off track */
    border-radius: 999px;
    transition: background-color .2s ease;
}
.pt-switch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 2px;
    transform: translateY(-50%);
    width: 20px; /* knob size */
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
    transition: left .2s ease;
}
/* Use :has() for modern browsers to style based on input state; fallback supported by JS classes on root */
.pt-switch:has(input:checked)::before { background: #0bba68; }
.pt-switch:has(input:checked)::after { left: 24px; }

/* Fallback based on root state toggled by JS */
.pt-root.is-yearly .pt-switch::before { background: #0bba68; }
.pt-root.is-yearly .pt-switch::after { left: 24px; }

.pt-yearly-label { white-space: nowrap; }
.pt-yearly-label .pt-save { color: #0bba68; }

.pt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* Always 3 columns as requested */

.pt-card {
    position: relative;
    border-radius: 8px;
    padding: 16px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 70% 10%;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.2), 0px 1px 1px rgba(0,0,0,0.14), 0px 2px 1px -1px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.12);
    transition: background-position 0.4s ease-in-out;
}

.pt-card:hover { background-position: top right; }

.pt-card h3, .pt-free h3{ margin-top: 2px; font-weight:700;}

.pt-card__price { display:flex; align-items: baseline; justify-content: center; gap :0.25em; text-align: center; }
.pt-card__price h4 { font-size: 53px; margin-top: 5px; font-weight:700; }
.css-i2cehc-selectedPlanPriceMain {
    font-size: 40px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin: 8px 0 12px;
}

.pt-currency {
    font-size: 0.5em;
    vertical-align: super;
    margin-right: 2px;
}
.pt-price-suffix { font-size: 0.45em; color: #777; margin-left: 2px; }

.pt-recurrence { text-align: center; color: #777; margin: 8px auto 0; width: 100%; }
.pt-recurrence--yearly { display: none; }
.pt-price--yearly { display: none; }
.pt-root.is-yearly .pt-price--monthly { display: none; }
.pt-root.is-yearly .pt-price--yearly { display: inline; }
.pt-root.is-yearly .pt-recurrence--monthly { display: none; }
.pt-root.is-yearly .pt-recurrence--yearly { display: block; }

.pt-select-container { margin-bottom: 12px; }

/* Custom dropdown */
.pt-dropdown { position: relative; user-select: none; }
.pt-dropdown__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
    cursor: pointer;
}
.pt-dropdown__toggle:hover { border-color: #0bba68; box-shadow: 0 0 0 2px rgba(11,186,104,0.15) inset; }
.pt-dropdown__label { display: flex; flex-direction: column; }
.pt-dd-line1 { font-weight: 600; color: #000; }
.pt-dd-line2 { font-size: 12px; color: #555; }
.pt-dropdown__arrow {
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #000; /* caret */
    opacity: .6;
    transition: transform .15s ease;
}
.pt-dropdown.is-open .pt-dropdown__arrow { transform: rotate(180deg); }

.pt-dropdown__menu {
    position: absolute;
    z-index: 10;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    max-height: 240px;
    overflow: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: none;
}
.pt-dropdown.is-open .pt-dropdown__menu { display: block; }

.pt-dropdown__option {
    padding: 10px 12px;
    cursor: pointer;
}
.pt-dropdown__option:hover { background: #f2fbf7; }
.pt-dropdown__option.is-selected { background: #e7f7ef; }

.pt-list { margin: 24px 0; padding: 0; list-style: none; color: #000; }
.pt-list li { margin: 4px 0; }
.pt-feature-section { font-weight: 700; margin-top: 15px!important; }
.pt-feature-item { display: grid; grid-template-columns: 18px 1fr; align-items: center; column-gap: 8px; }
.pt-feature-icon { color: rgb(96, 221, 143); line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.pt-feature-icon--risk { color: #e53935; }
.pt-feature-text { display: block; }

.pt-free {
    background-image: url(https://www.img.vision/wp-content/plugins/wp-paddle-pricing-table/assets/img/img-vision-abstract-background.svg);
    transition: background-position 0.4s ease-in-out;
    margin: 72px 12px 12px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 10%;
    padding: 16px;
    border-radius: 8px;
}




.pt-free-img-example { float: right; width: 550px; margin:0; }

.pt-small { color: #777; font-size: 14px; text-align: center; margin-top: 12px; }

/* Mobile responsiveness: stack columns on small screens */
@media (max-width: 768px) {
    .pt-grid {
        grid-template-columns: 1fr;
    }

    .pt-free {
        grid-template-columns: 1fr;
    }
}