/* AG OneClickBuy 2.3.0 — refined admin button editor (opsbalance.com) */
.ag-ocb-editor { padding: 0 !important; overflow: hidden; border: 1px solid #e4e7ea; border-radius: 16px; box-shadow: 0 18px 40px rgba(9,9,11,.08); }
.ag-ocb-editor__heading { display: flex; justify-content: space-between; gap: 24px; padding: 22px 26px; background: linear-gradient(135deg, #2f3338 0%, #1e2228 100%); color: #fff; }
.ag-ocb-editor__heading-title { display: flex; align-items: center; gap: 14px; }
.ag-ocb-editor__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(38,185,212,.14); font-size: 22px; flex-shrink: 0; }
.ag-ocb-editor__heading h2 { margin: 0 0 6px; color: #fff; font-size: 18px; }
.ag-ocb-editor__heading p { margin: 0; color: #d6d9dd; font-size: 13px; }
.ag-ocb-editor__preview-wrap { min-width: 280px; padding: 12px; background: linear-gradient(160deg, #1b1e23, #272c34); border-radius: 12px; text-align: center; }
.ag-ocb-editor__preview-label { display: block; margin-bottom: 12px; color: #aeb4bc; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.ag-ocb-editor__preview-button { width: var(--ag-ocb-preview-width, 100%); padding: var(--ag-ocb-padding, 12px 20px); color: var(--ag-ocb-text, #fff); background: var(--ag-ocb-bg, #ea580c); border: 0; border-radius: 8px; font-size: var(--ag-ocb-font-size, 16px); font-weight: var(--ag-ocb-font-weight, 700); line-height: var(--ag-ocb-line-height, 1.2); transition: .2s ease; }
.ag-ocb-editor__preview-button:hover { color: var(--ag-ocb-text-hover, #fff); background: var(--ag-ocb-bg-hover, #c2410c); }
.ag-ocb-editor__tabs { display: flex; background: #343a41; gap: 4px; padding: 6px 8px 0; }
.ag-ocb-editor__state-tabs { display: flex; padding: 0 0 12px; gap: 6px; }
.ag-ocb-editor__tabs button, .ag-ocb-editor__state-tabs button { border: 0; background: transparent; cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.ag-ocb-editor__tabs button { flex: none; padding: 11px 20px; font-size: 13px; font-weight: 700; border-radius: 8px 8px 0 0; color: #b6bcc4; }
.ag-ocb-editor__tabs button:hover { background: #40474f; color: #fff; }
.ag-ocb-editor__tabs button.active { background: #fbfcfe; color: #14232b; box-shadow: none; }
.ag-ocb-editor__tabs button.active::after { content: ''; display: block; height: 2px; margin-top: 6px; background: #26b9d4; border-radius: 2px; }
.ag-ocb-editor__tabs button:focus-visible, .ag-ocb-editor__state-tabs button:focus-visible { outline: 3px solid #26b9d4; outline-offset: -3px; }
.ag-ocb-editor__state-tabs button { flex: none; padding: 8px 16px; font-size: 12px; font-weight: 700; border-radius: 999px; background: #eef1f5; color: #4b5563; }
.ag-ocb-editor__state-tabs button:hover { background: #e2e6ec; color: #1f2937; }
.ag-ocb-editor__state-tabs button.active { background: #26b9d4; color: #14232b; box-shadow: none; }
.ag-ocb-editor__section { display: none; padding: 26px; background: #fbfcfe; }
.ag-ocb-editor__section.active { display: block; }
.ag-ocb-editor__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ag-ocb-editor__grid label, .ag-ocb-editor__box-grid label, .ag-ocb-editor__full { display: flex; flex-direction: column; gap: 6px; color: #3f4650; font-weight: 600; font-size: 12.5px; }
.ag-ocb-editor input[type=text], .ag-ocb-editor input[type=number], .ag-ocb-editor select, .ag-ocb-editor textarea { width: 100%; min-height: 38px; border: 1px solid #d5dae1; border-radius: 8px; padding: 7px 9px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.ag-ocb-editor input[type=text]:focus, .ag-ocb-editor input[type=number]:focus, .ag-ocb-editor select:focus, .ag-ocb-editor textarea:focus { outline: none; border-color: #26b9d4; box-shadow: 0 0 0 3px rgba(38,185,212,.16); }
.ag-ocb-editor input[type=color] { width: 100%; height: 42px; padding: 3px; border: 1px solid #d5dae1; border-radius: 8px; cursor: pointer; }
.ag-ocb-editor__check { flex-direction: row !important; align-items: center; gap: 8px; padding-top: 30px !important; }
.ag-ocb-editor__box-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.ag-ocb-editor__box-grid strong { grid-column: 1 / -1; margin-top: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #8a919b; }
.ag-ocb-editor__responsive { display: flex; gap: 18px; margin-bottom: 20px; padding: 12px 14px; background: #f1f4f8; border-radius: 10px; }
.ag-ocb-editor__responsive h3 { width: 100%; margin: 0 0 8px; font-size: 13px; }
.ag-ocb-editor__responsive label { display: flex; align-items: center; gap: 5px; }
.ag-ocb-editor__footer { display: flex; gap: 8px; padding: 14px 26px; border-top: 1px solid #e4e7ea; background: #f3f5f8; }
.ag-ocb-editor__footer .btn { border-radius: 8px; font-weight: 700; padding: 10px 18px; }
.ag-ocb-editor__footer .btn-primary { background: #ea580c; color: #fff; border: 1px solid #ea580c; }
.ag-ocb-editor__footer .btn-default { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.ag-ocb-editor__footer .btn-default:hover { background: #f3f4f6; }
@media (max-width: 900px) { .ag-ocb-editor__heading { flex-direction: column; } .ag-ocb-editor__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ag-ocb-editor__tabs button { flex: 1; } }
