.merchant-main{max-width:850px}.merchant-account-bar{display:flex;gap:20px;align-items:center;flex-wrap:wrap;font-size:13px;margin-bottom:30px}.merchant-account-bar p{margin:0}.merchant-account-bar a{color:inherit}.application-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px}.application-toolbar h1{font-size:26px;font-weight:500}.workflow-editor{max-width:600px;margin:28px 0}.application-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-top:24px}.application-actions .brand-button{width:auto;padding:10px 18px;font-size:13px;border-radius:0}.workflow .application-check{display:flex;gap:10px;align-items:flex-start}.workflow .application-check input{width:16px;height:16px;flex-shrink:0}.application-note{color:#666;font-size:12px}.application-row{padding:18px 0;border-bottom:1px solid #ddd;overflow-wrap:anywhere}.application-row p{margin:6px 0}.application-row button,.application-row a{margin-right:18px}.application-dialog{width:460px;max-width:calc(100vw - 24px);max-height:90dvh;overflow:auto;padding:20px;border:1px solid #ddd;background:#fff;color:#171717}.application-preview{overflow-wrap:anywhere}.application-preview h3{margin:16px 0 10px}.application-preview p{font-size:13px;line-height:1.6;margin:8px 0;white-space:pre-wrap}.application-preview-images{display:flex;gap:8px;overflow-x:auto;margin:16px 0}.application-preview-images img{width:160px;aspect-ratio:4/5;object-fit:cover;flex-shrink:0}.application-review-note{display:block;width:100%;max-width:560px;margin:14px 0;padding:10px;border:1px solid #aaa;font:inherit}.application-review-actions{display:flex;gap:20px;flex-wrap:wrap;margin:16px 0}.application-dialog::backdrop{background:#0006}#workflow-status:empty{display:none}#workflow-status{margin:15px 0}.merchant-main details{margin-top:24px;font-size:13px}.merchant-main details #merchant-form{max-width:400px}.merchant-main details input{max-width:100%}
.image-actions{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;margin-top:10px}.image-actions button{min-height:36px}.workflow #brand-images[hidden]{display:none}
.brand-preview-dialog {
  width: min(380px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
.brand-preview-dialog .expanded-media[hidden] + .card-content { padding-top: 50px; }
.workflow-images>div{width:min(240px,100%);min-width:0}.workflow-images img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}.workflow-images label{display:block;margin-top:10px;font-size:12px}.workflow-images input{width:100%;min-width:0;font-size:12px}.workflow-images .image-actions{gap:8px 16px;font-size:12px}
.listing-editor{border-top:1px solid #ddd;margin-top:28px;padding-top:12px}.listing-editor .workflow-editor{margin-left:0}.listing-editor .application-toolbar h2{font-size:22px;font-weight:500}
#listing-details-editor{border:0;padding:0;min-width:0}#listing-details-editor h3,#listing-details-editor legend{font-size:14px;font-weight:500}#listing-details-editor select[multiple]{height:auto;min-height:132px}#listing-details-editor label{min-width:0}
.workflow .workflow-editor>fieldset{border:0;padding:0;min-width:0;margin-top:28px}
.workflow .workflow-editor>fieldset>legend{font-size:14px;font-weight:500;margin-bottom:8px}
.workflow .workflow-editor>label{margin:16px 0}
.workflow .workflow-editor input:not([type=checkbox]):not([type=file]),.workflow .workflow-editor select{min-height:44px}
.workflow .image-actions button,.workflow .application-actions button,#close-listing-editor{min-height:44px}
.workflow .image-position{margin:0 0 8px;color:#666;font-size:12px}
.workflow .application-toolbar{flex-wrap:wrap}
.workflow .application-actions{gap:12px 20px}
.workflow .image-actions button:focus-visible{outline:2px solid #37342e;outline-offset:2px}
@media(max-width:600px){.workflow .workflow-editor input:not([type=checkbox]):not([type=file]),.workflow .workflow-editor textarea,.workflow .workflow-editor select{font-size:16px}}
.application-dialog.merchant-image-dialog { width: min(420px, calc(100vw - 24px)); padding: 16px; }
.merchant-image-dialog h2 { font-size: 17px; font-weight: 500; }
.merchant-image-modes, .merchant-image-actions { display: flex; align-items: center; gap: 16px; }
.merchant-image-modes { margin: 6px 0; }
.merchant-image-modes button { min-width: 48px; }
.merchant-image-modes button[aria-pressed=true] { text-decoration: underline; text-underline-offset: 4px; }
.merchant-image-frame { width: min(100%, 328px, max(140px, calc((90dvh - 190px) * .8))); aspect-ratio: 4 / 5; margin: 0 auto; position: relative; overflow: hidden; touch-action: none; background: #eeeae5; }
.merchant-image-frame > img, .merchant-image-frame > canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.merchant-image-frame .cropper-view-box, .merchant-image-frame .cropper-face { outline: none; }
.merchant-image-zoom { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; font-size: 13px; }
.merchant-image-zoom input { flex: 1; min-width: 0; min-height: 36px; accent-color: #37342e; }
.merchant-image-note { min-height: 18px; font-size: 12px; color: #666; }
.merchant-image-actions { justify-content: flex-end; gap: 12px; }
.merchant-image-actions .brand-button { width: auto; min-height: 40px; border-radius: 0; padding: 0 14px; }

.workflow #brand-editor { max-width: 830px; }
#brand-editor > label, #brand-editor > fieldset, #brand-editor > #category-status { max-width: 600px; }
.merchant-images {
  min-width: 0;
  margin-top: 28px;
  padding: clamp(16px, 4vw, 28px) clamp(16px, 5vw, 40px);
  border: 1px solid #e5e2de;
  background: #f8f7f6;
  font-size: 15px;
}
.workflow .merchant-images h2 { margin: 0 0 4px; font-size: 28px; line-height: 1.2; font-weight: 500; }
#image-upload-hint, #image-count { color: #615f5c; }
#image-drop { margin-top: 20px; }
.image-drop-copy { display: grid; gap: 4px; }
#image-drop-button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  width: 100%;
  min-height: 172px;
  padding: 16px;
  border: 1px dashed #c4bfba;
  border-radius: 6px;
  background: transparent;
  color: #615f5c;
  cursor: pointer;
}
#image-drop.is-dragging #image-drop-button, #image-drop-button:hover:not(:disabled) { border-color: #756e66; background: #eeece9; }
#image-drop-button:disabled { pointer-events: none; }
.merchant-images button:disabled, .merchant-application-footer button:disabled { opacity: .6; cursor: default; }
#image-status:empty, #image-limit-status:empty, #editor-status:empty, .merchant-images .workflow-images:empty { display: none; }
#image-status, #image-limit-status, #editor-status { margin: 10px 0 0; font-size: 13px; }
#image-status { color: #812f25; }
.merchant-images .workflow-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr)); gap: 16px; margin-top: 20px; }
.merchant-images .workflow-images > div { width: 100%; max-width: 240px; }
.merchant-application-footer { margin-top: 24px; font-size: 15px; }
.merchant-application-footer .application-check { gap: 16px; align-items: center; margin: 0 0 8px; }
.merchant-application-footer .application-check input { width: 20px; height: 20px; margin: 0; accent-color: #37342e; }
.merchant-application-footer .application-note { font-size: 13px; }
.workflow .merchant-application-footer .application-actions { margin-top: 32px; gap: 8px 40px; }
.merchant-application-footer .application-actions button { padding: 0 2px; font-size: inherit; }
.merchant-application-footer .application-actions .brand-button { min-width: min(186px, 100%); padding: 0 24px; border-radius: 2px; background: #d8d5cf; color: #171717; }
@media (max-width: 600px) {
  #image-drop-button { min-height: 144px; }
  .workflow .merchant-application-footer .application-actions { gap: 8px 18px; }
}
