@tailwind base;
@tailwind components;
@tailwind utilities;

/* Cookie consent blocked content styles */
@layer components {
  .cookie-consent-blocked-iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100; /* Ensure it's above the iframe */
  }

  .cookie-consent-blocked-content {
    text-align: center;
    padding: 24px;
    color: #f3f4f6;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 90%;
    overflow-y: auto;
    max-height: 100%;
  }

  .cookie-consent-blocked-content h3 {
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
  }

  .cookie-consent-blocked-content p {
    margin-bottom: 12px;
    opacity: 0.9;
  }

  /* Direct content in wrapper */
  .cookie-consent-wrapper-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: #f3f4f6;
    font-size: 15px;
    line-height: 1.6;
    z-index: 100;
  }

  /* Dark theme support */
  .dark .cookie-consent-blocked-iframe {
    color: #e5e7eb;
  }

  /* Style for the wrapper */
  [data-cookie-consent-placeholder="true"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Hide the blocked iframe */
  iframe[data-cookie-blocked="true"] {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
