/* PREVIGUARD • SALA integration v3
 * The native SALA style.css, shared layout, header, footer, typography, buttons
 * and theme remain untouched. Only component sizing and form layout live here.
 * No global reset, theme palette, font import, stepper or alternate design system.
 */
.pg-pricing [hidden] { display: none !important; }
.pg-pricing { color: var(--sala-neutral-normal); }
.pg-pricing .pg-small { font-size: 14px; line-height: 1.7; color: var(--sala-neutral-normal); }
.pg-pricing .pg-full { width: 100%; justify-content: center; text-align: center; }
.pg-pricing .button { height: auto; min-height: 46px; }
.pg-pricing button { cursor: pointer; }
.pg-pricing button:disabled { opacity: .55; cursor: not-allowed; }
.pg-pricing .pg-text-link { text-decoration: underline; text-underline-offset: 4px; color: var(--sala-neutral-dark); }
.pg-pricing .pg-back { display: inline-block; margin-top: 24px; font-size: 14px; }
.pg-pricing :focus-visible { outline: 2px solid var(--sala-neutral-dark); outline-offset: 4px; }
.pg-pricing .pg-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Original SALA layout-01 pricing component, adapted only to four columns. */
.pg-sala-plans .row { row-gap: 30px; }
.pg-sala-plans .pricing-box { margin-bottom: 0; height: 100%; }
.pg-sala-plans .pricing-box .inner { padding: 32px 26px 106px; }
.pg-sala-plans .pricing-box .icon { position: static; margin-bottom: 24px; height: 54px; }
.pg-sala-plans .pricing-box .icon svg { height: 54px; width: auto; }
.pg-sala-plans .pricing-box .name { margin-bottom: 16px; }
.pg-sala-plans .pg-price-prefix { font-size: 13px; margin-bottom: 8px; }
.pg-sala-plans .pricing-box .price { margin-bottom: 4px; }
.pg-sala-plans .pg-price-unit { font-size: 13px; margin-bottom: 20px; }
.pg-sala-plans .pricing-box .desc { min-height: 52px; margin-bottom: 24px; }
.pg-sala-plans .pricing-box .desc p { font-size: 15px; line-height: 1.7; }
.pg-sala-plans .pricing-box .list li { font-size: 14px; line-height: 1.65; margin-bottom: 14px; }
.pg-sala-plans .pricing-box .list li::before { font-size: 20px; margin-right: 10px; }
.pg-sala-plans .pricing-box .button-wrap { left: 26px; right: 26px; bottom: 32px; }
.pg-sala-plans .pricing-box .button-wrap .button { padding-left: 12px; padding-right: 12px; font-size: 14px; }
.pg-sala-plans .pricing-box.popular .inner { box-shadow: inset 0 0 0 1px var(--sala-neutral-dark); }
.pg-gift-notice { margin: 32px 0 16px; }
.pg-gift-notice .notice { align-items: flex-start; background: var(--sala-neutral-white); padding: 24px; }
.pg-gift-notice .notice i { font-size: 32px; color: var(--sala-tone-red); }
.pg-gift-notice strong { display: block; margin-bottom: 6px; color: var(--sala-neutral-dark); }
.pg-gift-notice p { font-size: 14px; line-height: 1.7; }

