/* Backdrop Blur Overlay */
.indinet-cookie-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  pointer-events: auto;
}
.indinet-cookie-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Modal Banner Wrapper */
.indinet-cookie-banner {
  position: fixed;
  z-index: 999999;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

/* Desktop & Laptop Positioning: Fixed to bottom right */
@media (min-width: 768px) {
  .indinet-cookie-banner {
    right: 24px;
    bottom: 24px;
    width: 520px;
    max-width: calc(100vw - 48px);
  }
}

/* Mobile Positioning: Bottom Center */
@media (max-width: 767px) {
  .indinet-cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
}

.indinet-cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Card Container (White Background, Black Text) */
.indinet-cookie-card {
  background: #ffffff;
  color: #000000;
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.indinet-cookie-card::-webkit-scrollbar {
  width: 6px;
}
.indinet-cookie-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Header Section */
.indinet-cookie-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.indinet-cookie-logo-wrap {
  flex-shrink: 0;
}
.indinet-cookie-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}
.indinet-cookie-brand {
  font-size: 20px;
  font-weight: 700;
  color: #336ef9;
}
.indinet-cookie-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

/* Body Section */
.indinet-cookie-body {
  margin-bottom: 20px;
}
.indinet-cookie-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #374151;
  margin: 0;
  font-weight: 400;
}

/* Expandable Customization Panel */
.indinet-cookie-custom-panel {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  animation: indinetSlideDown 0.3s ease forwards;
}
@keyframes indinetSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.indinet-cookie-option-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.indinet-cookie-option-item:last-child {
  margin-bottom: 0;
}
.indinet-cookie-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.indinet-cookie-option-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}
.indinet-cookie-badge-active {
  font-size: 12.5px;
  font-weight: 600;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.indinet-cookie-badge-active i {
  font-size: 11px;
}
.indinet-cookie-option-desc {
  font-size: 12px;
  color: #64748b;
  margin: 6px 0 0;
  line-height: 1.4;
}

/* Toggle Switch Styling */
.indinet-cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.indinet-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.indinet-cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}
.indinet-cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.indinet-cookie-switch input:checked + .indinet-cookie-slider {
  background-color: #336ef9;
}
.indinet-cookie-switch input:checked + .indinet-cookie-slider:before {
  transform: translateX(20px);
}

/* Action Buttons Container - Strict 1-Line Layout */
.indinet-cookie-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
  align-items: center;
}

/* Buttons Base Styling */
.indinet-cookie-btn {
  flex: 1 1 0%;
  min-width: 0;
  padding: 10px 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  line-height: 1.3;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .indinet-cookie-btn {
    font-size: 11px;
    padding: 10px 4px;
  }
}

/* 1. Green Button (Accept all cookies) */
.indinet-cookie-btn-green {
  background-color: #00a859;
  color: #ffffff;
  border: 2px solid #00a859;
}
.indinet-cookie-btn-green:hover,
.indinet-cookie-btn-green:focus-visible {
  background-color: #00a859 !important;
  color: #ffffff !important;
  border-color: #00a859 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 89, 0.35);
}

/* 2. Dark Blue Button (Necessary cookies only) */
.indinet-cookie-btn-darkblue {
  background-color: #0a2046;
  color: #ffffff;
  border: 2px solid #0a2046;
}
.indinet-cookie-btn-darkblue:hover,
.indinet-cookie-btn-darkblue:focus-visible {
  background-color: #0a2046 !important;
  color: #ffffff !important;
  border-color: #0a2046 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 32, 70, 0.35);
}

/* 3. Yellow Button (Customize setting & Save preferences) */
.indinet-cookie-btn-yellow {
  background-color: #f5c842;
  color: #000000;
  border: 2px solid #f5c842;
}
.indinet-cookie-btn-yellow:hover,
.indinet-cookie-btn-yellow:focus-visible {
  background-color: #f5c842 !important;
  color: #000000 !important;
  border-color: #f5c842 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 200, 66, 0.35);
}

/* Footer Links */
.indinet-cookie-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  padding-top: 4px;
}
.indinet-cookie-footer a {
  color: #336ef9;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}
.indinet-cookie-footer a:hover {
  color: #1d4ed8;
}
.indinet-cookie-dot {
  color: #94a3b8;
  font-size: 10px;
}
