/* Studio page layout; adapted from project-owned telegram-bots.css. */
:where(.payhippo-studio) .telegram-bots{--tb-border:var(--line,var(--line));--tb-muted:var(--muted,#878a99);max-width:1000px;margin-inline:auto;color:var(--ink,#495057)}
:where(.payhippo-studio) .telegram-bots .card,:where(.payhippo-studio) .telegram-bots .btn,:where(.payhippo-studio) .telegram-bots .form-control,:where(.payhippo-studio) .telegram-bots .tb-icon{border-radius:4px}
:where(.payhippo-studio) .telegram-bots .card{border:1px solid var(--tb-border);box-shadow:none}
:where(.payhippo-studio) .telegram-bots fieldset{min-width:0;margin:0;padding:0;border:0}
:where(.payhippo-studio) .telegram-bots .tb-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;background:transparent}
:where(.payhippo-studio) .telegram-bots .tb-title{display:flex;align-items:center;gap:12px;min-width:0}
:where(.payhippo-studio) .telegram-bots h1{font-size:20px;font-weight:600;margin:0}
:where(.payhippo-studio) .telegram-bots .tb-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;background:rgba(var(--blue-rgb,41,156,219),.1);color:var(--blue,#299cdb);font-size:22px}
:where(.payhippo-studio) .telegram-bots .tb-enable{display:flex;align-items:center;gap:8px;padding:0;margin:0;white-space:nowrap}
:where(.payhippo-studio) .telegram-bots .tb-enable .form-check-input{float:none;margin:0;width:36px;height:20px;flex-shrink:0}
:where(.payhippo-studio) .telegram-bots .tb-state{color:var(--tb-muted);font-size:12px}
:where(.payhippo-studio) .telegram-bots .tb-body{padding:24px}
:where(.payhippo-studio) .telegram-bots .tb-fields{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px}
:where(.payhippo-studio) .telegram-bots .tb-fields>div{min-width:0}
:where(.payhippo-studio) .telegram-bots .form-label{font-weight:500;margin-bottom:8px}
:where(.payhippo-studio) .telegram-bots .form-control{min-height:40px;min-width:0}
:where(.payhippo-studio) .telegram-bots .form-text{font-size:12px;margin-top:7px;color:var(--tb-muted)}
:where(.payhippo-studio) .telegram-bots .tb-token{display:flex;flex-wrap:nowrap;direction:ltr}
:where(.payhippo-studio) .telegram-bots .tb-token .form-control{border-radius:4px 0 0 4px}
:where(.payhippo-studio) .telegram-bots .tb-token .btn{border:1px solid var(--tb-border);border-left:0;border-radius:0 4px 4px 0;min-width:60px;font-size:12px}
:where(.payhippo-studio) .telegram-bots .tb-test-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-block:20px 24px}
:where(.payhippo-studio) .telegram-bots .tb-test-row>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;min-width:0}
:where(.payhippo-studio) .telegram-bots .tb-test-row .btn{flex-shrink:0}
:where(.payhippo-studio) .telegram-bots .tb-connection{font-size:13px}
:where(.payhippo-studio) .telegram-bots .tb-connection[data-state=success]{color:var(--green,#0a7566)}
:where(.payhippo-studio) .telegram-bots .tb-connection[data-state=failed]{color:var(--red,#f06548)}
:where(.payhippo-studio) .telegram-bots .tb-test-row time{font-size:12px}
:where(.payhippo-studio) .telegram-bots .tb-events{padding-block-start:24px;border-top:1px solid var(--tb-border)}
:where(.payhippo-studio) .telegram-bots legend{float:none;width:auto;font-size:14px;font-weight:600;margin-bottom:16px}
:where(.payhippo-studio) .telegram-bots .tb-event-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}
:where(.payhippo-studio) .telegram-bots .tb-event-grid .form-check{display:flex;align-items:flex-start;gap:10px;padding:0;margin:0;cursor:pointer}
:where(.payhippo-studio) .telegram-bots .tb-event-grid .form-check-input{float:none;margin:3px 0 0;flex:0 0 16px}
:where(.payhippo-studio) .telegram-bots .tb-event-grid .form-check-label{font-size:13px;line-height:22px}
:where(.payhippo-studio) .telegram-bots .tb-note{margin-top:20px}
:where(.payhippo-studio) .telegram-bots .tb-review{margin-top:24px;border-block-start:1px solid var(--tb-border);padding-block-start:20px}
:where(.payhippo-studio) .telegram-bots .tb-review summary{font-size:14px;font-weight:600;cursor:pointer}
:where(.payhippo-studio) .telegram-bots .tb-review-body{padding-block-start:18px}
:where(.payhippo-studio) .telegram-bots .tb-review-enable{display:flex;align-items:center;gap:10px;padding:0;margin:0}
:where(.payhippo-studio) .telegram-bots .tb-review-enable .form-check-input{float:none;margin:0;flex-shrink:0}
:where(.payhippo-studio) .telegram-bots #tbReviewHelp{margin-block:8px 18px}
:where(.payhippo-studio) .telegram-bots #tbAdminIds{max-width:640px}
:where(.payhippo-studio) .telegram-bots .tb-review-connection{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-block-start:16px}
:where(.payhippo-studio) .telegram-bots .tb-review-connection .btn{flex-shrink:0}
:where(.payhippo-studio) .telegram-bots #tbReviewConnection[data-state=conflict],:where(.payhippo-studio) .telegram-bots #tbReviewConnection[data-state=error]{color:var(--red,#f06548)}
:where(.payhippo-studio) .telegram-bots #tbReviewConnection[data-state=connected]{color:var(--green,#0a7566)}
:where(.payhippo-studio) .telegram-bots .tb-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;background:transparent;border-top:1px solid var(--tb-border);font-size:12px}
:where(.payhippo-studio) .telegram-bots .tb-actions{display:flex;gap:8px}
:where(.payhippo-studio) .telegram-bots .tb-actions .btn{min-height:38px}
:where(.payhippo-studio) .telegram-bots .invalid-feedback:not([hidden]){display:block}
:where(.payhippo-studio) .telegram-bots :focus-visible{outline:2px solid var(--purple,var(--purple));outline-offset:3px}
:where(.payhippo-studio) .telegram-bots [hidden]{display:none!important}
@media(max-width:767px){:where(.payhippo-studio) .telegram-bots .tb-header{padding:18px 16px;align-items:flex-start;flex-wrap:wrap;gap:16px}
:where(.payhippo-studio) .telegram-bots h1{font-size:18px}
:where(.payhippo-studio) .telegram-bots .tb-body{padding:20px 16px}
:where(.payhippo-studio) .telegram-bots .tb-fields{grid-template-columns:1fr;gap:20px}
:where(.payhippo-studio) .telegram-bots .tb-test-row{align-items:flex-start;gap:12px}
:where(.payhippo-studio) .telegram-bots .tb-test-row>div{flex-direction:column;gap:4px}
:where(.payhippo-studio) .telegram-bots .tb-test-row .btn{font-size:12px}
:where(.payhippo-studio) .telegram-bots .tb-event-grid{grid-template-columns:1fr;gap:14px}
:where(.payhippo-studio) .telegram-bots .tb-footer{padding:16px;align-items:flex-start;flex-direction:column;gap:10px}
:where(.payhippo-studio) .telegram-bots .tb-footer:has(#tbDirty:empty){gap:0}
:where(.payhippo-studio) .telegram-bots .tb-actions{width:100%;justify-content:flex-end}}
