/* ==== GLOBAL PAGE ==== */

/* Amazon Affiliate Heading Section */

.hp-global-amazon-affiliate-section {
  background-color: #f9f9f9;
  padding: 14px 12px;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
}

/* Wrapper holds card and QR side-by-side */
.hp-global-amazon-affiliate-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
  width: 100%;
}

/* Yellow message card */
.hp-global-amazon-affiliate-section-card {
  background-color: #febd69;
  padding: 16px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.hp-global-amazon-affiliate-section-card h2 {
  font-size: 1.7em;
  margin-bottom: 14px;
  color: #2a2a2a;
}

.hp-global-amazon-affiliate-section-card p {
  margin: 0;
  font-size: 1em;
  line-height: 1.4;
}

.hp-global-amazon-affiliate-section-disclaimer small {
  font-size: 80%;
  color: #666;
  display: block;
  margin-top: 6px;
}

/* QR container wrapper for centering */
.hp-global-amazon-affiliate-section-qr-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* QR block */
.hp-global-amazon-affiliate-section-qr {
  flex: 0 0 auto;
  text-align: center;
  width: 130px;
}

.hp-global-amazon-affiliate-section-qr img {
  width: 110px;
  height: 110px;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.hp-global-amazon-affiliate-section-qr img:hover {
  transform: scale(1.05);
}

.hp-global-amazon-affiliate-section-qr small.qr-caption {
  display: block;
  margin-top: 2px;
  font-size: 0.8em;
  font-weight: 600;
  color: #333;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
}

/* Link styling */
.hp-global-amazon-affiliate-section a {
  color: #0073aa;
  text-decoration: underline;
  font-weight: 600;
}

.hp-global-amazon-affiliate-section a:hover {
  color: #005a8c;
}

/* Remove vertical spacing from the section */
.et_pb_section_1,
.et_pb_fullwidth_code_0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ==== AFFILIATE QRCODE MODAL ==== */

.hp-global-amazon-affiliate-qrcode-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px;
}

.hp-global-amazon-affiliate-qrcode-modal-box {
  background: #fff;
  padding: 24px 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}

.hp-global-amazon-affiliate-qrcode-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.hp-global-amazon-affiliate-qrcode-modal-heading {
  margin-top: 0;
  font-size: 1.4em;
  color: #2a2a2a;
}

.hp-global-amazon-affiliate-qrcode-modal-text {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 10px;
}

.hp-global-amazon-affiliate-qrcode-modal-image {
  width: 220px;
  height: 220px;
  margin: 16px 0;
}

.hp-global-amazon-affiliate-qrcode-modal-print {
  display: inline-block;
  margin-top: 20px;
  padding: 0.6em 1.4em;
  font-size: 1em;
  font-weight: 600;
  color: #fff;
  background-color: #0073aa;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hp-global-amazon-affiliate-qrcode-modal-print:hover {
  background-color: #005a8c;
}

/* Make modal box transparent to background clicks */
.hp-global-amazon-affiliate-qrcode-modal-box {
  pointer-events: none;
}

.hp-global-amazon-affiliate-qrcode-modal-box * {
  pointer-events: auto;
}

.hp-global-amazon-affiliate-qrcode-modal-download {
  display: inline-block;
  margin-top: 12px;
  padding: 0.6em 1.4em;
  font-size: 1em;
  font-weight: 600;
  color: #fff;
  background-color: #28a745;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hp-global-amazon-affiliate-qrcode-modal-download:hover {
  background-color: #218838;
}
