/* existing plan styles … */

.ppp-currency-dropdown-wrap {
    display: inline-block;
    margin-bottom: 1rem;
}

.ppp-currency-select {
    min-width: 100px;
    padding: 4px 8px;
}

/* Currency dropdown wrapper */
.ppp-currency-dropdown-wrap {
    position: relative;
    display: inline-block;
}

/* Core dropdown */
.ppp-currency-dropdown {
    position: relative;
    min-width: 100px;
    font-size: 14px;
}

/* Toggle button */
.ppp-currency-toggle {
    width: 100%;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.ppp-currency-toggle:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    background-color: #f9fafb;
}

.ppp-currency-toggle:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Flag in toggle */
.ppp-currency-flag img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
}

/* Selected text */
.ppp-currency-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #374151;
}

/* Caret icon */
.ppp-currency-caret {
    font-size: 10px;
    color: #6b7280;
}

/* List container */
.ppp-currency-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    max-height: 260px;
    overflow-y: auto;
    z-index: 999;
    display: none;
}

/* Open state */
.ppp-currency-dropdown.is-open .ppp-currency-list {
    display: block;
}

/* Options */
.ppp-currency-option {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.ppp-currency-option:hover {
    background: #eff6ff;
}

/* Flag in options */
.ppp-currency-option-flag img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
}

/* Utility: hide default list bullets */
.ppp-currency-list,
.ppp-currency-list li {
    margin: 0;
}

.header-section .topbar {
    z-index: 11;
}

.ppp-d-flex {
    display: flex;
}

/* ==========================================================================
   Theme palette – mirrors the CloudJogi home-page pricing widget
   (.cj-pricing in the child theme). Override these on .ppp-plans / :root
   to re-skin every design at once.
   ========================================================================== */
.ppp-plans {
    --ppp-accent: #ff5a14;
    --ppp-accent-hover: #f4510b;
    --ppp-accent-soft: #fff1ea;
    --ppp-accent-wash: #fff0e9;
    --ppp-save: #128a45;
    --ppp-save-soft: #e7f7ed;
    --ppp-heading: #06090f;
    --ppp-text: #0b1020;
    --ppp-feature: #374151;      /* feature list text – dark grey */
    --ppp-muted: #61708a;
    --ppp-border: #e4e9ef;
    --ppp-btn-dark: #111111;
}

/* --- Cards ---------------------------------------------------------------- */
.ppp-plans .pricing-column {
    border: 1px solid var(--ppp-border);
    border-radius: 9px;
}

.ppp-plans .pricing-column:has(.popular-badge) {
    border-color: var(--ppp-accent);
}

.ppp-plans .plan_title {
    color: var(--ppp-heading);
    font-weight: 800;
}

/* --- Price + discount row (design 1) -------------------------------------- */
.ppp-plans .ppp-main-price {
    margin: 14px 0 0;
    color: var(--ppp-heading);
    font-size: 39px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.4px;
}

.ppp-plans .ppp-main-price span {
    margin-left: 4px;
    color: #34455f;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
}

.ppp-plans .ppp-discount-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 31px;
    margin-top: 11px;
}

.ppp-plans .ppp-price-strike {
    color: #526079;
    font-size: 14px;
}

.ppp-plans .ppp-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 7px;
    background: var(--ppp-accent-soft);
    color: var(--ppp-accent);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

/* --- Buttons (same look as .cj-plan-btn on the home page) ------------------ */
.ppp-plans a.template-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 18px;
    border: 2px solid var(--ppp-btn-dark);
    border-radius: 4px;
    background: #fff;
    color: #0a0d12;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    box-shadow: none;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.ppp-plans a.template-btn:hover,
.ppp-plans a.template-btn:focus-visible {
    background: var(--ppp-btn-dark);
    border-color: var(--ppp-btn-dark);
    color: #fff;
}

.ppp-plans a.template-btn.primary-btn {
    background: var(--ppp-accent);
    border-color: var(--ppp-accent);
    color: #fff;
}

.ppp-plans a.template-btn.primary-btn:hover,
.ppp-plans a.template-btn.primary-btn:focus-visible {
    background: var(--ppp-accent-hover);
    border-color: var(--ppp-accent-hover);
    color: #fff;
}

.ppp-plans a.template-btn.btn-small {
    min-height: 44px;
    font-size: 15px;
}

/* --- Feature list: dark grey text, theme-accent ticks --------------------- */
.ppp-plans .ppp-features,
.ppp-plans .feature-list {
    list-style: none;
    padding-left: 0;
}

.ppp-plans .ppp-features li,
.ppp-plans .ppp-features li span,
.ppp-plans .feature-list li,
.ppp-plans .feature-list li span {
    color: var(--ppp-feature);
    font-size: 14px;
    line-height: 1.5;
}

/* Ticks without an admin-chosen colour follow the theme accent (inline colour still wins). */
.ppp-plans .ppp-features li i,
.ppp-plans .feature-list li i {
    color: var(--ppp-accent);
}

