/**
 * Consent Modal Styles
 */

/* Modal Container */
.smart-discount-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;
}

.smart-discount-modal.show {
  display: flex;
  opacity: 1;
}

/* Modal Content */
.smart-discount-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;
}

.smart-discount-modal.show .smart-discount-modal-content {
  transform: translateY(0);
}

/* Header */
.modal-header {
  padding: 24px 24px 16px;
}

.logo-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-title-wrapper img {
  width: 32px;
  height: 32px;
}

.logo-title-wrapper h2 {
  margin: 0;
  font-size: 18px;
  color: #1d2327;
  font-weight: 500;
}

/* Body */
.modal-body {
  padding: 0 24px 24px;
}

.consent-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f0f7ff;
  border-radius: 6px;
}

.benefit-icon {
  font-size: 20px;
  min-width: 24px;
  text-align: center;
}

.benefit-text {
  flex: 1;
  font-size: 14px;
  color: #1d2327;
  line-height: 1.4;
}

/* Footer */
.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Buttons */
.smart-discount-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;
}

.smart-discount-modal .button-primary {
  background: #2271b1;
  color: #fff;
}

.smart-discount-modal .button-primary:hover {
  background: #135e96;
}

.smart-discount-modal .button-secondary {
  background: transparent;
  color: #2271b1;
}

.smart-discount-modal .button-secondary:hover {
  text-decoration: none;
  background: transparent;
  color: #135e96;
}

/* Mobile Responsiveness */
@media screen and (max-width: 480px) {
  .smart-discount-modal-content {
    margin: 16px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* RTL Support */
.rtl .logo-title-wrapper {
  flex-direction: row-reverse;
}

.rtl .benefit-item {
  flex-direction: row-reverse;
}

/* Accessibility */
.smart-discount-modal .button:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
  box-shadow: none;
}