/* Kaspi inventory editor — explicit setup, safe publication states. */
.kaspi-feed-setup {
  margin: 18px 0 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #fbfbff 62%, #f3f1ff 100%);
  color: #172033;
  box-shadow: 0 15px 36px rgba(42, 35, 105, 0.07);
}
.kaspi-feed-intro { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; padding: 24px 26px 20px; }
.kaspi-feed-icon { position: relative; display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; background: linear-gradient(145deg, #ef3841, #ce1f2a); color: #fff; box-shadow: 0 13px 24px rgba(222, 39, 49, .2); }
.kaspi-feed-icon span { font-size: 20px; font-weight: 850; }
.kaspi-feed-icon i { position: absolute; right: -2px; bottom: -2px; width: 17px; height: 17px; border: 4px solid #fff; border-radius: 50%; background: #2cc99d; }
.kaspi-feed-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 7px; }
.kaspi-feed-title-row p { margin: 0; color: #6a5ed4; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kaspi-feed-title-row span { border-radius: 999px; background: #eeeafd; color: #594dbd; padding: 5px 9px; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.kaspi-feed-intro h3 { margin: 0; color: #161d2d; font-size: clamp(20px, 2.2vw, 28px); font-weight: 760; line-height: 1.15; letter-spacing: -.035em; }
.kaspi-feed-intro > div > p:last-child { max-width: 760px; margin: 10px 0 0; color: #647084; font-size: 14px; line-height: 1.6; }
.kaspi-feed-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; border-top: 1px solid rgba(15,23,42,.08); border-bottom: 1px solid rgba(15,23,42,.08); background: rgba(15,23,42,.07); list-style: none; }
.kaspi-feed-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; background: rgba(255,255,255,.88); padding: 17px 20px; }
.kaspi-feed-steps li > b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: #f0edff; color: #5c50c5; font-size: 11px; }
.kaspi-feed-steps li span { display: grid; gap: 3px; }
.kaspi-feed-steps strong { color: #263046; font-size: 14px; font-weight: 750; }
.kaspi-feed-steps small { color: #7a8393; font-size: 12px; line-height: 1.5; }
.kaspi-feed-disclosure > summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; padding: 0 26px; color: #3f485c; font-size: 14px; font-weight: 750; }
.kaspi-feed-disclosure > summary::-webkit-details-marker { display: none; }
.kaspi-feed-disclosure > summary i { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(15,23,42,.1); border-radius: 10px; font-style: normal; transition: transform .18s ease; }
.kaspi-feed-disclosure[open] > summary i { transform: rotate(180deg); }
.kaspi-feed-form { border-top: 1px solid rgba(15,23,42,.08); padding: 23px 26px 26px; }
.kaspi-feed-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kaspi-feed-fields label,
.kaspi-feed-result label { display: grid; gap: 7px; color: #566074; font-size: 12px; font-weight: 750; }
.kaspi-feed-fields input,
.kaspi-feed-result input { width: 100%; min-height: 45px; border: 1px solid rgba(15,23,42,.13); border-radius: 12px; outline: 0; background: #fff; color: #172033; padding: 0 13px; font-size: 14px; font-weight: 600; transition: border-color .15s ease, box-shadow .15s ease; }
.kaspi-feed-fields input:focus,
.kaspi-feed-result input:focus { border-color: #7669e3; box-shadow: 0 0 0 3px rgba(108,92,231,.12); }
.kaspi-feed-confirm { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 16px; border-radius: 12px; background: #fff8ec; color: #735f3d; padding: 13px 14px; font-size: 12px; line-height: 1.55; }
.kaspi-feed-confirm input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: #6c5ce7; }
.kaspi-feed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; }
.kaspi-feed-actions button { min-height: 40px; border-radius: 11px; padding: 0 14px; }
.kaspi-feed-actions a { margin-left: auto; color: #6156c8; font-size: 12px; font-weight: 750; text-decoration: none; }
.kaspi-feed-status { min-height: 20px; margin: 12px 0 0; color: #6d7687; font-size: 12px; line-height: 1.5; }
.kaspi-feed-status.success { color: #188363; }.kaspi-feed-status.error { color: #bd3c45; }
.kaspi-feed-result { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; margin-top: 14px; border: 1px solid rgba(33,174,133,.2); border-radius: 14px; background: #f0fbf7; padding: 14px; }
.kaspi-feed-result.hidden { display: none; }
.kaspi-feed-result > p { grid-column: 1 / -1; margin: 1px 0 0; color: #5d776f; font-size: 12px; line-height: 1.5; }

.seller-inventory-editor { display: grid; grid-template-columns: minmax(92px, 112px) auto; gap: 7px; align-items: center; min-width: 222px; }
.seller-inventory-editor label { position: relative; display: block; }
.seller-inventory-editor label > span { position: absolute; z-index: 1; top: 50%; right: 9px; transform: translateY(-50%); color: #929aaa; font-size: 11px; font-weight: 700; pointer-events: none; }
.seller-inventory-editor input { width: 100%; min-height: 40px; box-sizing: border-box; border: 1px solid rgba(15,23,42,.13); border-radius: 10px; outline: 0; background: #fff; color: #172033; padding: 7px 33px 7px 10px; font-size: 14px; font-weight: 700; }
.seller-inventory-editor input:focus { border-color: #7669e3; box-shadow: 0 0 0 3px rgba(108,92,231,.1); }
.seller-inventory-editor button { min-height: 40px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.seller-inventory-editor small { grid-column: 1 / -1; min-height: 16px; color: #798294; font-size: 11px; line-height: 1.4; }
.seller-inventory-editor small.success { color: #168263; }.seller-inventory-editor small.error { color: #c23c45; }

@media (max-width: 900px) {
  .kaspi-feed-steps { grid-template-columns: 1fr; }
  .kaspi-feed-fields { grid-template-columns: 1fr; }
  .kaspi-feed-actions a { width: 100%; margin-left: 0; }
}
@media (max-width: 640px) {
  .kaspi-feed-setup { border-radius: 18px; }
  .kaspi-feed-intro { grid-template-columns: 45px 1fr; gap: 13px; padding: 19px; }
  .kaspi-feed-icon { width: 45px; height: 45px; border-radius: 14px; }
  .kaspi-feed-intro h3 { font-size: 20px; }
  .kaspi-feed-steps li { padding: 14px 18px; }
  .kaspi-feed-disclosure > summary { padding: 0 18px; }
  .kaspi-feed-form { padding: 18px; }
  .kaspi-feed-actions { display: grid; grid-template-columns: 1fr; }
  .kaspi-feed-actions button { width: 100%; }
  .kaspi-feed-result { grid-template-columns: 1fr; }
  .kaspi-feed-result button { width: 100%; }
}