/* Native SALA layout-02 comparison table, horizontally scrollable on mobile. */
.pg-comparison { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pg-comparison table { width: 100%; min-width: 850px; }
.pg-pricing .pg-comparison thead th { padding: 22px 14px; font-size: 16px; font-weight: 600; }
.pg-pricing .pg-comparison thead th:first-child { text-align: left; }
.pg-pricing .pg-comparison th:first-child { width: 39%; }
.pg-pricing .pg-comparison tbody th { font-weight: 400; text-transform: none; color: var(--sala-neutral-dark); text-align: left; }
.pg-pricing .pg-comparison tbody th, .pg-pricing .pg-comparison tbody td { padding: 16px 14px; border-top: 1px solid var(--sala-shade-background); font-size: 14px; line-height: 1.6; }
.pg-pricing .pg-comparison tbody td { text-align: center; }
.pg-pricing .pg-comparison tbody tr:last-child td.popular { border-bottom: 1px solid var(--sala-neutral-dark); }

/* The illustrated universes use SALA's existing post component. */
.pg-universe .entry-thumbnail { border-radius: 4px; }
.pg-universe .entry-thumbnail img { aspect-ratio: 880 / 440; height: auto; object-fit: cover; }
.pg-universe .entry-category { font-size: 14px; font-weight: 500; color: var(--sala-neutral-normal); }
.pg-universe .entry-title { font-size: 24px; line-height: 1.35; }
.pg-universe-price { font-size: 24px; font-weight: 500; color: var(--sala-neutral-dark); margin-bottom: 20px; }
.pg-universe-price span { font-size: 14px; font-weight: 400; color: var(--sala-neutral-normal); }
.pg-feature-list { list-style: none; padding: 0; margin: 0 0 24px; }
.pg-feature-list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.pg-feature-list i { flex: 0 0 18px; font-size: 20px; margin-top: 3px; color: var(--sala-neutral-dark); }

/* Standalone configurator and checkout: standard SALA headings and input fields. */
.pg-main-column { padding-right: 36px; }
.pg-form-section { padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid var(--sala-shade-background); }
.pg-form-section:last-of-type { border-bottom: 0; margin-bottom: 0; }
.pg-form-section .heading-desc { font-size: 16px; }
.pg-plan-picker { row-gap: 16px; }
.pg-plan-choice { display: flex; align-items: flex-start; gap: 12px; padding: 20px; border: 1px solid var(--sala-shade-border-line); border-radius: 3px; height: 100%; cursor: pointer; }
.pg-plan-choice:has(input:checked) { border-color: var(--sala-neutral-dark); background: var(--sala-shade-background); }
.pg-plan-choice strong { display: block; font-size: 16px; color: var(--sala-neutral-dark); font-weight: 500; }
.pg-plan-choice small { display: block; font-size: 13px; line-height: 1.7; margin-top: 4px; }
.pg-pricing input[type=checkbox], .pg-pricing input[type=radio] { width: 18px; height: 18px; padding: 0; flex: 0 0 18px; margin: 4px 0 0; accent-color: var(--sala-neutral-dark); cursor: pointer; }
.pg-site-count { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 24px 0 0; }
.pg-site-count label { font-weight: 500; margin-bottom: 4px; }
.pg-site-count input { width: 92px; flex: 0 0 92px; }
.pg-option { display: flex; align-items: flex-start; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--sala-shade-background); cursor: pointer; }
.pg-option:last-of-type { border-bottom: 0; }
.pg-option-copy { flex: 1; min-width: 0; }
.pg-option-copy strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.65; color: var(--sala-neutral-dark); }
.pg-option-copy small { display: block; font-size: 13px; line-height: 1.7; color: var(--sala-neutral-normal); margin-top: 4px; }
.pg-option-price { font-size: 17px; font-weight: 500; color: var(--sala-neutral-dark); text-align: right; white-space: nowrap; }
.pg-option-price small { display: block; font-size: 12px; font-weight: 400; color: var(--sala-neutral-normal); }
.pg-option.is-disabled { opacity: .55; cursor: not-allowed; }
.pg-option input:disabled { cursor: not-allowed; }
.pg-notice { padding: 20px; margin: 20px 0; background: var(--sala-shade-background); border-radius: 3px; font-size: 14px; line-height: 1.7; }
.pg-notice a, .pg-consent a { text-decoration: underline; text-underline-offset: 3px; }
.pg-sticky-column { position: sticky; top: 110px; }

/* SALA cart-totals component. No custom red panel or alternate card theme. */
.pg-pricing .pg-cart-totals { margin-top: 0; display: block; }
.pg-pricing .pg-cart-totals .cart-total { width: 100%; max-width: none; padding: 28px; border-radius: 4px; }
.pg-summary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pg-summary-mode { font-size: 12px; white-space: nowrap; }
.pg-summary h3 { font-size: 28px; margin-bottom: 8px; }
.pg-summary-lines { border-top: 1px solid var(--sala-neutral-white); margin-top: 24px; padding-top: 16px; }
.pg-summary-lines > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.7; padding: 7px 0; }
.pg-summary-lines strong { font-weight: 500; white-space: nowrap; color: var(--sala-neutral-dark); }
.pg-summary-main { display: flex; flex-direction: column; border-top: 1px solid var(--sala-neutral-white); margin-top: 20px; padding-top: 20px; }
.pg-summary-main > span { font-size: 14px; }
.pg-summary-main > strong { font-size: 40px; line-height: 1.4; font-weight: 500; color: var(--sala-neutral-dark); overflow-wrap: anywhere; }
.pg-totals { margin: 16px 0; }
.pg-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 13px; border-bottom: 1px solid var(--sala-neutral-white); }
.pg-totals dt { font-weight: 400; }
.pg-totals dd { white-space: nowrap; font-weight: 500; margin: 0; color: var(--sala-neutral-dark); }
.pg-totals small { display: block; font-size: 12px; }
.pg-totals .pg-total-year { padding: 18px 0; }
.pg-total-year dt, .pg-total-year dd { font-weight: 600; }
.pg-summary-note { margin-bottom: 24px; }
.pg-summary .pg-small { font-size: 13px; }
.pg-first-payment { padding: 18px 0; margin-bottom: 12px; }
.pg-first-payment span { display: block; font-size: 14px; }
.pg-first-payment strong { display: block; font-size: 25px; color: var(--sala-neutral-dark); font-weight: 500; }
.pg-first-payment small { display: block; font-size: 12px; margin-top: 6px; }
.pg-summary-actions { margin-top: 24px; }
.pg-copy-fallback { margin-top: 16px; height: 260px; line-height: 1.7; padding: 16px; resize: vertical; background: var(--sala-neutral-white); font-size: 13px; }

