/* Media Agreement Popup Styles - Compact Version */
.media-agreement-overlay {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999999;
  animation: slideInLeft 0.4s ease-out;
}

@keyframes slideInLeft {
  from {
      transform: translateX(-100%);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

.media-agreement-popup {
  background: #2d2d2d;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  width: 320px;
  max-width: calc(100vw - 40px);
  overflow: hidden;
}

.media-agreement-header {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  padding: 12px 16px;
}

.media-agreement-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.media-agreement-content {
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.agreement-intro {
  margin: 0 0 12px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #e0e0e0;
}

.agreement-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.agreement-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.agreement-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.agreement-checkbox {
  margin-top: 1px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #4a90e2;
}

.agreement-item span {
  font-size: 12px;
  line-height: 1.4;
  color: #e0e0e0;
}

.agreement-footer {
  margin: 0;
  font-size: 11px;
  font-style: italic;
  color: #b0b0b0;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.media-agreement-actions {
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}

.media-agreement-actions button {
  width: 100%;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-accept {
  background: #4a90e2;
  color: #ffffff;
}

.btn-accept:hover:not(:disabled) {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.btn-accept:disabled {
  background: #555555;
  color: #888888;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .media-agreement-overlay {
      bottom: 10px;
      left: 10px;
  }
  
  .media-agreement-popup {
      width: 280px;
  }
}

/* Scrollbar styling */
.media-agreement-content::-webkit-scrollbar {
  width: 4px;
}

.media-agreement-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.media-agreement-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.media-agreement-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}