:root {
  --atq-primary: #235BA0;
  --atq-primary-hover: #1d4b8f;
  --atq-bg: #fff; 
  --atq-text: #1f2937;
  --atq-border: #e5e7eb;
}

/* FLOATING BTN */
#atq-float-btn {
  position: fixed; bottom: 30px; right: 30px; z-index: 9999;
  background: var(--atq-primary); color: #fff; border: none; border-radius: 50px;
  padding: 12px 20px; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 25px rgba(35, 91, 160, 0.4);
  display: flex; align-items: center; gap: 10px; transition: transform .2s;
  font-family: inherit;
}
#atq-float-btn:hover { transform: translateY(-2px); }
#atq-float-badge {
  background: #fff; color: var(--atq-primary); font-size: 11px; font-weight: 800;
  padding: 2px 6px; border-radius: 10px; min-width: 20px; text-align: center;
}

/* OVERLAY */
#atq-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 10000;
  backdrop-filter: blur(2px);
}
#atq-overlay.on { display: block; }

/* SIDEBAR */
#atq-sidebar {
  position: fixed; top: 0; right: 0; height: 100vh; width: 400px; max-width: 90vw;
  background: #fff; z-index: 10001; transform: translateX(100%); transition: transform .3s ease-out;
  display: flex; flex-direction: column; box-shadow: -5px 0 30px rgba(0,0,0,.15);
  font-family: 'Inter', system-ui, sans-serif;
}
#atq-sidebar.on { transform: translateX(0); }

.atq-sb-header {
  padding: 20px; background: #fff; border-bottom: 1px solid var(--atq-border);
  display: flex; justify-content: space-between; align-items: center;
}
.atq-sb-title { font-size: 18px; font-weight: 700; color: #111; margin: 0; }
.atq-sb-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #6b7280; line-height: 1; padding: 0; }

.atq-sb-content { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.atq-sb-empty { text-align: center; color: #6b7280; font-size: 14px; padding: 40px 0; }

.atq-sb-item {
  background: #f9fafb; border: 1px solid var(--atq-border); border-radius: 8px; padding: 12px;
  display: flex; gap: 12px; position: relative;
}
.atq-sb-item-img {
  width: 48px; height: 48px; background: #fff; border-radius: 6px; 
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  border: 1px solid var(--atq-border); flex-shrink: 0; object-fit: cover;
}
.atq-sb-item-info { flex: 1; }
.atq-sb-item-name { font-size: 13px; font-weight: 600; color: #111; margin-bottom: 4px; line-height: 1.4; }
.atq-sb-item-note { font-size: 11px; color: #6b7280; font-style: italic; margin-bottom: 6px; display: block; }

.atq-sb-item-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.atq-sb-item-ctrl { display: flex; align-items: center; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; }
.atq-sb-ctrl-btn { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: #6b7280; font-size: 14px; padding: 0; }
.atq-sb-ctrl-val { width: 30px; text-align: center; font-size: 12px; font-weight: 600; line-height: 24px; }
.atq-sb-item-del { color: #ef4444; font-size: 11px; font-weight: 600; cursor: pointer; background: none; border: none; padding: 0; }

.atq-sb-footer { padding: 20px; border-top: 1px solid var(--atq-border); background: #fff; }
.atq-btn-block {
  width: 100%; padding: 14px; background: var(--atq-primary); color: #fff; border: none;
  border-radius: 8px; font-weight: 600; cursor: pointer; transition: background .2s; font-size: 15px;
  text-align: center; display: block; text-decoration: none;
}
.atq-btn-block:hover { background: var(--atq-primary-hover); color: #fff; }

/* CONFIG MODAL */
#atq-config-modal {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 10002;
  align-items: center; justify-content: center; padding: 20px;
  font-family: 'Inter', system-ui, sans-serif;
}
#atq-config-modal.on { display: flex; }
.atq-cfg-box {
  background: #fff; width: 500px; max-width: 100%; border-radius: 16px; 
  box-shadow: 0 25px 50px rgba(0,0,0,.25); overflow: hidden; display: flex; flex-direction: column;
}
.atq-cfg-header { padding: 20px; border-bottom: 1px solid var(--atq-border); display: flex; justify-content: space-between; align-items: center; }
.atq-cfg-title { font-size: 18px; font-weight: 800; color: #111; margin: 0; }
.atq-cfg-body { padding: 24px; max-height: 60vh; overflow-y: auto; }
.atq-cfg-foot { padding: 20px; border-top: 1px solid var(--atq-border); background: #f9fafb; display: flex; justify-content: flex-end; gap: 12px; }

.atq-label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.atq-textarea { width: 100%; height: 80px; border: 1px solid #d1d5db; border-radius: 6px; padding: 12px; font-family: inherit; resize: none; font-size: 14px; }
.atq-textarea:focus { outline: none; border-color: var(--atq-primary); }
.atq-qty-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.atq-qty-inp { width: 80px; font-size: 18px; font-weight: 700; padding: 8px; text-align: center; border: 1px solid #d1d5db; border-radius: 6px; }

/* CONTACT MODAL */
#atq-contact-modal {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 10003;
  align-items: center; justify-content: center; padding: 20px;
  font-family: 'Inter', system-ui, sans-serif;
}
#atq-contact-modal.on { display: flex; }
.atq-modal-content {
  background: #fff; width: 520px; max-width: 100%; border-radius: 10px; padding: 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3); margin: auto;
}
.atq-m-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.atq-m-title { font-size: 22px; font-weight: 800; color: #1e293b; margin: 0; }
.atq-frm-grp { margin-bottom: 18px; }
.atq-frm-lbl { display: block; font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.atq-frm-inp { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; font-family: inherit; transition: border .2s; }
.atq-frm-inp:focus { outline: none; border-color: var(--atq-primary); box-shadow: 0 0 0 3px rgba(35,91,160,0.15); }
.atq-btn-cancel { background: #fff; color: #374151; border: 1px solid #d1d5db; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.atq-btn-cancel:hover { background: #f3f4f6; }

/* BTN IN LOOP */
.atq-loop-btn {
  display: inline-block; background: var(--atq-primary); color: #fff; padding: 8px 16px;
  border-radius: 4px; font-size: 14px; font-weight: 600; text-decoration: none;
  cursor: pointer; margin-top: 10px; border: none;
}
.atq-loop-btn:hover { background: var(--atq-primary-hover); color: #fff; }
