.aksrt-widget-form { --aksrt-field-border: #dcdcde; --aksrt-field-accent: #0991f5; display: grid; gap: 0; padding: 0 0 8px; } .aksrt-widget-field { min-width: 0; padding: 11px 0; border-bottom: 1px solid #eee; } .aksrt-widget-field[hidden] { display: none !important; } .aksrt-widget-field__label { display: block; margin-bottom: 6px; font-weight: 600; color: #0991f5; } .customize-control-widget_form .aksrt-widget-field__label { color: inherit; } .aksrt-widget-field .description { margin: -2px 0 7px; font-size: 12px; } .aksrt-widget-field--switcher { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; } .aksrt-widget-field--switcher .aksrt-widget-field__label { margin: 0; } .aksrt-widget-field--switcher .description { grid-column: 1 / -1; grid-row: 2; } .aksrt-widget-field--switcher > .aksrt-widget-switch { grid-column: 2; grid-row: 1; } /* Reference CSF row modifiers. */ .aksrt-widget-field.is-compact { margin-top: -12px; padding-top: 0; border-top: 0; } .aksrt-widget-field__subtitle { margin: 0 0 5px; color: #646970; font-size: 12px; } .aksrt-widget-field.is-inline .aksrt-widget-choices--radio label > span { padding: 0; border: 0; background: none; box-shadow: none; } .aksrt-widget-field.is-inline .aksrt-widget-choices--radio { gap: 4px 14px; } .aksrt-widget-field--content { padding: 10px 0; color: #50575e; } .aksrt-widget-field--subheading { padding: 10px 12px; margin: 6px 0 0; border: 0; background: #f6f7f9; color: #0991f5; font-weight: 600; } .aksrt-widget-field--submessage { padding: 8px 12px; margin: 8px 0; border: 0; border-radius: 4px; font-size: 13px; } .aksrt-widget-field--submessage-normal { background: #f5f5f5; color: #555; } .aksrt-widget-field--submessage-success { background: rgba(18, 185, 40, .1); color: #12b928; } .aksrt-widget-field--submessage-info { background: rgba(41, 151, 247, .1); color: #2997f7; } .aksrt-widget-field--submessage-warning { background: rgba(255, 156, 57, .1); color: #e18c47; } .aksrt-widget-field--submessage-danger { background: rgba(255, 69, 69, .1); color: #ff4646; } .aksrt-widget-field .c-yellow { color: #fc844c; } .aksrt-widget-switch { display: inline-flex; cursor: pointer; } .aksrt-widget-switch input { position: absolute; opacity: 0; } .aksrt-widget-switch span { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #8c8f94; transition: background .18s ease; } .aksrt-widget-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s ease; } .aksrt-widget-switch input:checked + span { background: var(--aksrt-field-accent); } .aksrt-widget-switch input:checked + span::after { transform: translateX(16px); } .aksrt-widget-switch input:focus-visible + span { outline: 2px solid #72aee6; outline-offset: 2px; } .aksrt-widget-choices { display: flex; flex-wrap: wrap; gap: 6px; } .aksrt-widget-choices label input { position: absolute; opacity: 0; } .aksrt-widget-choices label > span { display: block; padding: 5px 10px; border: 1px solid var(--aksrt-field-border); border-radius: 4px; background: #f7f8fa; cursor: pointer; } .aksrt-widget-choices label input:checked + span { border-color: var(--aksrt-field-accent); color: var(--aksrt-field-accent); box-shadow: 0 0 0 1px var(--aksrt-field-accent); } .aksrt-widget-choices label input:focus-visible + span { outline: 2px solid #72aee6; outline-offset: 2px; } .aksrt-widget-choices--palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 5px; } .aksrt-widget-choices--palette label > span { padding: 4px; text-align: center; } .aksrt-widget-palette-choice { display: grid; justify-items: center; gap: 3px; } .aksrt-widget-palette-choice i { display: block; width: 100%; height: 18px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 3px; } .aksrt-widget-palette-choice small { font-size: 10px; line-height: 1.2; } .aksrt-widget-number, .aksrt-widget-link, .aksrt-widget-background { display: grid; gap: 7px; } .aksrt-widget-number { grid-template-columns: minmax(0, 1fr) 50px; align-items: center; } .aksrt-widget-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; } .aksrt-widget-upload img { width: 100%; max-height: 150px; border-radius: 6px; object-fit: cover; } .aksrt-widget-upload .widefat { flex: 1 1 100%; } .aksrt-widget-spacing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .aksrt-widget-spacing--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aksrt-widget-spacing label span { display: block; margin-bottom: 3px; color: #646970; text-align: center; } .aksrt-widget-repeater__row, .aksrt-widget-nested { margin-bottom: 9px; border: 1px solid var(--aksrt-field-border); border-radius: 4px; background: #fff; } .aksrt-widget-repeater__bar { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-bottom: 1px solid var(--aksrt-field-border); background: #f9fafc; } .aksrt-widget-repeater__bar::-webkit-details-marker { display: none; } .aksrt-widget-repeater__bar { list-style: none; cursor: pointer; } .aksrt-widget-repeater__bar::after { content: "\f140"; margin-left: auto; font: 20px/1 dashicons; color: #646970; } .aksrt-widget-repeater__row[open] > .aksrt-widget-repeater__bar::after { content: "\f142"; } .aksrt-widget-repeater__bar .dashicons { cursor: move; } .aksrt-widget-repeater__bar strong { flex: 1; } .aksrt-widget-repeater__remove:disabled { visibility: hidden; } .aksrt-widget-repeater__add:disabled { opacity: .55; cursor: not-allowed; } .aksrt-widget-repeater__fields, .aksrt-widget-nested__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px; } .aksrt-widget-nested > summary { padding: 9px 10px; font-weight: 600; cursor: pointer; } /* Keep accordions inside the narrow sidebar column: grid/flex items default to min-width:auto and grow to their widest child. */ .aksrt-widget-form, .aksrt-widget-link, .aksrt-widget-background { grid-template-columns: minmax(0, 1fr); } .aksrt-widget-repeater, .aksrt-widget-repeater__row, .aksrt-widget-nested, .aksrt-widget-nested__body > *, .aksrt-widget-repeater__fields > * { min-width: 0; max-width: 100%; box-sizing: border-box; } .aksrt-widget-form input:not([type="checkbox"]):not([type="radio"]), .aksrt-widget-form select, .aksrt-widget-form textarea { max-width: 100%; box-sizing: border-box; } .aksrt-widget-background select { width: 100%; } .aksrt-widget-repeater__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .aksrt-widget-form input[type="text"], .aksrt-widget-form input[type="url"], .aksrt-widget-form input[type="number"], .aksrt-widget-form select, .aksrt-widget-form textarea { min-height: 32px; border-color: #d5d8dc; border-radius: 3px; box-shadow: none; } .aksrt-widget-form input:focus, .aksrt-widget-form select:focus, .aksrt-widget-form textarea:focus { border-color: #0991f5; box-shadow: 0 0 0 1px #0991f5; } .aksrt-widget-form .button { min-height: 32px; line-height: 30px; border-radius: 3px; } .aksrt-widget-form .button-primary { background: #0991f5; border-color: #087bcf; } .aksrt-widget-form-lazy { padding: 10px 0; } .aksrt-widget-form-lazy__status:empty { display: none; } /* Reference t-notice boxes (lazy form status). */ .t-notice { padding: 8px 12px; border-radius: 4px; font-size: 13px; line-height: 1.5; } .t-notice.t-loading { background: rgba(255, 156, 57, .1); color: #e18c47; } .t-notice.t-error { background: rgba(255, 69, 69, .1); color: #ff4646; } /* Sidebar toolbar: export / import / template import. */ .aksrt-wie-toolbar { margin: 8px 0 12px; } .aksrt-wie-toolbar .button { margin-right: 6px; margin-bottom: 4px; } .aksrt-wie-btn-delete { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; color: #b32d2e; font-size: 12px; cursor: pointer; } .aksrt-wie-btn-delete::before { font: normal 16px/1 dashicons; content: ' 182'; } .aksrt-wie-btn-delete:hover, .aksrt-wie-btn-delete:focus { color: #d63638; } /* WIE modal shell. */ .aksrt-wie-modal { display: none; position: fixed; inset: 0; z-index: 1000100; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; } .aksrt-wie-modal.is-open { display: flex; } .aksrt-wie-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); } .aksrt-wie-modal__dialog { position: relative; z-index: 1; width: 100%; max-width: min(920px, 96vw); max-height: 90vh; overflow: auto; padding: 18px 20px 16px; box-sizing: border-box; border: 1px solid #c3c4c7; border-radius: 6px; background: #fff; box-shadow: 0 8px 32px rgba(0, 0, 0, .14); } .aksrt-wie-modal__close { position: absolute; top: 10px; right: 10px; width: 2em; height: 2em; padding: 0; border: none; background: transparent; color: #646970; font-size: 20px; line-height: 1; cursor: pointer; } .aksrt-wie-modal__close:hover { color: #1d2327; } .aksrt-wie-modal__title { margin: 0 32px 10px 0; font-size: 16px; line-height: 1.3; } .aksrt-wie-modal__hint { margin: 0 0 10px; font-size: 13px; } .aksrt-wie-modal__import-mode { display: flex; flex-wrap: wrap; gap: 16px; align-items: baseline; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #dcdcde; border-radius: 4px; background: #f6f7f7; } .aksrt-wie-modal__import-mode-title { margin: 0 0 8px; font-weight: 600; } .aksrt-wie-modal__import-mode-row { display: block; margin: 6px 0 0; cursor: pointer; } .aksrt-wie-modal__import-mode-row input { margin-right: 6px; vertical-align: middle; } .aksrt-wie-modal__textarea { width: 100%; min-height: 240px; box-sizing: border-box; font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 1.45; } .aksrt-wie-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; } .aksrt-wie-modal__result { margin: 10px 0 0; font-size: 13px; } .aksrt-wie-modal__result.is-ok { color: #008a20; } .aksrt-wie-modal__result.is-warn { color: #996800; } .aksrt-wie-modal__result.is-err { color: #d63638; } .aksrt-wie-modal__reload-wrap { margin: 12px 0 0; } .aksrt-wie-remind { margin-bottom: 10px; color: #fc844c; font-size: .9em; } .aksrt-wie-remind b { color: inherit; } /* Template picker layer. */ .aksrt-wie-template-layer { z-index: 1000120; } .aksrt-wie-template-list-wrap { margin-bottom: 12px; } .aksrt-wie-template-list { display: flex; flex-wrap: wrap; gap: 10px; max-height: 42vh; overflow: auto; } .aksrt-wie-template-item { flex: 1 1 30%; min-width: 360px; } .aksrt-wie-template-item-row { display: flex; gap: 8px; align-items: flex-start; height: 100%; } .aksrt-wie-template-item-label { display: flex; flex: 1 1 auto; gap: 10px; align-items: flex-start; min-width: 0; height: stretch; margin: 0; padding: 10px 12px; border: 1px solid #efeeee; border-radius: 8px; background: #fbfbfb; cursor: pointer; } .aksrt-wie-template-item-label:hover { background: #f7fbfe; } .aksrt-wie-template-item-label input[type="radio"] { flex-shrink: 0; margin-top: 3px; } .aksrt-wie-template-item-meta { display: flex; flex-direction: column; gap: 4px; } .aksrt-wie-template-item-title { font-weight: 600; } .aksrt-wie-template-item-desc { color: #646970; font-size: 12px; line-height: 1.4; } .aksrt-wie-template-item-remind { color: #fc844c; font-size: 12px; line-height: 1.4; } .aksrt-wie-template-item-modules { margin: 0; padding-left: 1.2em; font-size: 12px; line-height: 1.5; color: #50575e; } @media (max-width: 600px) { .aksrt-wie-modal { padding: 10px; } .aksrt-wie-template-item { min-width: 100%; } } @media (prefers-reduced-motion: reduce) { .aksrt-widget-switch span, .aksrt-widget-switch span::after { transition: none; } } /* terms: searchable multi-select with drag ordering */ .aksrt-widget-terms .aksrt-widget-terms__selected { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; } .aksrt-widget-terms .aksrt-widget-terms__selected:empty { display: none; } .aksrt-widget-terms .aksrt-widget-terms__chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 4px; background: #f0f0f1; border: 1px solid #dcdcde; font-size: 12px; cursor: move; } .aksrt-widget-terms .aksrt-widget-terms__chip .dashicons { font-size: 14px; width: 14px; height: 14px; } .aksrt-widget-terms .aksrt-widget-terms__remove { border: 0; background: none; cursor: pointer; line-height: 1; padding: 0 0 0 2px; text-decoration: none; } .aksrt-widget-terms .aksrt-widget-terms__search { margin-bottom: 6px; } .aksrt-widget-terms .aksrt-widget-terms__options { max-height: 180px; overflow-y: auto; border: 1px solid #dcdcde; border-radius: 4px; padding: 4px 8px; background: #fff; } .aksrt-widget-terms .aksrt-widget-terms__option { display: block; padding: 2px 0; }