html {
  scroll-behavior: smooth;
}

:root {
  --brand-green: #059669;
  --brand-green-hover: #047857;
  --price-orange: #d97706;
  --text-dark: #222222;
  --text-gray: #666666;
  --bg-hero: #fbfdfc;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 60px;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

.xetprint-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 1. Top Promo Banner */
.top-promo-wrapper {
  background-color: #f3f3f3;
  min-height: 42px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 5px 0;
}
.top-promo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, #a7f3d0 0%, #34d399 100%);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
  z-index: 1;
}
.top-promo-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.promo-pill-btn {
  background: #ffffff;
  color: #000;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 10px;
  white-space: nowrap;
}
.try-free-btn {
  color: #000;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* 2. Main Header Navbar */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 12px 0;
}
.brand-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-green);
  text-decoration: none !important;
  letter-spacing: -0.6px;
  line-height: 1;
}
.brand-logo span {
  color: #222222;
}
.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.sub-categories-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 14px;
  font-size: 13px;
}
.sub-categories-nav a {
  color: var(--text-dark);
  text-decoration: none !important;
  font-weight: 400;
  cursor: pointer;
}
.sub-categories-nav a:hover {
  color: var(--brand-green);
}

/* HYBRID HOVER & TOUCH/CLICK MEGA DROPDOWN */
.desktop-category-hover-wrapper {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: -10px;
}
.desktop-category-hover-wrapper:hover .desktop-mega-dropdown,
.desktop-category-hover-wrapper.show .desktop-mega-dropdown {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}
.desktop-mega-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  z-index: 1090;
  width: 250px;
  padding: 8px 0;
  flex-direction: column;
}
.desktop-cat-item {
  position: relative;
  list-style: none;
}
.desktop-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.desktop-cat-item:hover > .desktop-cat-link,
.desktop-cat-item.show > .desktop-cat-link {
  background-color: #ecfdf5;
  color: var(--brand-green);
}
.desktop-subcat-flyout {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  min-width: 220px;
  padding: 8px 0;
  z-index: 1100;
}
.desktop-cat-item:hover > .desktop-subcat-flyout,
.desktop-cat-item.show > .desktop-subcat-flyout {
  display: block;
}
.desktop-subcat-link {
  display: block;
  padding: 8px 18px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.desktop-subcat-link:hover {
  background-color: #f1f5f9;
  color: var(--brand-green);
}

/* Mobile Horizontal Category Bar */
.xetprint-mobile-cat-bar {
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  padding: 5px 0 5px 15px;
  display: flex;
  align-items: center;
  position: relative;
}
@media (max-width: 991px) {
  .xetprint-mobile-cat-bar {
    position: sticky !important;
    top: 50px;
    z-index: 998;
  }
}
.xetprint-cat-scroll-container {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: calc(100% - 40px);
  padding-right: 10px;
}
.xetprint-cat-scroll-container::-webkit-scrollbar {
  display: none;
}
.xetprint-cat-tab {
  font-size: 12px;
  color: #333333;
  text-decoration: none !important;
  position: relative;
  padding-bottom: 4px;
  flex-shrink: 0;
}
.xetprint-cat-tab.active {
  color: #000000;
  font-weight: 600;
}
.xetprint-cat-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #000000;
  border-radius: 2px;
}
.xetprint-cat-expand-btn {
  width: 40px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #222222;
  font-size: 14px;
  cursor: pointer;
  box-shadow: -6px 0 8px rgba(255, 255, 255, 0.9);
  z-index: 2;
}

/* Modals */
.center-category-modal .modal-dialog {
  display: flex;
  align-items: center;
  min-height: calc(100% - 30px);
  margin: 15px auto;
  max-width: 400px;
}
.center-category-modal .modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.center-category-modal .modal-header {
  background: #ffffff;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.center-category-modal .modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 10px 20px;
}
.center-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f8fafc;
  color: #1e293b;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.center-cat-item:hover,
.center-cat-item.active {
  color: var(--brand-green);
  font-weight: 700;
}

