/* Modal Container */
.qbnd-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.qbnd-modal.show {
  display: flex;
  opacity: 1;
}

/* Modal Content */
.qbnd-modal-content {
  max-width: 460px;
  width: 90%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease-in-out;
  margin: 20px;
}

.qbnd-modal.show .qbnd-modal-content {
  transform: translateY(0);
}

/* Header */
.qbnd-modal .modal-header {
  padding: 24px 24px 16px;
}

.qbnd-modal .logo-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qbnd-modal .logo-title-wrapper img {
  width: 32px;
  height: 32px;
}

.qbnd-modal .logo-title-wrapper h2 {
  margin: 0;
  font-size: 18px;
  color: #1d2327;
  font-weight: 500;
}

/* Body */
.qbnd-modal .modal-body {
  padding: 0 24px 24px;
}

.qbnd-modal .consent-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qbnd-modal .benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f0f7ff;
  border-radius: 6px;
}

.qbnd-modal .benefit-icon {
  font-size: 20px;
  min-width: 24px;
  text-align: center;
}

.qbnd-modal .benefit-text {
  flex: 1;
  font-size: 14px;
  color: #1d2327;
  line-height: 1.4;
}

/* Footer */
.qbnd-modal .modal-footer {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Buttons */
.qbnd-modal .button {
  padding: 8px 16px;
  height: auto;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.qbnd-modal .button-primary {
  background: #2271b1;
  color: #fff;
}

.qbnd-modal .button-primary:hover {
  background: #135e96;
}

.qbnd-modal .button-secondary {
  background: transparent;
  color: #2271b1;
}

.qbnd-modal .button-secondary:hover {
  text-decoration: none;
  background: transparent;
  color: #135e96;
}

/* Mobile Responsiveness */
@media screen and (max-width: 480px) {
  .qbnd-modal-content {
    margin: 16px;
  }

  .qbnd-modal .modal-header,
  .qbnd-modal .modal-body,
  .qbnd-modal .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* RTL Support */
.rtl .qbnd-modal .logo-title-wrapper {
  flex-direction: row-reverse;
}

.rtl .qbnd-modal .benefit-item {
  flex-direction: row-reverse;
}

/* Accessibility */
.qbnd-modal .button:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
  box-shadow: none;
}