/* Every selector is scoped to this add-on's settings form. */
.ctcl-payment-tab-fieldset form:has(.ctcl-paypal-settings) > fieldset,
.ctcl-payment-tab-fieldset .ctcl-pp-form > fieldset { padding: 0; border: 1px solid #d9e1eb; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px #1631520a; overflow: hidden; }
.ctcl-pp-form > fieldset > legend, form:has(.ctcl-paypal-settings) > fieldset > legend { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.ctcl-paypal-settings { --pp-ink: #152b46; --pp-muted: #62738a; color: var(--pp-ink); font-size: 14px; line-height: 1.6; scroll-margin-top: 48px; }
.ctcl-paypal-settings *, .ctcl-pp-form * { box-sizing: border-box; }
.ctcl-paypal-settings p { margin: 0; }
.ctcl-paypal-settings h2, .ctcl-paypal-settings h3, .ctcl-paypal-settings h4 { color: var(--pp-ink); margin: 0; line-height: 1.3; }
.ctcl-pp-hero { display: flex; align-items: center; gap: 24px; padding: 32px; background: linear-gradient(115deg, #08264a, #073f79); color: #dae8f8; }
.ctcl-pp-brand { font-weight: 800; font-size: 28px; font-style: italic; letter-spacing: -1.5px; flex: 0 0 auto; }
.ctcl-pp-brand span:first-child { color: #fff; }
.ctcl-pp-brand span:last-child { color: #63c8ff; }
.ctcl-pp-hero-copy { flex: 1; }
.ctcl-pp-hero .ctcl-pp-eyebrow { color: #a5c8eb; }
.ctcl-pp-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: var(--pp-muted); }
.ctcl-pp-hero h2 { color: #fff; font-size: 24px; font-weight: 650; letter-spacing: -.5px; margin: 5px 0 8px; }
.ctcl-pp-hero-copy > p:last-child { max-width: 420px; font-size: 13px; }
.ctcl-pp-status { padding: 5px 12px; border: 1px solid #ffffff38; border-radius: 30px; background: #ffffff0d; color: #e4efff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.ctcl-pp-status::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #b2c6df; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.ctcl-pp-status.is-enabled::before { background: #7ee4b9; }
.ctcl-pp-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr); }
.ctcl-pp-fields { padding: 32px; }
.ctcl-pp-section-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; }
.ctcl-pp-step { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid #dae6f2; border-radius: 9px; background: #f1f7fd; color: #2167ae; font-size: 11px; font-weight: 700; }
.ctcl-pp-section-heading h3 { font-size: 16px; font-weight: 650; margin-bottom: 5px; }
.ctcl-pp-section-heading p, .ctcl-pp-field p, .ctcl-pp-toggle-row p { color: var(--pp-muted); font-size: 12px; }
.ctcl-pp-heading-spaced { margin-top: 30px; padding-top: 30px; border-top: 1px solid #e8edf3; }
.ctcl-pp-field { margin-bottom: 22px; }
.ctcl-pp-field > label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.ctcl-paypal-settings .ctcl-pp-field :is(input, select) { min-height: 44px; padding: 10px 12px; border: 1px solid #c7d3e0; border-radius: 8px; box-shadow: 0 1px 2px #10223a05; color: #18314f; }
.ctcl-paypal-settings #ctc-paypal-client-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ctcl-pp-field p { margin-top: 9px; }
.ctcl-pp-field a { display: inline-block; color: #1464ac; text-decoration: none; }
.ctcl-pp-field a:hover { text-decoration: underline; }
.ctcl-pp-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ctcl-pp-toggle-row label { font-size: 13px; font-weight: 600; cursor: pointer; }
.ctcl-pp-toggle-row p { margin-top: 4px; }
.ctcl-paypal-settings input.ctcl-pp-switch { appearance: none; -webkit-appearance: none; width: 40px; height: 23px; flex: 0 0 40px; min-width: 40px; border: 0; border-radius: 20px; background: #b6c3d1; margin: 0; position: relative; box-shadow: none; cursor: pointer; transition: background .15s; }
.ctcl-paypal-settings input.ctcl-pp-switch::before { content: ''; display: block; position: absolute; width: 17px; height: 17px; top: 3px; left: 3px; margin: 0; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #14274426; transition: transform .15s; }
.ctcl-paypal-settings input.ctcl-pp-switch:checked { background: #0875d1; }
.ctcl-paypal-settings input.ctcl-pp-switch:checked::before { transform: translateX(17px); }
.ctcl-pp-preview-panel { padding: 32px 26px; border-left: 1px solid #e8edf3; background: #f6f8fc; }
.ctcl-pp-preview-card { margin-top: 16px; padding: 26px 20px 0; background: #fff; border: 1px solid #e0e6ef; border-radius: 13px; text-align: center; box-shadow: 0 4px 15px #142d4b06; }
.ctcl-pp-mini-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; background: #edf5ff; border-radius: 10px; color: #0070ba; font-size: 25px; font-weight: 800; font-style: italic; margin-bottom: 14px; }
.ctcl-pp-preview-card h3 { font-size: 16px; margin-bottom: 8px; }
.ctcl-pp-preview-card > p { color: var(--pp-muted); font-size: 12px; margin-bottom: 20px; }
.ctcl-pp-preview-button { display: flex; gap: 6px; justify-content: center; align-items: center; min-height: 46px; border-radius: 6px; background: #ffc439; color: #142c4c; border: 1px solid transparent; font-size: 12px; }
.ctcl-pp-preview-button strong { font-size: 20px; font-style: italic; letter-spacing: -.6px; }
.ctcl-pp-preview-button[data-color=blue] { background: #0070ba; color: #fff; }
.ctcl-pp-preview-button[data-color=silver] { background: #eee; color: #123456; }
.ctcl-pp-preview-button[data-color=white] { background: #fff; border-color: #263e5b; }
.ctcl-pp-preview-button[data-color=black] { background: #212121; color: #fff; }
.ctcl-pp-preview-card .ctcl-pp-card-note { font-size: 11px; margin: 12px 0 0; }
.ctcl-pp-preview-footer { display: flex; justify-content: center; align-items: center; gap: 5px; border-top: 1px solid #edf0f5; margin-top: 22px; padding: 13px 0; color: #708096; font-size: 10px; }
.ctcl-pp-preview-footer .dashicons { font-size: 13px; width: 14px; height: 14px; }
.ctcl-pp-preview-caption { color: #76869a; font-size: 11px; line-height: 1.7; margin-top: 13px !important; }
.ctcl-pp-help { margin-top: 25px; padding-top: 22px; border-top: 1px solid #e0e6ef; }
.ctcl-pp-help h4 { font-size: 12px; margin-bottom: 7px; }
.ctcl-pp-help p { font-size: 12px; color: var(--pp-muted); }
.ctcl-pp-currency { display: inline-block; margin-top: 12px; padding: 3px 8px; border-radius: 5px; background: #eaf0f8; font-size: 10px; color: #526982; }
.ctcl-pp-save-status { color: #76869a; font-size: 11px; padding: 16px 32px 0; }
.ctcl-pp-save-status.is-dirty { color: #976010; }
.ctcl-pp-form > fieldset > .ctcl-form-submit-button { margin: 0; border: 0; padding: 12px 32px 24px; }
.ctcl-pp-form .ctcl-form-submit-button .button-primary { min-height: 42px; padding: 5px 18px; background: #086aca; border-color: #086aca; border-radius: 8px; box-shadow: 0 3px 8px #086aca1a; font-weight: 600; }
.ctcl-pp-form .ctcl-form-submit-button .button-primary:hover { background: #0759ab; }
.ctcl-paypal-settings :is(a,input,select):focus-visible { outline: 3px solid #6db7f0; outline-offset: 3px; }
.ctcl-paypal-settings [hidden] { display: none; }
@media (max-width: 1100px) { .ctcl-pp-layout { grid-template-columns: 1fr; } .ctcl-pp-preview-panel { border-left: 0; border-top: 1px solid #e8edf3; } .ctcl-pp-preview-card { max-width: 360px; } .ctcl-pp-hero { flex-wrap: wrap; gap: 16px; } .ctcl-pp-hero-copy { min-width: 180px; } }
@media (max-width: 600px) { .ctcl-pp-hero, .ctcl-pp-fields, .ctcl-pp-preview-panel { padding: 24px 20px; } .ctcl-pp-brand { width: 100%; } .ctcl-pp-hero h2 { font-size: 22px; } .ctcl-pp-save-status { padding-left: 20px; padding-right: 20px; } .ctcl-pp-form > fieldset > .ctcl-form-submit-button { padding-left: 20px; padding-right: 20px; } }
@media (prefers-reduced-motion: reduce) { .ctcl-paypal-settings input.ctcl-pp-switch, .ctcl-paypal-settings input.ctcl-pp-switch::before { transition: none; } }
/* The host uses a masonry-like grid; this integration needs a full-width row. */
.ctcl-payment-tab-fieldset > form:has(.ctcl-paypal-settings),
.ctcl-payment-tab-fieldset > form.ctcl-pp-form { grid-column: 1 / -1; min-width: 0; }