.header-right-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 13px;
}
.tool-item {
  color: var(--text-dark);
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.btn-create-account {
  background-color: var(--brand-green);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 22px;
  padding: 6px 18px;
  border: none;
  font-size: 13px;
  transition: 0.2s;
  white-space: nowrap;
}
.btn-create-account:hover {
  background-color: var(--brand-green-hover);
}

.secondary-right-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 14px;
  font-size: 13px;
}
.secondary-right-nav a {
  color: #555555;
  text-decoration: none !important;
}
.secondary-right-nav a:hover {
  color: var(--brand-green);
}

.header-search-wrap {
  display: none;
  max-width: 500px;
  width: 100%;
  transition: opacity 0.3s ease;
  position: relative;
}
.header-search-wrap.show-on-scroll,
.header-search-wrap.show-always {
  display: block !important;
}

.header-search-box {
  border: 1px solid var(--brand-green);
  border-radius: 14px;
  background: #ffffff;
  padding: 2px 4px 2px 14px;
  display: flex;
  align-items: center;
  height: 34px;
}
.header-search-input {
  border: none;
  outline: none !important;
  font-size: 13px;
  width: 100%;
  background: transparent;
}
.header-search-btn {
  background-color: var(--brand-green);
  color: #ffffff;
  border-radius: 16px;
  padding: 3px 12px;
  font-size: 12px;
  border: none;
  transition: 0.2s;
}
.header-search-btn:hover {
  background-color: var(--brand-green-hover);
}

#header-live-search {
  opacity: 1;
  transition: opacity 0.35s ease;
}

#dynamic-search-icon {
  color: var(--brand-green);
  font-size: 13px;
  margin-right: 7px;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.search-placeholder-fade {
  opacity: 0 !important;
}

/* Search Dropdown */
.search-results-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  z-index: 1095;
  max-height: 380px;
  overflow-y: auto;
  padding: 8px 0;
}
.search-suggestion-item {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  text-decoration: none !important;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease;
  cursor: pointer;
}
.search-suggestion-item:hover {
  background-color: #f8fafc;
  color: var(--brand-green);
}
.search-suggestion-item i {
  color: #94a3b8;
  margin-right: 12px;
  font-size: 13px;
}
.search-suggestion-text {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggestion-cat {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
}

.search-product-item {
  display: -webkit-box;
  align-items: center;
  padding: 10px 18px;
  border-top: 1px solid #f1f5f9;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.search-product-item:hover {
  background-color: #f8fafc;
}
.search-product-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  padding: 2px;
  background: #fff;
  margin-right: 12px;
  flex-shrink: 0;
}
.search-product-info {
  flex-grow: 1;
  overflow: hidden;
}
.search-product-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.search-product-price {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--price-orange);
}

/* 3. Hero Search Section */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
  padding: 30px 0 45px 0;
  text-align: center;
}
.search-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 10px 0 25px 0;
  flex-wrap: wrap;
}
.search-tab {
  font-size: 24px;
  font-weight: 700;
  color: #111111;
  cursor: pointer;
  position: relative;
  text-decoration: none !important;
}
.search-tab.active {
  color: var(--brand-green);
}
.search-tab.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--brand-green);
  border-radius: 2px;
}

.hero-search-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}
.search-container-box {
  border: 2px solid var(--brand-green);
  border-radius: 20px;
  background: #ffffff;
  padding: 4px 6px 4px 16px;
  display: flex;
  align-items: center;
  height: 58px;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.08);
}
.search-input-field {
  border: none;
  outline: none !important;
  box-shadow: none !important;
  font-size: 14px;
  width: 100%;
  color: #222;
  background: transparent;
}
.search-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.image-search-btn {
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
}
.btn-search-green {
  background-color: var(--brand-green);
  color: #ffffff;
  border-radius: 24px;
  padding: 8px 24px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
  height: 44px;
  white-space: nowrap;
}
.btn-search-green:hover {
  background-color: var(--brand-green-hover);
  color: #ffffff;
}

/* 4. Feature Ribbon */
.secondary-feature-bar {
  background: #fbfbfb;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Modals & Avatar */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.password-wrapper {
  position: relative;
}
.toggle-pwd {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 4px;
  border-radius: 30px;
  background: transparent;
  user-select: none;
  color: #5e6f7e;
}
.toggle-pwd:hover {
  color: #0a1e2e;
}

