/* Same plan presentation in the editor preview and Account. */
:is(body.jta-design-v112,body.jta-admin-v112) .jta-plan-card{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:24px;border:1px solid #dfdfdf;border-radius:16px;background:#fff;box-shadow:none;min-width:0;text-align:left;font-family:Arial,sans-serif}
:is(body.jta-design-v112,body.jta-admin-v112) .jta-plan-card.is-current{border:2px solid #7AB8FA;padding:23px;background:linear-gradient(#f1f6ff,#fff 160px)}
.jta-plan-card-head{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:80px}
:is(body.jta-design-v112,body.jta-admin-v112) .jta-plan-card h3{margin:0;font:700 24px/1.25 Arial,sans-serif;overflow-wrap:anywhere}
:is(body.jta-design-v112,body.jta-admin-v112) .jta-plan-card .jta-plan-current{display:inline-flex;align-items:center;gap:8px;margin:0;padding:6px 10px;border-radius:8px;background:#7AB8FA;color:#fff;font:700 14px/1.5 Arial,sans-serif}
.jta-plan-check{display:inline-block;width:20px;height:20px;background:currentColor;mask:center/20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E")}
:is(body.jta-design-v112,body.jta-admin-v112) .jta-plan-card .jta-plan-price{margin:0;font:700 32px/1.2 Arial,sans-serif;font-variant-numeric:tabular-nums;color:#000}
.jta-plan-card .jta-plan-price strong{font:inherit}.jta-plan-card .jta-plan-period{font:400 16px/1.5 Arial,sans-serif;color:#636363;white-space:nowrap}
:is(body.jta-design-v112,body.jta-admin-v112) .jta-plan-card .jta-plan-tax{font:400 14px/1.5 Arial,sans-serif;color:#636363;margin:-10px 0 0}
.jta-plan-allowance{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;padding:16px 0;border-top:1px solid #dfdfdf;border-bottom:1px solid #dfdfdf}
.jta-plan-allowance strong{font:700 28px/1.2 Arial,sans-serif;font-variant-numeric:tabular-nums}.jta-plan-allowance span{font:400 16px/1.5 Arial,sans-serif}
:is(body.jta-design-v112,body.jta-admin-v112) .jta-plan-card :is(.jta-plan-description p,.jta-plan-description li,.jta-plan-facts li){font:400 16px/1.6 Arial,sans-serif;text-align:left;overflow-wrap:anywhere}
.jta-plan-description :is(p,ul,ol){margin:0 0 12px}.jta-plan-description>:last-child{margin-bottom:0}.jta-plan-description :is(ul,ol){padding-left:22px}.jta-plan-description li+li{margin-top:6px}.jta-plan-description a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.jta-plan-card .jta-plan-facts{list-style:none;margin:0;padding:0}.jta-plan-card .jta-plan-facts li{position:relative;padding-left:26px;margin:0 0 10px}.jta-plan-card .jta-plan-facts li:before{content:'';position:absolute;left:0;top:2px;width:22px;height:22px;background:currentColor;mask:center/22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E")}
.jta-plan-card-action{margin-top:auto}.jta-plan-card-action:empty{display:none}.jta-plan-card-action p{margin:0;font:400 14px/1.5 Arial,sans-serif;color:#636363}.jta-plan-card-action button{width:100%}
.jta-plan-rich-editor,.jta-plan-preview{grid-column:1/-1;min-width:0}.jta-plan-rich-editor>label{display:block;margin-bottom:8px}.jta-plan-rich-editor .jta-plan-format-help{font:400 14px/1.5 Arial,sans-serif;margin:8px 0}.jta-plan-preview{padding:16px;background:#f7f7f7;border:1px solid #dfdfdf;border-radius:12px}.jta-plan-preview>h3{margin:0 0 12px}.jta-plan-preview .jta-plan-card{max-width:520px}.jta-plan-rich-editor textarea{min-height:180px}
.jta-plan-rich-editor .mce-toolbar-grp .mce-toolbar>div{display:flex;flex-wrap:wrap}.jta-plan-rich-editor .mce-btn button{min-width:44px;min-height:44px}.jta-plan-rich-editor .wp-switch-editor{min-height:44px;padding:8px 14px}.jta-plan-rich-editor .mce-tinymce{max-width:100%;box-sizing:border-box}.jta-plan-rich-editor .mce-container-body{max-width:100%}
@media(max-width:600px){:is(body.jta-design-v112,body.jta-admin-v112) .jta-plan-card{padding:20px}.jta-plan-card-head{min-height:0}:is(body.jta-design-v112,body.jta-admin-v112) .jta-plan-card.is-current{padding:19px}.jta-plan-preview{padding:10px}}

body.jta-design-v112 .jta-accounts .jta-plan-card h3,body.jta-admin-v112 #wpbody-content .jta-plan-preview .jta-plan-card h3{font:700 24px/1.25 Arial,sans-serif!important}

.jta-guest-account {scroll-margin-top:42px}
.jta-access.jta-guest-account:has(.jta-guest-plans:target) {max-width:960px}
.jta-guest-plans {display:none;box-sizing:border-box}
.jta-guest-plans:target {display:block}
.jta-guest-plans:target ~ :is(.jta-access-view,.jta-access-status,.jta-access-boundary) {display:none}
.jta-access .jta-entry-options {display:flex;align-items:stretch;gap:4px;margin:20px 0 24px;padding:4px;border:1px solid #dfdfdf;border-radius:14px;background:#f7f7f7}
.jta-access .jta-entry-options a {display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;min-height:48px;padding:6px;border-radius:12px;color:#313131;text-align:center;text-decoration:none;font:700 16px/1.3 Arial,sans-serif}
.jta-access .jta-entry-options a[aria-current="page"] {background:#7AB8FA;color:#fff}
.jta-access .jta-entry-options a[aria-current="page"]::after {content:'✓';font-weight:700}
.jta-access .jta-entry-options a:hover {background:#FF5151;color:#fff}
.jta-access .jta-entry-options a:focus-visible {outline:2px solid #7AB8FA;outline-offset:2px;box-shadow:0 0 0 5px rgb(122 184 250 / 20%)}
:is(.jta-guest-plans,.jta-panel) .jta-plan-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px;margin:16px 0 24px}
:is(body.jta-design-v112,body.jta-admin-v112) .jta-plan-card {gap:10px}
.jta-plan-card .jta-plan-card-head {min-height:0;flex-flow:row wrap;align-items:center;gap:8px;justify-content:space-between}
:is(body.jta-design-v112,body.jta-admin-v112) .jta-plan-card .jta-plan-current {padding:3px 8px}
.jta-plan-card .jta-plan-allowance {margin:4px 0 0;padding:12px 0;gap:4px 8px}
.jta-plan-rules {margin-top:auto;border-top:1px solid #dfdfdf}
.jta-plan-rules summary {cursor:pointer;width:fit-content;padding:12px 0;min-height:44px;box-sizing:border-box;font:700 15px/1.45 Arial,sans-serif}
.jta-plan-card .jta-plan-card-action {margin-top:0}
.jta-plan-rules .jta-plan-facts {margin:0;padding:0}
.jta-plan-join {border-top:1px solid #dfdfdf;padding-top:20px}
.jta-guest-plans .jta-plan-join h2,.jta-accounts .jta-plan-list-title {margin:0;font:700 22px/1.3 Arial,sans-serif}
.jta-plan-entry-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.jta-guest-plans .jta-plan-entry-actions a {display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;padding:8px 16px;border:1px solid #ccc;border-radius:10px;background:#fff;color:#222;font:700 16px/1.5 Arial,sans-serif;text-decoration:none}
.jta-guest-plans .jta-plan-entry-actions .jta-plan-sign-in {background:#7AB8FA;color:#fff;border-color:#7AB8FA}
.jta-guest-plans .jta-plan-entry-actions a:hover {background:#FF5151;border-color:#FF5151;color:#fff;text-decoration:none}
.jta-guest-plans a:hover,.jta-plan-rules summary:hover {text-decoration:underline}
.jta-accounts #membership {scroll-margin-top:calc(var(--wp-admin--admin-bar--height,0px) + 24px)}
.jta-membership-heading,.jta-paid-heading {display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.jta-accounts .jta-membership-heading h2 {margin:0 auto 0 0}
.jta-checkout-billing,.jta-paid-facts dd:has(.jta-action-link) {display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.jta-accounts .jta-paid-heading h3 {margin:0;font:700 26px/1.3 Arial,sans-serif}
.jta-paid-state {padding:3px 9px;border-radius:6px;background:#eff6ff;color:#222;font-weight:700}
.jta-paid-facts {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr));gap:12px 16px;margin:18px 0 10px;padding:16px 0;border-block:1px solid #dfdfdf}
.jta-paid-facts:has(+ .jta-checkout-status:empty + .jta-checkout-terms) {border-bottom:0;margin-bottom:0;padding-bottom:8px}
.jta-paid-facts dt,.jta-paid-facts small {color:#555;font:400 14px/1.5 Arial,sans-serif}
.jta-paid-facts dd {margin:4px 0 0;font:700 19px/1.35 Arial,sans-serif}
.jta-accounts .jta-membership-summary[hidden],.jta-accounts .jta-membership-choices[hidden],.jta-plan-card-action button[hidden] {display:none!important}
.jta-membership-choices {margin-top:24px}
.jta-checkout-cancel-review h4 {scroll-margin-top:64px}
@media(max-width:540px) {
    .jta-accounts .jta-membership-heading h2 {width:100%}
    .jta-paid-facts {grid-template-columns:1fr}
}
.jta-membership-summary {display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:12px 0 24px;padding:16px 20px;background:#f7f7f7;border-radius:12px}
.jta-membership-summary > span:first-child {width:100%;font-size:14px;color:#555}
.jta-membership-summary > strong {font-size:21px;line-height:1.35}
.jta-membership-summary .jta-membership-state {border:1px solid #ccc;background:#fff;border-radius:6px;padding:1px 8px;font-weight:700;font-size:13px}
.jta-accounts .jta-membership-summary > p {width:100%;margin:4px 0 0}
.jta-checkout-host:has(.jta-subscription-checkout:not([hidden])) {margin:16px 0 24px}
@media(max-width:520px) {
    .jta-access .jta-entry-options a {font-size:14px}
    .jta-plan-entry-actions a {flex:1 1 auto}
}
.jta-plan-card .jta-plan-offer-label {padding:3px 8px;border-radius:8px;background:#f7f7f7;color:#313131;font:700 14px/1.5 Arial,sans-serif}
.jta-member-switch-review {margin-block:24px;padding:clamp(16px,3vw,28px);border:1px solid #ddd;border-radius:12px;background:#fff}
.jta-member-switch-review[hidden] {display:none}
.jta-member-switch-review h3 {scroll-margin-top:65px}
.jta-switch-comparison {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:16px}
.jta-switch-comparison dt,.jta-member-switch-review legend {font-weight:700}
.jta-switch-comparison dd {margin:4px 0}
.jta-member-switch-review fieldset {border:0;padding:0;margin-block:20px 8px}
.jta-accounts .jta-member-switch-review fieldset label {
    display:grid;
    grid-template-columns:20px minmax(0,1fr);
    align-items:center;
    gap:10px;
    min-height:44px;
    cursor:pointer;
}
.jta-accounts .jta-member-switch-review input[type="radio"] {
    appearance:auto;
    width:20px;
    height:20px;
    min-height:20px;
    margin:0;
    padding:0;
    accent-color:#2F70B7;
}
.jta-member-switch-review input[type="radio"]:focus-visible {outline:2px solid currentColor;outline-offset:3px}
.jta-member-switch-actions {display:flex;gap:10px;flex-wrap:wrap}

.jta-plan-benefits fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  align-items: end;
  gap: 12px;
  min-width: 0;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid #dfdfdf;
  border-radius: 12px;
}
.jta-plan-benefits fieldset button { justify-self: start; }
.jta-plan-benefit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jta-plan-benefit-actions select { max-width: 100%; }
