.paid-sms-settings-row { display: flex; align-items: center; gap: 1rem; }
.paid-sms-settings-row > label { flex: 1; min-width: 0; }
.paid-sms-settings-row > button { flex: 0 0 auto; }
.paid-sms-editor-dialog { width: min(1080px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #d5dfeb; border-radius: 18px; box-sizing: border-box; }
.paid-sms-editor-dialog::backdrop { background: #172b4c99; }
.paid-sms-editor-card { display: flex; flex-direction: column; max-height: calc(100dvh - 28px); min-height: 0; }
.paid-sms-editor-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 20px 22px; border-bottom: 1px solid #d8e2ef; }
.paid-sms-editor-header h2 { margin: 0 0 .5rem; }
.paid-sms-editor-header p { margin: 0; color: #63758d; }
.paid-sms-editor-body { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; padding: 22px; min-height: 0; overflow: auto; }
.paid-sms-editor-preview { min-width: 0; }
.paid-sms-editor-preview .panel-note { margin-bottom: 0; }
.paid-sms-editor-fields { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.paid-sms-editor-fields > label, .paid-sms-test-content > label { display: grid; gap: .5rem; }
.paid-sms-editor-fields > label:not(.paid-sms-normalize), .paid-sms-test-content > label { font-weight: 600; }
.paid-sms-editor-fields textarea, .paid-sms-test input { box-sizing: border-box; width: 100%; border: 1px solid #c8d5e7; border-radius: 10px; padding: 11px 12px; background: #fff; color: #173452; font: inherit; font-weight: 400; line-height: 1.45; }
.paid-sms-editor-fields textarea:focus, .paid-sms-test input:focus { outline: 2px solid #4b75cd; outline-offset: 1px; }
.paid-sms-editor-fields textarea { width: 100%; min-height: 160px; resize: vertical; }
.paid-sms-marker-section p { color: #63758d; font-size: .9rem; margin: .35rem 0 .75rem; }
.paid-sms-disclosure { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .85rem; border: 1px solid #c8d5e7; border-radius: 10px; background: #f7faff; color: #173452; cursor: pointer; font-weight: 600; list-style: none; }
.paid-sms-disclosure::-webkit-details-marker { display: none; }
.paid-sms-disclosure::after { content: "+"; font-size: 1.2rem; }
details[open] > .paid-sms-disclosure::after { content: "−"; }
.paid-sms-disclosure:focus-visible { outline: 2px solid #4b75cd; outline-offset: 1px; }
.paid-sms-marker-list { display: flex; gap: .5rem; flex-wrap: wrap; }
.paid-sms-marker-list > button { display: grid; gap: .2rem; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.paid-sms-marker-list code { font-size: .75rem; color: #526980; }
.paid-sms-editor-fields .paid-sms-normalize { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem; border: 1px solid #d6e0ef; border-radius: 10px; }
.paid-sms-normalize > input { flex: 0 0 auto; margin-top: .2rem; width: 1.1rem; height: 1.1rem; }
.paid-sms-validation { margin: 0; color: #9c2d2d; overflow-wrap: anywhere; }
.paid-sms-validation:empty { display: none; }
.paid-sms-test-content { display: grid; gap: .7rem; padding: 1rem; }
.paid-sms-test p { margin: 0; }
.paid-sms-test p { font-size: .85rem; line-height: 1.5; color: #63758d; }
.paid-sms-editor-status { padding: 0 22px; margin: .75rem 0; overflow-wrap: anywhere; }
.paid-sms-editor-status:empty { margin: 0; }
.paid-sms-editor-status.is-error { color: #a12d2d; }
.paid-sms-editor-actions { display: flex; justify-content: flex-end; gap: .7rem; flex-shrink: 0; padding: 16px 22px; border-top: 1px solid #d8e2ef; background: #fff; }
@media (max-width: 740px) {
  .paid-sms-settings-row { align-items: flex-start; gap: .6rem; }
  .paid-sms-editor-dialog { width: calc(100vw - 12px); max-width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  .paid-sms-editor-card { max-height: calc(100dvh - 14px); }
  .paid-sms-editor-header { padding: 14px; }
  .paid-sms-editor-body { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 14px; }
  .paid-sms-editor-preview .mp-phone { width: 300px; height: 480px; margin: 0 auto; }
  .paid-sms-editor-actions { padding: 12px 14px; }
  .paid-sms-editor-actions > button { flex: 1; min-width: 0; white-space: normal; }
}
