:root {
  --nw-color-primary: #CC0017;
  --nw-color-primary-dark: #8C0012;
  --nw-color-bg: #F7F3EF;
  --nw-color-accent: #CBB9A2;
  --nw-color-border: #E9E2DA;
  --nw-radius-pill: 28px;
  --nw-btn-height: 48px;
  --nw-spacing-sm: 8px;
  --nw-spacing-md: 16px;
  --nw-spacing-lg: 24px;
}

.nw-capture-widget {
  background: transparent;
  padding: var(--nw-spacing-lg);
  border: none;
  border-radius: 12px;
  color: #fff;
}

.nw-capture-widget .nw-title {
  margin: 0 0 var(--nw-spacing-md);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  font-weight: bold;
}

.nw-capture-widget .nw-field {
  display: block;
  margin-bottom: var(--nw-spacing-md);
  position: relative;
}

.nw-capture-widget .nw-label {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: normal;
}

.nw-capture-widget .nw-input {
  width: 100%;
  height: var(--nw-btn-height);
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--nw-color-border);
  border-radius: var(--nw-radius-pill);
  outline: none;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.nw-capture-widget .nw-input:focus {
  border-color: var(--nw-color-primary);
  box-shadow: 0 0 0 3px rgba(204, 0, 23, .15);
  transform: translateY(-2px);
}

