/* ================================================================
 * Nexus Global HR — Cookie Consent Banner + Preferences Modal
 * Added: 2026-06-27
 * ================================================================ */

.nx-cookie-banner, .nx-cookie-banner *,
.nx-cookie-modal, .nx-cookie-modal * {
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.nx-cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 2147483645;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  padding: 18px 22px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
  transform: translateY(20px); opacity: 0; visibility: hidden;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .35s ease, visibility .35s ease;
}
.nx-cookie-banner.nx-show { transform: translateY(0); opacity: 1; visibility: visible; }

.nx-cookie-icon { font-size: 32px; line-height: 1; flex: 0 0 auto; }
.nx-cookie-text { flex: 1 1 320px; min-width: 260px; color: #1f2937; font-size: 14px; line-height: 1.55; }
.nx-cookie-text strong { color: #0f172a; font-weight: 700; }
.nx-cookie-text a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }

.nx-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex: 0 1 auto; }

.nx-cookie-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent; transition: all .18s ease;
  white-space: nowrap; letter-spacing: .01em;
}
.nx-cookie-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.nx-cookie-btn-accept { background: #1e3a8a; color: #fff; border-color: #1e3a8a; }
.nx-cookie-btn-accept:hover { background: #1e40af; border-color: #1e40af; transform: translateY(-1px); }
.nx-cookie-btn-reject { background: #fff; color: #374151; border-color: #d1d5db; }
.nx-cookie-btn-reject:hover { background: #f9fafb; border-color: #9ca3af; }
.nx-cookie-btn-customize { background: transparent; color: #1d4ed8; border-color: transparent; padding: 10px 12px; }
.nx-cookie-btn-customize:hover { color: #1e3a8a; text-decoration: underline; }

.nx-cookie-modal {
  position: fixed; inset: 0; z-index: 2147483646;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease; overflow-y: auto;
}
.nx-cookie-modal.nx-show { opacity: 1; visibility: visible; }

.nx-cookie-modal-content {
  background: #fff; border-radius: 16px; max-width: 560px; width: 100%;
  padding: 28px 28px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  transform: scale(.96); transition: transform .3s cubic-bezier(.16, 1, .3, 1);
  max-height: 90vh; overflow-y: auto;
}
.nx-cookie-modal.nx-show .nx-cookie-modal-content { transform: scale(1); }

.nx-cookie-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.nx-cookie-modal-header h3 { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0; }
.nx-cookie-modal-close {
  background: transparent; border: 0; font-size: 22px; color: #94a3b8; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease; line-height: 1;
}
.nx-cookie-modal-close:hover { color: #0f172a; background: #f1f5f9; }
.nx-cookie-modal-intro { color: #64748b; font-size: 13px; line-height: 1.55; margin: 0 0 20px; }

.nx-cookie-cat { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; background: #fbfcfd; }
.nx-cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.nx-cookie-cat-title { font-size: 14px; font-weight: 700; color: #0f172a; }
.nx-cookie-cat-desc { font-size: 12.5px; color: #64748b; line-height: 1.5; margin: 0; }

.nx-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex: 0 0 40px; }
.nx-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.nx-toggle-slider {
  position: absolute; inset: 0; background: #cbd5e1; border-radius: 22px;
  cursor: pointer; transition: background .2s ease;
}
.nx-toggle-slider::before {
  content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.nx-toggle input:checked + .nx-toggle-slider { background: #1e3a8a; }
.nx-toggle input:checked + .nx-toggle-slider::before { transform: translateX(18px); }
.nx-toggle input:disabled + .nx-toggle-slider { background: #16a34a; cursor: not-allowed; opacity: .85; }
.nx-toggle input:disabled + .nx-toggle-slider::before { transform: translateX(18px); }

.nx-cookie-modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .nx-cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; gap: 12px; }
  .nx-cookie-icon { display: none; }
  .nx-cookie-actions { width: 100%; justify-content: stretch; }
  .nx-cookie-btn { flex: 1 1 auto; justify-content: center; }
  .nx-cookie-modal-content { padding: 22px 20px 20px; }
}