.modal-content {
  border-radius: 16px;
  border: none;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.modal-header {
  background: #fafafa;
  padding: 20px 25px;
}
.btn-green-action {
  background-color: var(--brand-green);
  color: #ffffff;
  font-weight: 700;
  border-radius: 25px;
  border: none;
  padding: 12px;
  transition: 0.2s;
}
.btn-green-action:hover {
  background-color: var(--brand-green-hover);
  color: #ffffff;
}
.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  font-size: 15px;
}

.blink-text {
  font-weight: 500;
  animation: colorBlink 3s infinite;
}
@keyframes colorBlink {
  0%,
  100% {
    color: red;
  }
  50% {
    color: #000;
  }
}

.hero-ad-banner {
  width: 100%;
  max-height: 330px;
  border-radius: 4px;
  overflow: hidden;
}
.ad-banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.ad-timer-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
  backdrop-filter: blur(2px);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  background-color: #ffffff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1040;
  border-top: 1px solid #eeeeee;
}
.mobile-bottom-nav-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666666;
  text-decoration: none !important;
  font-size: 10px;
  width: 25%;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
}
.mobile-bottom-nav-item i {
  font-size: 18px;
  margin-bottom: 2px;
  transition: color 0.3s ease;
}
.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item.active i {
  color: var(--brand-green) !important;
}
.mobile-bottom-nav-item span {
  transition: color 0.3s ease;
}
.mobile-bottom-nav-item.active span {
  color: var(--brand-green) !important;
  font-weight: 600;
}

.mobile-signin-banner {
  position: fixed;
  bottom: 54px;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #a7f3d0 0%, #34d399 100%);
  color: #000000;
  z-index: 1039;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}
.mobile-signin-banner .banner-text {
  font-size: 12px;
  font-weight: 600;
  color: #000000;
}

.form-control-lg {
  border-radius: 40px;
  padding: 14px 20px;
  font-size: 0.95rem;
  background: #f5f7fa;
  border: 1px solid #e2e8f0;
  transition: 0.15s;
}
.form-control-lg:focus {
  background: white;
  border-color: #0f7b3e;
  box-shadow: 0 0 0 3px rgba(15, 123, 62, 0.15);
}

.signin-hover-wrapper {
  position: relative;
  display: inline-block;
}
.header-auth-link {
  color: var(--text-dark, #222);
  font-size: 13px;
  margin-right: 10px;
  font-weight: 600;
  text-decoration: none !important;
  padding: 8px 6px;
  display: inline-flex;
  align-items: center;
}
.header-auth-link:hover {
  color: var(--brand-green, #059669);
}

.xetprint-hover-card {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 300px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  padding: 20px 16px 10px 16px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-in-out;
}
.arrow-up-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
}
.signin-hover-wrapper:hover .xetprint-hover-card,
.signin-hover-wrapper.show .xetprint-hover-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.btn-brand-orange {
  background-color: #34d399;
  color: #ffffff !important;
  border-radius: 25px;
  padding: 9px;
  font-size: 14px;
  border: none;
  transition: 0.2s;
}
.btn-brand-orange:hover {
  background-color: #10b981;
}

.social-hover-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 220px;
  margin: 0 auto 15px auto;
  padding: 0 10px;
}
.social-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff !important;
  text-decoration: none !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.social-circle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.social-circle.fb {
  background-color: #1877f2;
}
.social-circle.google {
  background-color: #ea4335;
}
.social-circle.x-twitter {
  background-color: #000000;
}

.terms-mini-text {
  font-size: 10.5px;
  line-height: 1.3;
}
.terms-mini-text a {
  color: #475569;
  text-decoration: underline;
}

