/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import "https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.snow.css";

.ql-editor h1, .ql-content h1 { font-size: 1.5rem; line-height: 2rem; }
.ql-editor h2, .ql-content h2 { font-size: 1.25rem; line-height: 1.75rem; }
.ql-editor h3, .ql-content h3 { font-size: 1.125rem; line-height: 1.75rem; }
.ql-editor ol, .ql-content ol { list-style: decimal; padding-left: 1.5rem; }
.ql-editor ul, .ql-content ul { list-style: disc; padding-left: 1.5rem; }
.ql-editor a, .ql-content a { color: #2563eb; text-decoration: underline; }
.ql-editor blockquote, .ql-content blockquote { border-left: 4px solid #d1d5db; padding-left: 1rem; color: #6b7280; }

.bg-primary {
  background-color: var(--primary-color);
}

.bg-secondary {
  background-color: var(--secondary-color);
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.field-upcase {
  text-transform: uppercase;
}

/* Container to center banner at bottom */
#immosquare-cookies-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

/* Banner card */
.immosquare-cookies-card {
  background-color: #f2711c; /* main orange */
  color: #ffffff; /* white text */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  animation: slideUp 0.5s ease-out;
}

/* Header */
.immosquare-cookies-header {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Content text */
.immosquare-cookies-text div {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Actions container */
.immosquare-cookies-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.immosquare-cookies-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease-in-out;
}

#immosquare-cookies-accept {
  background-color: #ffffff;
  color: #f2711c;
}

#immosquare-cookies-accept:hover {
  background-color: #ffb366; /* lighter orange hover */
}

#immosquare-cookies-refuse {
  background-color: rgba(255,255,255,0.2);
  color: #ffffff;
}

#immosquare-cookies-refuse:hover {
  background-color: rgba(255,255,255,0.35);
}

/* Simple slide-up animation */
@keyframes slideUp {
  0% {
    transform: translateX(-50%) translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .immosquare-cookies-card {
    padding: 1rem;
  }

  .immosquare-cookies-actions {
    justify-content: center;
  }

  .immosquare-cookies-btn {
    flex: 1 1 45%;
  }
}


/*Signed Document css styling here*/
#pdf-viewport-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
}

#pdf-container {
  position: relative;
  display: inline-block;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

#fields-overlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.pdf-field-display {
  position: absolute;
  border: 1px solid #10b981;
  background-color: rgba(16, 185, 129, 0.12);
  padding: 2px 4px 3px;
  font-size: 12px;
  min-width: 80px;
  pointer-events: none;
  z-index: 10;
  color: #065f46;
  font-weight: 500;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.pdf-field-display-inner {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.pdf-field-display.empty {
  border-color: #9ca3af;
  background-color: rgba(156, 163, 175, 0.15);
  color: #6b7280;
  font-style: italic;
  font-weight: 400;
}
