/* Studio page layout; adapted from project-owned branding-methods.css. */
:where(.payhippo-studio) .branding-methods{--bm-radius:4px;--bm-editor-width:440px;min-width:0}
:where(.payhippo-studio) .branding-methods :is(.form-control,.form-select,.btn,.alert,.bm-checkout-preview,.bm-artwork,.bm-confirm){border-radius:var(--bm-radius)}
:where(.payhippo-studio) .branding-methods [hidden]{display:none!important}
:where(.payhippo-studio) .branding-methods #bmTitle{font-size:24px;font-weight:600;line-height:1.3}
:where(.payhippo-studio) .branding-methods .bm-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:20px}
:where(.payhippo-studio) .branding-methods .bm-toolbar-controls{display:flex;align-items:center;gap:8px}
:where(.payhippo-studio) .branding-methods #bmSearch{width:180px;max-width:100%}
:where(.payhippo-studio) .branding-methods .bm-method-list{border:1px solid var(--line);border-radius:var(--bm-radius);background:var(--paper);overflow:visible}
:where(.payhippo-studio) .branding-methods .bm-method-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:72px;padding:16px 20px;border-bottom:1px solid var(--line);transition:background-color .15s}
:where(.payhippo-studio) .branding-methods .bm-method-row:first-child{border-start-start-radius:var(--bm-radius);border-start-end-radius:var(--bm-radius)}
:where(.payhippo-studio) .branding-methods .bm-method-row:last-child{border-bottom:0;border-end-start-radius:var(--bm-radius);border-end-end-radius:var(--bm-radius)}
:where(.payhippo-studio) .branding-methods .bm-method-row.is-editing{background:rgba(var(--purple-rgb),.06);box-shadow:inset 3px 0 var(--purple)}
:where(.payhippo-studio) .branding-methods .bm-row-identity{display:flex;align-items:center;gap:14px;min-width:0}
:where(.payhippo-studio) .branding-methods .bm-provider-icon{display:block;width:30px;height:30px;object-fit:contain;flex:none}
:where(.payhippo-studio) .branding-methods .bm-provider-icon:not(img){display:grid;place-items:center;font-size:24px;color:var(--muted)}
:where(.payhippo-studio) .branding-methods .bm-row-name{font-size:15px;line-height:1.4;font-weight:500;margin:0;overflow-wrap:anywhere}
:where(.payhippo-studio) .branding-methods .bm-row-actions{display:flex;align-items:center;gap:22px;flex:none}
:where(.payhippo-studio) .branding-methods .bm-row-actions .btn{min-width:64px}
:where(.payhippo-studio) .branding-methods .bm-status{font-size:11px;white-space:normal;max-width:100%;font-weight:400}
:where(.payhippo-studio) .branding-methods .bm-empty{padding:32px 20px;text-align:center;color:var(--muted);margin:0}
:where(.payhippo-studio) .branding-methods .bm-editor{--bs-offcanvas-width:var(--bm-editor-width);--bs-offcanvas-width:var(--bm-editor-width);width:min(var(--bm-editor-width),100vw);border-inline-start:1px solid var(--line);background:var(--paper);box-shadow:-8px 0 24px #0000000a}
:where(.payhippo-studio) .branding-methods .offcanvas-header{padding:14px 20px;min-height:62px;gap:12px}
:where(.payhippo-studio) .branding-methods .offcanvas-body{overscroll-behavior:contain;min-height:0}
:where(.payhippo-studio) .branding-methods .bm-editor-footer{padding:12px 20px;background:var(--paper);flex:none}
:where(.payhippo-studio) .branding-methods #bmEditorContext:empty{display:none}
:where(.payhippo-studio) .branding-methods #bmEditorContext{padding:12px 20px 0}
:where(.payhippo-studio) .branding-methods #bmEditorTabs{overflow-x:auto;scrollbar-width:thin;padding:0 20px;margin-top:10px;gap:18px;position:sticky;top:0;z-index:2;background:var(--paper)}
:where(.payhippo-studio) .branding-methods #bmEditorTabs .nav-link{white-space:nowrap;font-size:13px;padding:11px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted)}
:where(.payhippo-studio) .branding-methods #bmEditorTabs .nav-link.active{border-bottom-color:var(--purple);color:var(--purple);font-weight:600}
:where(.payhippo-studio) .branding-methods #bmEditorTabs .nav-link:focus-visible{outline:2px solid var(--purple);outline-offset:-2px}
:where(.payhippo-studio) .branding-methods #bmFields{min-width:0;padding:18px 20px}
:where(.payhippo-studio) .branding-methods #bmAdvancedFields{min-width:0}
:where(.payhippo-studio) .branding-methods .bm-appearance-links{display:flex;flex-direction:column;gap:8px;font-size:13px}
:where(.payhippo-studio) .branding-methods .bm-field{margin-bottom:14px;min-width:0}
:where(.payhippo-studio) .branding-methods .bm-field:last-child{margin-bottom:0}
:where(.payhippo-studio) .branding-methods .bm-field .form-label{font-size:13px;font-weight:500;margin-bottom:6px}
:where(.payhippo-studio) .branding-methods .bm-field.form-switch .form-label{margin-bottom:0}
:where(.payhippo-studio) .branding-methods .bm-field.form-switch .form-check-input{float:none;margin:0;flex:none}
:where(.payhippo-studio) .branding-methods .bm-field :is(.form-control,.form-select){font-size:13px;min-height:36px}
:where(.payhippo-studio) .branding-methods #bmFields [role=tabpanel]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
:where(.payhippo-studio) .branding-methods #bmFields .bm-field{grid-column:1/-1;margin:0}
:where(.payhippo-studio) .branding-methods #bmFields .bm-field:is([data-field-type=number],[data-field-type=select]){grid-column:span 1}
:where(.payhippo-studio) .branding-methods #bmFields .bm-field.form-switch{padding-block:2px}
:where(.payhippo-studio) .branding-methods #bmEditorIcon{width:24px;height:24px}
:where(.payhippo-studio) .branding-methods #bmEditorTitle{font-size:16px!important}
:where(.payhippo-studio) .branding-methods .bm-editor-footer .btn{min-height:38px;font-size:13px}
:where(.payhippo-studio) .branding-methods #bmDirty:empty{display:none}
:where(.payhippo-studio) .branding-methods .bm-field-header{display:flex;align-items:center;gap:6px}
:where(.payhippo-studio) .branding-methods .bm-media-row{display:flex;align-items:center;gap:12px;min-height:56px}
:where(.payhippo-studio) .branding-methods .bm-artwork{padding:10px 12px;background:var(--soft);display:flex;justify-content:center;align-items:center;min-height:56px;min-width:0;flex:1;overflow:hidden}
:where(.payhippo-studio) .branding-methods .bm-artwork img{max-width:100%;max-height:36px;width:auto;object-fit:contain}
:where(.payhippo-studio) .branding-methods .bm-replace{flex:none;min-height:36px;font-size:12px}
:where(.payhippo-studio) .branding-methods .bm-media-options>summary,:where(.payhippo-studio) .branding-methods .bm-svg-options>summary{font-size:12px;color:var(--muted);cursor:pointer;padding-block:7px}
:where(.payhippo-studio) .branding-methods .bm-media-options{margin-top:2px}
:where(.payhippo-studio) .branding-methods .bm-media-options[open]>.form-label{display:block;margin-top:5px}
:where(.payhippo-studio) .branding-methods .bm-media-options>.form-control{direction:ltr;text-align:start}
:where(.payhippo-studio) .branding-methods .bm-media-options summary:focus-visible{outline:2px solid var(--purple);outline-offset:2px;border-radius:4px}
:where(.payhippo-studio) .branding-methods textarea.bm-svg{font-family:monospace;font-size:11px;direction:ltr;min-height:150px}
:where(.payhippo-studio) .branding-methods .bm-field-error{font-size:12px;margin-top:5px;display:block;color:var(--red)}
:where(.payhippo-studio) .branding-methods .bm-field-error:empty{display:none}
:where(.payhippo-studio) .branding-methods .bm-disclosure{margin:0 20px;border-top:1px solid var(--line)}
:where(.payhippo-studio) .branding-methods .bm-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;list-style:none;font-size:13px;font-weight:500;cursor:pointer;color:var(--ink)}
:where(.payhippo-studio) .branding-methods .bm-disclosure>summary::-webkit-details-marker{display:none}
:where(.payhippo-studio) .branding-methods .bm-disclosure>summary::after{content:'+';font-size:18px;font-weight:400;line-height:1;color:var(--muted)}
:where(.payhippo-studio) .branding-methods .bm-disclosure[open]>summary::after{content:'−'}
:where(.payhippo-studio) .branding-methods .bm-disclosure-body{padding:0 0 16px}
:where(.payhippo-studio) .branding-methods #bmAdvancedFields:not(:empty){padding-bottom:20px!important}
:where(.payhippo-studio) .branding-methods .bm-preview-panel{margin-bottom:8px}
:where(.payhippo-studio) .branding-methods .bm-checkout-preview{min-width:0;padding:16px;background:var(--soft)}
:where(.payhippo-studio) .branding-methods .bm-checkout-preview>.ph-gateway-label{font-weight:600;margin-bottom:16px}
:where(.payhippo-studio) .branding-methods .bm-checkout-preview>.ph-gateway-description{padding:12px 0;background:transparent;justify-content:center;font-size:13px}
:where(.payhippo-studio) .branding-methods .bm-help{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;padding:0;border:0;background:transparent;color:var(--muted);font-size:15px;line-height:1;cursor:help;vertical-align:middle}
:where(.payhippo-studio) .branding-methods .bm-help:focus-visible{outline:2px solid var(--purple);outline-offset:2px;border-radius:4px}
:where(.payhippo-studio) .branding-methods .bm-help-content{position:absolute;inset-block-start:calc(100% + 6px);inset-inline-end:0;z-index:1090;width:max-content;max-width:260px;padding:9px 11px;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--ink);box-shadow:var(--studio-shadow);font-size:12px;font-weight:400;line-height:1.5;text-align:start;white-space:normal;opacity:0;visibility:hidden;pointer-events:none}
:where(.payhippo-studio) .branding-methods .bm-help:is(:hover,:focus,:focus-within,.is-open) .bm-help-content{opacity:1;visibility:visible}
:where(.payhippo-studio) .branding-methods .bm-confirm{max-width:min(500px,calc(100vw - 32px));background:var(--paper);color:var(--ink);box-shadow:var(--studio-shadow-lg)}
:where(.payhippo-studio) .branding-methods .bm-confirm::backdrop{background:#11182777}
:where(.payhippo-studio) .branding-methods .bm-preview-muted{opacity:.65}
:where(.payhippo-studio) .branding-methods .bm-unavailable{font-size:12px}
:where(.payhippo-studio) .branding-methods .bm-editor.is-loading{pointer-events:none}
@media(min-width:1200px){:where(.payhippo-studio) .branding-methods.is-editing{padding-inline-end:var(--bm-editor-width)}
:where(.payhippo-studio) .branding-methods.is-editing .bm-toolbar{align-items:flex-start}
:where(.payhippo-studio) .branding-methods.is-editing .bm-toolbar-controls{width:100%}
:where(.payhippo-studio) .branding-methods.is-editing #bmSearch{flex:1;width:auto}}
@media(max-width:767.98px){:where(.payhippo-studio) .branding-methods .bm-editor{width:100vw;max-width:none}
:where(.payhippo-studio) .branding-methods #bmTitle{font-size:22px}
:where(.payhippo-studio) .branding-methods .bm-toolbar{gap:14px}
:where(.payhippo-studio) .branding-methods .bm-toolbar-controls{width:100%}
:where(.payhippo-studio) .branding-methods #bmSearch{flex:1;width:0}
:where(.payhippo-studio) .branding-methods .bm-method-row{gap:12px;min-height:70px;padding:14px}
:where(.payhippo-studio) .branding-methods .bm-row-identity{gap:10px}
:where(.payhippo-studio) .branding-methods .bm-row-actions{gap:12px}
:where(.payhippo-studio) .branding-methods .bm-row-actions .btn{min-width:52px}
:where(.payhippo-studio) .branding-methods .bm-row-name{font-size:14px}
:where(.payhippo-studio) .branding-methods .bm-provider-icon{width:26px;height:26px}
:where(.payhippo-studio) .branding-methods .offcanvas-header,:where(.payhippo-studio) .branding-methods .bm-editor-footer{padding:14px 20px}
:where(.payhippo-studio) .branding-methods #bmFields{padding:18px 20px}
:where(.payhippo-studio) .branding-methods #bmEditorContext{padding:12px 20px 0}
:where(.payhippo-studio) .branding-methods .bm-disclosure{margin-inline:20px}}
:where(.payhippo-studio) [dir=rtl] .branding-methods .offcanvas-end{right:auto;left:0;transform:translateX(-100%)}
:where(.payhippo-studio) [dir=rtl] .branding-methods .offcanvas.show{transform:none}
:where(.payhippo-studio) [dir=rtl] .branding-methods .bm-method-row.is-editing{box-shadow:inset -3px 0 var(--purple)}
@media(prefers-reduced-motion:reduce){:where(.payhippo-studio) .branding-methods .bm-method-row{transition:none}}
@media(max-width:767.98px){:where(.payhippo-studio) .branding-methods .bm-field :is(.form-control,.form-select){font-size:16px;min-height:40px}
:where(.payhippo-studio) .branding-methods .bm-editor-footer .btn,:where(.payhippo-studio) .branding-methods .bm-replace{min-height:42px}
:where(.payhippo-studio) .branding-methods #bmEditorTabs .nav-link{min-height:44px}
:where(.payhippo-studio) .branding-methods .bm-editor-footer{padding-bottom:max(14px,env(safe-area-inset-bottom))}}
@media(max-width:359.98px){:where(.payhippo-studio) .branding-methods #bmFields [role=tabpanel]{gap:14px 8px}
:where(.payhippo-studio) .branding-methods #bmFields .bm-field:is([data-field-type=number],[data-field-type=select]){grid-column:1/-1}
:where(.payhippo-studio) .branding-methods #bmEditorTabs{gap:14px}}