.hover-menu-list li a {
  display: block;
  padding: 7px 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.hover-menu-list li a:hover {
  background-color: #f1f5f9;
  color: #059669;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS (FIX FOR IPAD PRO & MOBILE)
   ======================================================== */

/* 1. iPad Pro, Nest Hub & Tablets Landscape (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .xetprint-container {
    padding: 0 16px !important;
  }
  .brand-logo {
    font-size: 22px;
  }
  .logo-img {
    height: 30px;
  }
  .header-search-wrap {
    max-width: 280px;
  }
  .header-search-box {
    height: 32px;
    padding: 2px 4px 2px 10px;
  }
  .header-search-input {
    font-size: 11.5px;
  }
  .header-search-btn {
    padding: 2px 8px;
    font-size: 11px;
  }
  .header-right-tools {
    gap: 8px !important;
    font-size: 12px;
  }
  .btn-create-account {
    padding: 5px 12px;
    font-size: 11.5px;
  }
  .sub-categories-nav {
    gap: 12px !important;
    font-size: 11.5px !important;
    margin-top: 6px;
  }
  .secondary-right-nav {
    gap: 10px !important;
    font-size: 11.5px !important;
    margin-top: 6px;
  }
  .tool-item {
    font-size: 11.5px;
  }
}

/* 2. Tablets Portrait & Mobile Devices (<= 991px) */
@media (max-width: 991px) {
  body {
    padding-bottom: 110px !important;
  }
  .xetprint-container {
    padding: 0 20px;
  }
  .header-right-tools {
    gap: 12px;
  }
}

/* 3. Standard Mobile Phones (<= 768px) -> RESTORED TO ORIGINAL */
@media (max-width: 768px) {
  .xetprint-container {
    padding: 0 15px;
  }
  .logo-img {
    height: 30px;
  }
  .brand-logo {
    font-size: 18px;
  }
  .top-promo-bg {
    width: 100%;
    clip-path: none;
  }
  .top-promo-content {
    font-size: 11px;
  }
  .promo-text-full {
    display: none;
  }
  .hero-section {
    display: none;
  }
  .hero-ad-banner,
  .ad-banner-img {
    height: 110px;
  }
  .ad-timer-badge {
    font-size: 10px;
    padding: 2px 8px;
  }
  .secondary-feature-bar {
    font-size: 13px;
  }
  .feature-item {
    font-size: 13px;
  }
  .main-header {
    padding: 8px 0 6px;
  }
  .header-search-wrap {
    display: block !important;
  }
}

/* 4. Small Mobile Phones (<= 576px) -> RESTORED TO ORIGINAL */
@media (max-width: 576px) {
  .btn-create-account {
    padding: 4px 10px;
    font-size: 11px;
  }
  .header-search-box {
    height: 30px;
  }
  .header-search-input {
    font-size: 12px;
  }
}

/* Mobile Responsive - Site Ad Popup */
@media (max-width: 576px) {
  #siteAdPopup .modal-dialog {
    margin: 10px;
    max-width: 95% !important;
  }

  #siteAdPopup .modal-content {
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Image full width on mobile */
  #siteAdPopup .modal-body img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: cover;
  }

  /* Text padding for mobile */
  #siteAdPopup .modal-body .p-3,
  #siteAdPopup .modal-body .p-4 {
    padding: 15px !important;
  }

  /* Button full width on mobile */
  #siteAdPopup .modal-body a[style*="display: inline-block"] {
    display: block !important;
    width: 100% !important;
    text-align: center;
    padding: 12px !important;
  }

  /* Close button smaller on mobile */
  #siteAdPopup .modal-body .close {
    width: 30px !important;
    height: 30px !important;
    font-size: 18px !important;
    top: 8px !important;
    right: 10px !important;
  }

  /* Timer text position */
  #siteAdPopup
    .modal-body
    div[style*="position: absolute; bottom: 20px; right: 20px;"] {
    bottom: 10px !important;
    right: 10px !important;
    font-size: 10px !important;
    padding: 2px 10px !important;
  }

  /* Text only ad padding */
  #siteAdPopup .modal-body div[style*="padding: 40px 30px;"] {
    padding: 30px 20px !important;
  }

  /* Overlay text on mobile */
  #siteAdPopup
    .modal-body
    div[style*="position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 25px;"] {
    padding: 15px 15px !important;
  }

  #siteAdPopup
    .modal-body
    div[style*="position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 25px;"]
    h3 {
    font-size: 18px !important;
    margin-bottom: 5px !important;
  }

  #siteAdPopup
    .modal-body
    div[style*="position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 25px;"]
    p {
    font-size: 12px !important;
    margin-bottom: 10px !important;
  }
}

/* Even smaller screens */
@media (max-width: 400px) {
  #siteAdPopup .modal-dialog {
    margin: 5px;
    max-width: 98% !important;
  }

  #siteAdPopup .modal-body img {
    max-height: 40vh;
  }

  #siteAdPopup .modal-body h4 {
    font-size: 16px !important;
  }

  #siteAdPopup .modal-body p {
    font-size: 12px !important;
  }
}
