/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/


/* ==========================================================================
   NDK Privileged Access Modal
   ========================================================================== */

:root {
  --ndkbc-primary: #2563eb;
  --ndkbc-primary-hover: #1d4ed8;
  --ndkbc-primary-glow: rgba(37, 99, 235, 0.35);
  --ndkbc-gold-bg: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  --ndkbc-gold-color: #b45309;
  --ndkbc-gold-shadow: rgba(245, 158, 11, 0.25);
  --ndkbc-radius: 20px;
  --ndkbc-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Overlay & Container */
.ndkbc-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ndkbc-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ndkbc-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Modal Dialog & Content Card */
.ndkbc-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  margin: auto;
}

.ndkbc-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: var(--ndkbc-radius);
  padding: 34px 30px 30px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25),
              0 0 0 1px rgba(15, 23, 42, 0.06);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.ndkbc-modal.show .ndkbc-modal-content {
  transform: scale(1) translateY(0);
}

/* Subtle luxury top decorative accent line */
.ndkbc-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #f59e0b, #3b82f6);
  opacity: 0.9;
}

/* Close Button */
.ndkbc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  padding: 0;
  z-index: 3;
}

.ndkbc-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: rotate(90deg);
}

.ndkbc-modal-close:focus {
  outline: 2px solid var(--ndkbc-primary);
  outline-offset: 2px;
}

/* Header & Icon */
.ndkbc-modal-header {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ndkbc-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--ndkbc-gold-bg);
  color: var(--ndkbc-gold-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px -5px var(--ndkbc-gold-shadow);
  transition: transform 0.3s ease;
}

.ndkbc-icon-badge:hover {
  transform: scale(1.06) rotate(3deg);
}

.ndkbc-modal-header h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ndkbc-modal-subtitle {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  max-width: 320px;
}

/* Form & Input */
.ndkbc-modal-body {
  margin-bottom: 0;
}

.ndkbc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ndkbc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ndkbc-input-icon {
  position: absolute;
  left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

#ndkbc-input {
  width: 100%;
  height: 48px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 16px 0 44px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--ndkbc-transition);
  box-sizing: border-box;
}

#ndkbc-input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: #94a3b8;
}

#ndkbc-input:focus {
  background: #ffffff;
  border-color: var(--ndkbc-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.ndkbc-input-wrapper:focus-within .ndkbc-input-icon {
  color: var(--ndkbc-primary);
}

/* Submit Button */
.ndkbc-submit-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--ndkbc-primary) 0%, var(--ndkbc-primary-hover) 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--ndkbc-primary-glow);
  transition: var(--ndkbc-transition);
  position: relative;
  overflow: hidden;
}

.ndkbc-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--ndkbc-primary-glow);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.ndkbc-submit-btn:active {
  transform: translateY(0);
}

.ndkbc-submit-spinner {
  display: none;
  margin-left: 8px;
  animation: ndkbc-spin 0.8s linear infinite;
}

.ndkbc-submit-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.ndkbc-submit-btn.is-loading .ndkbc-submit-spinner {
  display: inline-flex;
}

@keyframes ndkbc-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Status Message */
.ndkbc-msg {
  display: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
  margin-top: 4px;
  animation: ndkbc-slide-down 0.25s ease-out;
  line-height: 1.4;
}

.ndkbc-msg.ndkbc-msg-show {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ndkbc-msg.ndkbc-msg-error {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.ndkbc-msg.ndkbc-msg-success {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

@keyframes ndkbc-slide-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trigger Button (if displayed in Header/Footer) */
#ndkbc-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--ndkbc-transition);
}

#ndkbc-trigger:hover {
  transform: translateY(-1px);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .ndkbc-modal-content {
    padding: 26px 20px 22px;
  }
  .ndkbc-modal-header h3 {
    font-size: 19px;
  }
  .ndkbc-icon-badge {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }
}