/* --- Billing-term dropdown (built by plans-prices.js from .ppp-term-select) - */
.ppp-plans .ppp-term-select {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 2px solid var(--ppp-accent);
    border-radius: 8px;
    background-color: #fff;
    color: var(--ppp-text);
    font-weight: 700;
}

.ppp-plans .ppp-term-select.is-enhanced {
    display: none !important;
}

.ppp-term-dd {
    position: relative;
    width: 100%;
    margin: 14px 0 10px;
    text-align: left;
}

.ppp-term-caption {
    display: block;
    margin: 0 0 7px;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.ppp-term-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 2px solid var(--ppp-accent, #ff5a14);
    border-radius: 8px;
    background: #fff;
    color: var(--ppp-text, #0b1020);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(255, 90, 20, 0.14);
    transition: box-shadow .15s ease, border-color .15s ease;
}

.ppp-term-toggle:hover,
.ppp-term-toggle.is-open {
    box-shadow: 0 4px 16px rgba(255, 90, 20, 0.24);
}

.ppp-term-toggle:focus-visible {
    outline: 3px solid rgba(255, 90, 20, 0.35);
    outline-offset: 2px;
}

.ppp-term-label {
    margin-right: auto;
}

.ppp-term-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 10px;
    border-radius: 7px;
    background: var(--ppp-save-soft, #e7f7ed);
    color: var(--ppp-save, #128a45);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.ppp-term-toggle > .ppp-term-badge {
    margin-left: 10px;
}

.ppp-term-chevron {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin: -4px 4px 0 20px;
    border-right: 2px solid var(--ppp-accent, #ff5a14);
    border-bottom: 2px solid var(--ppp-accent, #ff5a14);
    transform: rotate(45deg);
    transition: transform .2s ease, margin .2s ease;
}

.ppp-term-toggle.is-open .ppp-term-chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}

.ppp-term-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    min-width: 220px;
    margin: 0;
    padding: 7px;
    list-style: none;
    border: 1px solid #e6eaf0;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(17, 24, 39, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.ppp-term-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ppp-term-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ppp-term-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #253149;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.ppp-term-option:hover,
.ppp-term-option:focus-visible,
.ppp-term-option.is-selected {
    background: var(--ppp-accent-wash, #fff0e9);
    outline: 0;
}

.ppp-term-option.is-selected::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--ppp-accent, #ff5a14);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.ppp-term-option-label {
    font-weight: 600;
}

.ppp-term-option-price {
    margin-left: auto;
    color: var(--ppp-muted, #61708a);
    white-space: nowrap;
}

.ppp-term-option .ppp-term-badge {
    margin-left: 0;
}

@media (max-width: 767px) {
    .ppp-plans .ppp-main-price {
        font-size: 34px;
    }
}
/* --- Shared billing-term bar (design 1): top-right above the cards ---------- */
.ppp-term-bar-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.ppp-term-bar {
    flex: 0 0 280px;
    width: 280px;
    max-width: 100%;
}

.ppp-term-bar .ppp-term-dd {
    margin: 0;
}

.ppp-term-unavailable {
    margin: 18px 0 8px;
    padding: 14px 16px;
    border: 1px dashed var(--ppp-border, #e4e9ef);
    border-radius: 8px;
    color: var(--ppp-muted, #61708a);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 767px) {
    .ppp-term-bar {
        flex-basis: 100%;
        width: 100%;
    }
}

/* --- Design 6 (table rows): compact term dropdown + one-line Order Now ------ */
.ppp-plans--design6 .ppp-term-dd {
    max-width: 220px;
    margin: 0 0 8px;
}

/* td/span rules in the theme inflate these, so pin the sizes here. */
.ppp-plans--design6 .ppp-term-caption {
    margin-bottom: 5px;
    font-size: 13px !important;
    line-height: 1.2;
    font-weight: 600;
}

.ppp-plans--design6 .ppp-term-toggle {
    min-height: 38px;
    padding: 0 12px;
    border-width: 1.5px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
}

.ppp-plans--design6 .ppp-term-label,
.ppp-plans--design6 .ppp-term-option-label,
.ppp-plans--design6 .ppp-term-option-price {
    font-size: 14px !important;
    line-height: 1.4;
}

.ppp-plans--design6 .ppp-term-badge {
    min-height: 22px;
    padding: 3px 8px;
    font-size: 11px;
}

.ppp-plans--design6 .ppp-term-chevron {
    width: 8px;
    height: 8px;
    margin-left: 12px;
}

.ppp-plans--design6 .ppp-term-option {
    min-height: 36px;
    font-size: 14px;
}

.ppp-plans--design6 a.template-btn {
    display: inline-flex;
    width: auto;
    min-width: 130px;
    min-height: 46px;
    padding: 10px 24px;
    font-size: 15px;
    white-space: nowrap;
}