/* Native SALA tab navigation, using keyboard-operable buttons instead of anchors. */
.pg-auth-tabs .tab-navs { margin-bottom: 32px; }
.pg-auth-tabs .tab-navs button { font-family: inherit; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--sala-neutral-normal); padding: 0 0 8px; font-size: 18px; font-weight: 500; }
.pg-auth-tabs .tab-navs button[aria-selected=true] { color: var(--sala-neutral-dark); border-bottom-color: var(--sala-neutral-dark); }
.pg-consent { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; font-size: 14px; line-height: 1.7; cursor: pointer; }
.pg-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pg-account-aside { padding-right: 28px; }
.pg-account-line { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; padding: 18px; background: var(--sala-shade-background); font-size: 14px; border-radius: 3px; }
.pg-account-line > i { font-size: 32px; }
.pg-account-line > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pg-account-line small { display: block; font-size: 13px; }
.pg-account-line > a { font-size: 12px; text-decoration: underline; }
.pg-payment-method, .pg-free-payment { display: flex; align-items: flex-start; gap: 16px; padding: 24px; background: var(--sala-shade-background); border-radius: 3px; }
.pg-payment-method > i, .pg-free-payment > i { font-size: 28px; color: var(--sala-neutral-dark); }
.pg-payment-method > div, .pg-free-payment > div { flex: 1; }
.pg-payment-method strong, .pg-free-payment strong { color: var(--sala-neutral-dark); font-weight: 500; }
.pg-payment-method p, .pg-free-payment p { font-size: 14px; line-height: 1.7; margin-top: 6px; }
.pg-charge-detail { padding: 24px 0; }
.pg-charge-detail > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; }
.pg-charge-detail strong { font-size: 24px; color: var(--sala-neutral-dark); font-weight: 500; white-space: nowrap; }
.pg-charge-detail p { font-size: 14px; line-height: 1.7; margin-top: 8px; }
.pg-upload { margin-top: 24px; }
.pg-upload input[type=file] { height: auto; min-height: 48px; padding: 12px; line-height: 1.7; margin-top: 12px; }
.pg-form textarea { padding: 16px; line-height: 1.7; }

/* Existing order/history screens retain native styling after the replacement. */
.pg-checkout-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 40px; }
.pg-panel { padding-bottom: 32px; margin-bottom: 32px; }
.pg-panel h2 { margin-bottom: 20px; }
.pg-form-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.pg-result-icon { font-size: 48px; display: block; margin-bottom: 20px; }
.pg-order-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--sala-shade-background); }
.pg-order-row > div { flex: 1; }
.pg-order-row small { display: block; font-size: 13px; margin-top: 6px; }

@media(max-width:1199px) {
    .pg-sala-plans .pricing-box .inner { padding-left: 20px; padding-right: 20px; }
    .pg-sala-plans .pricing-box .button-wrap { left: 20px; right: 20px; }
    .pg-sala-plans .pricing-box .price .number { font-size: 46px; }
    .pg-pricing .pg-cart-totals .cart-total { padding: 22px; }
    .pg-main-column { padding-right: 20px; }
}
@media(max-width:991px) {
    .pg-main-column, .pg-account-aside { padding-right: 0; }
    .pg-sticky-column { position: static; margin-top: 32px; }
    .pg-account-aside { margin-top: 48px; margin-bottom: 0; }
    .pg-sala-plans .pricing-box .inner { padding-left: 32px; padding-right: 32px; }
    .pg-sala-plans .pricing-box .button-wrap { left: 32px; right: 32px; }
    .pg-checkout-grid { grid-template-columns: 1fr; }
    .pg-pricing .pg-cart-totals .cart-total { padding: 32px; }
}
@media(max-width:575px) {
    .pg-form-section { margin-bottom: 28px; padding-bottom: 24px; }
    .pg-option { gap: 10px; }
    .pg-option-copy strong { font-size: 14px; }
    .pg-option-copy small { font-size: 12px; }
    .pg-option-price { font-size: 15px; }
    .pg-option-price small { font-size: 11px; }
    .pg-site-count { align-items: flex-start; }
    .pg-site-count input { flex-basis: 72px; width: 72px; }
    .pg-field-grid { grid-template-columns: 1fr; gap: 0; }
    .pg-pricing .pg-cart-totals .cart-total { padding: 24px; }
    .pg-account-line { flex-wrap: wrap; }
    .pg-account-line > a { width: 100%; }
    .pg-charge-detail > div { flex-direction: column; gap: 8px; }
    .pg-payment-method { padding: 20px; gap: 12px; }
    .pg-payment-method > i:last-child { display: none; }
    .pg-universe .entry-title, .pg-universe-price { font-size: 21px; }
    .pg-pricing .button { white-space: normal; }
    .pg-gift-notice .notice { padding: 20px; }
}
@media(prefers-reduced-motion:reduce) { .pg-pricing * { transition: none !important; } }