.nw-capture-widget .nw-field input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.nw-capture-widget .nw-field .nw-file-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 2px dashed var(--nw-color-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.nw-capture-widget .nw-field .nw-file-dropzone:hover,
.nw-capture-widget .nw-field .nw-file-dropzone.drag-over {
  border-color: var(--nw-color-primary);
  background: rgba(204, 0, 23, 0.05);
  transform: translateY(-2px);
}

.nw-capture-widget .nw-field .nw-file-content {
  text-align: center;
  color: #fff;
  pointer-events: none;
}

.nw-capture-widget .nw-field .nw-file-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--nw-color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.nw-capture-widget .nw-field .nw-file-icon i {
  font-size: 20px;
  color: #fff;
}

.nw-capture-widget .nw-field .nw-file-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.nw-capture-widget .nw-field .nw-file-text {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.nw-capture-widget .nw-field .nw-file-hint {
  font-size: 12px;
  opacity: 0.7;
}

.nw-capture-widget .nw-file-preview {
  margin-top: 12px;
}


.nw-capture-widget .nw-image-container {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.nw-capture-widget .nw-preview-img {
  max-width: 200px;
  width: 100%;
  border-radius: 12px;
  display: block;
  border: 2px solid var(--nw-color-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.nw-capture-widget .nw-preview-img:hover {
  transform: scale(1.02);
}

.nw-capture-widget .nw-image-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10;
}

.nw-capture-widget .nw-image-delete:hover {
  background: var(--nw-color-primary);
  transform: scale(1.1);
}

.nw-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nw-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.nw-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.nw-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

.nw-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.nw-lightbox-close:hover {
  transform: scale(1.2);
}

.nw-capture-widget .nw-estimate {
  margin: var(--nw-spacing-md) 0;
  color: #fff;
  font-weight: 600;
}

.nw-capture-widget .nw-actions {
  margin-top: var(--nw-spacing-md);
}

.nw-capture-widget .nw-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nw-btn-height);
  padding: 0 32px;
  background: linear-gradient(135deg, var(--nw-color-primary) 0%, #A80012 100%);
  color: #fff;
  border: none;
  border-radius: var(--nw-radius-pill);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(204, 0, 23, 0.3);
  position: relative;
  overflow: hidden;
}

.nw-capture-widget .nw-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 0, 23, 0.4);
}

.nw-capture-widget .nw-btn-primary:active {
  transform: translateY(0);
}

.nw-capture-widget .nw-btn-primary.is-loading {
  opacity: .8;
  cursor: wait;
}

.nw-capture-widget .nw-feedback {
  margin-top: var(--nw-spacing-sm);
  min-height: 1.2em;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.nw-capture-widget .nw-feedback.is-success,
.nw-capture-widget .nw-feedback.is-error {
  opacity: 1;
  transform: translateY(0);
}

.nw-capture-widget .nw-feedback.is-success {
  color: #1E8E3E;
  background-color: rgba(30, 142, 62, 0.1);
  border: 1px solid rgba(30, 142, 62, 0.3);
}

.nw-capture-widget .nw-feedback.is-error {
  color: var(--nw-color-primary-dark);
  background-color: rgba(211, 47, 47, 0.1);
  border: 1px solid rgba(211, 47, 47, 0.3);
}

@media (max-width: 768px) {
  .nw-capture-widget {
    padding: var(--nw-spacing-md);
  }
  
  .nw-capture-widget .nw-input {
    font-size: 16px;
    height: 52px;
  }
  
  .nw-capture-widget .nw-field .nw-file-dropzone {
    min-height: 100px;
  }
  
  .nw-capture-widget .nw-field .nw-file-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Responsive improvements for capture widget button */
.nw-capture-widget .nw-btn-primary {
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

@media (max-width: 480px) {
  .nw-capture-widget .nw-actions { 
    width: 100%; 
    margin-top: var(--nw-spacing-lg);
  }
  
  .nw-capture-widget .nw-btn-primary {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 16px 24px;
    font-size: 16px;
    letter-spacing: .04em;
    border-radius: var(--nw-radius-pill);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .nw-capture-widget .nw-input {
    height: 56px;
    padding: 0 20px;
    font-size: 16px;
  }
  
  .nw-capture-widget .nw-field .nw-file-dropzone {
    min-height: 120px;
    padding: var(--nw-spacing-md);
  }
}

/* Success Modal */
.nw-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nw-success-modal.active {
  opacity: 1;
  visibility: visible;
}

.nw-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.nw-modal-content {
  background: #d32f2f;
  color: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.nw-success-modal.active .nw-modal-content {
  transform: scale(1);
}

.nw-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.nw-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.nw-modal-text {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nw-modal-text br {
  margin-bottom: 8px;
}

.nw-modal-text .nw-coin-amount {
  font-size: 1.5em;
  font-weight: bold;
  display: inline-block;
}

/* Responsive modal */
@media (max-width: 768px) {
  .nw-modal-content {
    padding: 30px 25px;
    max-width: 90%;
    border-radius: 15px;
  }
  
  .nw-modal-text {
    font-size: 16px;
  }
  
  .nw-modal-close {
    top: 10px;
    right: 15px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .nw-modal-overlay {
    padding: 15px;
  }
  
  .nw-modal-content {
    padding: 25px 20px;
    border-radius: 12px;
  }
  
  .nw-modal-text {
    font-size: 15px;
    letter-spacing: 0.03em;
  }
}

/* Elementor Editor Preview Modal */
.nw-preview-modal {
  border: 2px dashed rgba(0, 150, 136, 0.5);
  border-radius: 8px;
  margin-top: 1rem;
}

.nw-preview-modal .nw-modal-overlay {
  position: static !important;
  background: rgba(0, 0, 0, 0.8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 200px;
  border-radius: 6px;
}

.nw-preview-modal .nw-modal-content {
  position: relative !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
}

/* Hide preview modal on frontend */
body:not(.elementor-editor-active) .nw-preview-modal {
  display: none !important;
}

/* Header Z-Index Fix */
@media (max-width: 768px) {
  .site-navigation-dropdown {
    z-index: 999999 !important;
  }
  
  .site-header {
    z-index: 999998 !important;
  }
  
  .site-navigation-toggle-holder {
    z-index: 999997 !important;
  }
}

/* Ensure coins sections stay below navigation elements on all screen sizes */
.nw-coins-card,
.nw-coins-section,
#nw-coins-section,
.nw-cart-notification {
  z-index: 0 !important;
}

