/* =========================================================
   IONTMAX Theme — Provizni system (Shoptet Affiliate)
   Scope contract:
   - styles apply ONLY inside .ipp-affiliate-shell
   - .ipp-affiliate-shell is added only by this module's JS
     when a Shoptet Affiliate marker is present
   ========================================================= */

.ipp-affiliate-shell {
  --ipp-aff-text: #151617;
  --ipp-aff-muted: #6b7280;
  --ipp-aff-border: #e4e6e8;
  --ipp-aff-soft: #f5f6f7;
  --ipp-aff-soft-2: #fafafa;
  --ipp-aff-dark: #303233;
  --ipp-aff-dark-hover: #161718;
  --ipp-aff-white: #ffffff;
  --ipp-aff-focus: rgba(48, 50, 51, 0.14);
  --ipp-aff-danger: #b42318;
  --ipp-aff-radius: 16px;
  --ipp-aff-radius-sm: 10px;

  box-sizing: border-box;
  width: 100%;
  min-height: 60vh;
  min-height: 60svh;
  padding-top: clamp(18px, 2vw, 32px);
  padding-bottom: clamp(40px, 5vw, 72px);
  color: var(--ipp-aff-text);
}

.ipp-affiliate-shell,
.ipp-affiliate-shell * {
  box-sizing: border-box;
}

/* ---------- Layout ---------- */

.ipp-affiliate-shell > main#content,
.ipp-affiliate-shell > .content {
  min-width: 0;
}

.ipp-affiliate-shell--login,
.ipp-affiliate-shell--forgotten,
.ipp-affiliate-shell--registration {
  display: block !important;
}

.ipp-affiliate-shell--login > main#content,
.ipp-affiliate-shell--forgotten > main#content {
  float: none !important;
  width: min(100%, 620px) !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.ipp-affiliate-shell--registration > main#content {
  float: none !important;
  width: min(100%, 860px) !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.ipp-affiliate-shell--dashboard {
  display: grid !important;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.ipp-affiliate-shell--dashboard > aside.sidebar,
.ipp-affiliate-shell--dashboard > .sidebar {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ipp-affiliate-shell--dashboard > main#content,
.ipp-affiliate-shell--dashboard > .content {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.ipp-affiliate-shell .content-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ---------- Typography ---------- */

.ipp-affiliate-shell .content-inner > h1 {
  margin: 0 0 clamp(24px, 3vw, 38px) !important;
  color: var(--ipp-aff-text) !important;
  font-size: clamp(30px, 3vw, 42px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  text-align: left !important;
}

.ipp-affiliate-shell h2 {
  margin: 0 0 20px !important;
  color: var(--ipp-aff-text) !important;
  font-size: clamp(20px, 1.8vw, 25px) !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.015em !important;
}

.ipp-affiliate-shell h3 {
  margin: 0 0 14px !important;
  color: var(--ipp-aff-text) !important;
  font-size: 17px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
}

.ipp-affiliate-shell p {
  color: var(--ipp-aff-text);
  line-height: 1.6;
}

.ipp-affiliate-shell a {
  color: var(--ipp-aff-text);
  text-underline-offset: 3px;
}

.ipp-affiliate-shell a:hover,
.ipp-affiliate-shell a:focus-visible {
  color: #000;
}

/* ---------- Auth cards ---------- */

.ipp-affiliate-shell #formAffiliateLogin,
.ipp-affiliate-shell form.forgotten-password-form,
.ipp-affiliate-shell form.registration-form > fieldset,
.ipp-affiliate-shell form.form-registration-affilate > fieldset {
  width: 100%;
  margin: 0 !important;
  padding: clamp(22px, 3vw, 34px) !important;
  border: 1px solid var(--ipp-aff-border) !important;
  border-radius: var(--ipp-aff-radius) !important;
  background: var(--ipp-aff-white) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.035) !important;
}

.ipp-affiliate-shell--forgotten .content-inner > p {
  max-width: 560px;
  margin: -8px 0 22px !important;
  color: var(--ipp-aff-muted) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.ipp-affiliate-shell form.registration-form > fieldset > h2,
.ipp-affiliate-shell form.form-registration-affilate > fieldset > h3 {
  margin-top: 30px !important;
  padding-top: 28px !important;
  border-top: 1px solid var(--ipp-aff-border) !important;
}

.ipp-affiliate-shell form.registration-form > fieldset > h2:first-of-type,
.ipp-affiliate-shell form.form-registration-affilate > fieldset > h3:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

/* ---------- Forms ---------- */

.ipp-affiliate-shell .form-group {
  margin: 0 0 18px !important;
}

.ipp-affiliate-shell .form-group > label,
.ipp-affiliate-shell .smart-label-wrapper > label {
  display: block !important;
  position: static !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: var(--ipp-aff-text) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  transform: none !important;
  pointer-events: auto !important;
}

.ipp-affiliate-shell .required-asterisk::after {
  color: var(--ipp-aff-danger) !important;
}

.ipp-affiliate-shell .form-control-wrapper {
  position: relative;
  width: 100%;
}

.ipp-affiliate-shell input.form-control:not([type="checkbox"]):not([type="radio"]),
.ipp-affiliate-shell textarea.form-control,
.ipp-affiliate-shell select.form-control {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 1px solid #d9dcdf !important;
  border-radius: var(--ipp-aff-radius-sm) !important;
  background: var(--ipp-aff-white) !important;
  box-shadow: none !important;
  color: var(--ipp-aff-text) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  outline: none !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease !important;
}

.ipp-affiliate-shell input.form-control:not([type="checkbox"]):not([type="radio"]) {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 14px !important;
}

.ipp-affiliate-shell textarea.form-control {
  min-height: 96px !important;
  padding: 12px 14px !important;
  resize: vertical !important;
}

.ipp-affiliate-shell input.form-control:focus,
.ipp-affiliate-shell textarea.form-control:focus,
.ipp-affiliate-shell select.form-control:focus {
  border-color: var(--ipp-aff-dark) !important;
  box-shadow: 0 0 0 3px var(--ipp-aff-focus) !important;
}

.ipp-affiliate-shell input.form-control[aria-invalid="true"],
.ipp-affiliate-shell .has-error input.form-control,
.ipp-affiliate-shell .has-error textarea.form-control {
  border-color: var(--ipp-aff-danger) !important;
}

.ipp-affiliate-shell .form-legend {
  margin: -4px 0 22px !important;
  color: var(--ipp-aff-muted) !important;
  font-size: 12px !important;
}

.ipp-affiliate-shell .form-group-tooltip {
  top: 50% !important;
  right: 12px !important;
  transform: translateY(-50%) !important;
}

/* Phone control: style only the Affiliate form instance. */
.ipp-affiliate-shell .phone-combined-input {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flags {
  flex: 0 0 112px !important;
  min-width: 112px !important;
  min-height: 50px !important;
  margin: 0 !important;
  border: 1px solid #d9dcdf !important;
  border-radius: var(--ipp-aff-radius-sm) !important;
  background: var(--ipp-aff-white) !important;
  box-shadow: none !important;
}

.ipp-affiliate-shell .phone-combined-input input[type="tel"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* ---------- Buttons ---------- */

.ipp-affiliate-shell .btn.btn-primary,
.ipp-affiliate-shell button.btn-primary,
.ipp-affiliate-shell .submit-wrapper .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  border: 1px solid var(--ipp-aff-dark) !important;
  border-radius: 10px !important;
  background: var(--ipp-aff-dark) !important;
  box-shadow: none !important;
  color: var(--ipp-aff-white) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.015em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease !important;
}

.ipp-affiliate-shell .btn.btn-primary:hover,
.ipp-affiliate-shell .btn.btn-primary:focus-visible,
.ipp-affiliate-shell button.btn-primary:hover,
.ipp-affiliate-shell button.btn-primary:focus-visible,
.ipp-affiliate-shell .submit-wrapper .btn:hover,
.ipp-affiliate-shell .submit-wrapper .btn:focus-visible {
  border-color: var(--ipp-aff-dark-hover) !important;
  background: var(--ipp-aff-dark-hover) !important;
  color: var(--ipp-aff-white) !important;
}

.ipp-affiliate-shell .submit-wrapper {
  margin-top: 24px !important;
  margin-bottom: 0 !important;
}

.ipp-affiliate-shell .alternative-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 10px 18px !important;
  margin: 22px 0 0 !important;
  padding: 18px 0 0 !important;
  border-top: 1px solid var(--ipp-aff-border) !important;
}

.ipp-affiliate-shell .alternative-links a {
  color: #4b5157 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  text-decoration: underline !important;
  text-decoration-color: #b9bdc1 !important;
}

.ipp-affiliate-shell .alternative-links a:hover,
.ipp-affiliate-shell .alternative-links a:focus-visible {
  color: #000 !important;
  text-decoration-color: #000 !important;
}

.ipp-affiliate-shell .consents {
  margin-top: 12px !important;
  padding: 14px 16px !important;
  border-radius: 10px !important;
  background: var(--ipp-aff-soft) !important;
}

.ipp-affiliate-shell .consents .label {
  margin: 0 !important;
  color: #4f555a !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

/* ---------- Affiliate dashboard navigation ---------- */

.ipp-affiliate-shell--dashboard .sidebar-inner,
.ipp-affiliate-shell--dashboard .sidebar-inner.visible {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ipp-affiliate-shell--dashboard .sidebar .box.box-sm.box-bg-variant {
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid var(--ipp-aff-border) !important;
  border-radius: 14px !important;
  background: var(--ipp-aff-soft-2) !important;
  box-shadow: none !important;
}

.ipp-affiliate-shell--dashboard .sidebar ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ipp-affiliate-shell--dashboard .sidebar li {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.ipp-affiliate-shell--dashboard .sidebar li > a {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #555b61 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: none !important;
}

.ipp-affiliate-shell--dashboard .sidebar li.active > a,
.ipp-affiliate-shell--dashboard .sidebar li > a[aria-selected="true"] {
  background: var(--ipp-aff-dark) !important;
  color: var(--ipp-aff-white) !important;
}

.ipp-affiliate-shell--dashboard .sidebar li:not(.active) > a:hover,
.ipp-affiliate-shell--dashboard .sidebar li:not(.active) > a:focus-visible {
  background: #eceeef !important;
  color: #111 !important;
}

.ipp-affiliate-shell--dashboard .sidebar li.logout {
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid var(--ipp-aff-border) !important;
}

.ipp-affiliate-shell--dashboard .sidebar li.logout > a,
.ipp-affiliate-shell--dashboard .sidebar li.logout > a.btn {
  min-height: 40px !important;
  border: 1px solid #d9dcdf !important;
  background: var(--ipp-aff-white) !important;
  color: #4f555a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

/* ---------- Dashboard overview ---------- */

.ipp-affiliate-shell #affiliateIntroduction > .row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px !important;
  margin: 0 !important;
}

.ipp-affiliate-shell #affiliateIntroduction > .row > [class*="col-"] {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 22px !important;
  border: 1px solid var(--ipp-aff-border) !important;
  border-radius: 14px !important;
  background: var(--ipp-aff-white) !important;
}

.ipp-affiliate-shell #affiliateIntroduction > .row > [class*="col-"] > h2 {
  margin-bottom: 14px !important;
  font-size: 19px !important;
}

/* ---------- Tables ---------- */

.ipp-affiliate-shell table.table {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
}

.ipp-affiliate-shell table.table th,
.ipp-affiliate-shell table.table td {
  padding: 12px 10px !important;
  border-right: 0 !important;
  border-left: 0 !important;
  border-bottom: 1px solid var(--ipp-aff-border) !important;
  background: transparent !important;
  color: var(--ipp-aff-text) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  text-align: left !important;
  vertical-align: middle !important;
}

.ipp-affiliate-shell table.table thead th {
  padding-top: 8px !important;
  padding-bottom: 9px !important;
  color: var(--ipp-aff-muted) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}

.ipp-affiliate-shell table.table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.ipp-affiliate-shell #affiliateIntroduction table.table td:last-child,
.ipp-affiliate-shell #affiliateIntroduction table.table th:last-child {
  text-align: right !important;
  font-weight: 700 !important;
}

/* ---------- Account / registration tab ---------- */

.ipp-affiliate-shell #affiliateMyAccount > h2,
.ipp-affiliate-shell #affiliateOrders > h2,
.ipp-affiliate-shell #affiliateBanners > h2,
.ipp-affiliate-shell #affiliateLinks > h2,
.ipp-affiliate-shell #affiliateCoupons > h2 {
  margin-bottom: 18px !important;
}

.ipp-affiliate-shell #affiliateOrders,
.ipp-affiliate-shell #affiliateCoupons {
  min-height: 160px;
  padding: 22px !important;
  border: 1px solid var(--ipp-aff-border) !important;
  border-radius: 14px !important;
  background: var(--ipp-aff-white) !important;
  color: var(--ipp-aff-muted) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* ---------- Banners ---------- */

.ipp-affiliate-shell #affiliateBanners.active,
.ipp-affiliate-shell #affiliateBanners.in.active {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px !important;
}

.ipp-affiliate-shell #affiliateBanners > h2 {
  grid-column: 1 / -1;
}

.ipp-affiliate-shell .affiliate-banner {
  min-width: 0;
  margin: 0 !important;
  padding: 20px !important;
  border: 1px solid var(--ipp-aff-border) !important;
  border-radius: 14px !important;
  background: var(--ipp-aff-white) !important;
}

.ipp-affiliate-shell .affiliate-banner > p {
  margin: 0 0 16px !important;
}

.ipp-affiliate-shell .affiliate-banner img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 340px !important;
  margin: 0 auto !important;
  border-radius: 10px !important;
  object-fit: contain !important;
}

.ipp-affiliate-shell .url-generation-box > p {
  margin: 0 !important;
}

.ipp-affiliate-shell .url-generation-box .html-code:not(.no-display) {
  margin-top: 12px !important;
}

.ipp-affiliate-shell .html-code textarea.form-control {
  min-height: 92px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

/* ---------- Affiliate links ---------- */

.ipp-affiliate-shell #affiliateLinks table.table {
  overflow: hidden !important;
  border: 1px solid var(--ipp-aff-border) !important;
  border-radius: 14px !important;
  background: var(--ipp-aff-white) !important;
}

.ipp-affiliate-shell #affiliateLinks table.table th,
.ipp-affiliate-shell #affiliateLinks table.table td {
  padding: 14px !important;
}

.ipp-affiliate-shell #affiliateLinks td:first-child a {
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: #c4c7ca !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .ipp-affiliate-shell--dashboard {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
  }

  .ipp-affiliate-shell #affiliateIntroduction > .row {
    grid-template-columns: 1fr;
  }

  .ipp-affiliate-shell #affiliateBanners.active,
  .ipp-affiliate-shell #affiliateBanners.in.active {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .ipp-affiliate-shell {
    min-height: 60vh;
    min-height: 60svh;
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .ipp-affiliate-shell--dashboard {
    display: block !important;
  }

  .ipp-affiliate-shell--dashboard > aside.sidebar,
  .ipp-affiliate-shell--dashboard > .sidebar {
    width: 100% !important;
    margin: 0 0 24px !important;
  }

  .ipp-affiliate-shell--dashboard .sidebar .box.box-sm.box-bg-variant {
    padding: 8px !important;
    overflow: hidden !important;
  }

  .ipp-affiliate-shell--dashboard .sidebar ul {
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 2px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ipp-affiliate-shell--dashboard .sidebar ul::-webkit-scrollbar {
    display: none !important;
  }

  .ipp-affiliate-shell--dashboard .sidebar li {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .ipp-affiliate-shell--dashboard .sidebar li > a {
    width: auto !important;
    min-height: 40px !important;
    padding: 9px 12px !important;
    white-space: nowrap !important;
  }

  .ipp-affiliate-shell--dashboard .sidebar li.logout {
    margin-top: 0 !important;
    margin-left: 2px !important;
    padding-top: 0 !important;
    padding-left: 8px !important;
    border-top: 0 !important;
    border-left: 1px solid var(--ipp-aff-border) !important;
  }

  .ipp-affiliate-shell .content-inner > h1 {
    margin-bottom: 24px !important;
    font-size: clamp(28px, 8vw, 36px) !important;
  }

  .ipp-affiliate-shell #formAffiliateLogin,
  .ipp-affiliate-shell form.forgotten-password-form,
  .ipp-affiliate-shell form.registration-form > fieldset,
  .ipp-affiliate-shell form.form-registration-affilate > fieldset {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }

  .ipp-affiliate-shell .phone-combined-input .country-flags {
    flex-basis: 102px !important;
    min-width: 102px !important;
  }

  .ipp-affiliate-shell .submit-wrapper .btn,
  .ipp-affiliate-shell #formAffiliateLogin .submit-wrapper .btn,
  .ipp-affiliate-shell form.forgotten-password-form .submit-wrapper .btn,
  .ipp-affiliate-shell form.registration-form .submit-wrapper .btn {
    width: 100% !important;
  }

  .ipp-affiliate-shell .alternative-links {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .ipp-affiliate-shell #affiliateIntroduction > .row > [class*="col-"],
  .ipp-affiliate-shell .affiliate-banner,
  .ipp-affiliate-shell #affiliateOrders,
  .ipp-affiliate-shell #affiliateCoupons {
    padding: 18px 16px !important;
  }

  .ipp-affiliate-shell #affiliateLinks {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ipp-affiliate-shell #affiliateLinks table.table {
    min-width: 620px !important;
  }
}

@media (max-width: 420px) {
  .ipp-affiliate-shell .phone-combined-input {
    gap: 6px !important;
  }

  .ipp-affiliate-shell .phone-combined-input .country-flags {
    flex-basis: 92px !important;
    min-width: 92px !important;
  }
}

/* =========================================================
   V2 — Affiliate stability / phone / dashboard corrections
   Final overrides. Keep below all earlier module rules.
   ========================================================= */

/* ---------- Phone selector: fully own the Affiliate instance ---------- */

.ipp-affiliate-shell .phone-form-group {
  position: relative !important;
  z-index: 20 !important;
}

.ipp-affiliate-shell .phone-combined-input {
  position: relative !important;
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

/* Native Shoptet select remains in the DOM for form logic, but must never
   become a visible third control next to the flag picker and phone input. */
.ipp-affiliate-shell .phone-combined-input > select.js-phone-code,
.ipp-affiliate-shell .phone-combined-input > select[name="phoneCode"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flags {
  position: relative !important;
  z-index: 30 !important;
  flex: 0 0 124px !important;
  width: 124px !important;
  min-width: 124px !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flags::after {
  content: "";
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  z-index: 45 !important;
  width: 7px !important;
  height: 7px !important;
  margin-top: -5px !important;
  border-right: 1.5px solid #4b5157 !important;
  border-bottom: 1.5px solid #4b5157 !important;
  transform: rotate(45deg) !important;
  transform-origin: center !important;
  pointer-events: none !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flags.active::after {
  margin-top: -2px !important;
  transform: rotate(225deg) !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flags-inner {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 40 !important;
  display: block !important;
  width: 124px !important;
  min-width: 124px !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #d9dcdf !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Closed control: ONLY the currently selected country is visible. */
.ipp-affiliate-shell .phone-combined-input .country-flags:not(.active) .country-flag {
  display: none !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flags:not(.active) .country-flag.selected {
  display: flex !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flag {
  position: relative !important;
  float: none !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 8px 34px 8px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #151617 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flag.selected {
  background: #f5f6f7 !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flag:hover,
.ipp-affiliate-shell .phone-combined-input .country-flag:focus-visible {
  background: #f1f2f3 !important;
  outline: none !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flag .shp-flag {
  display: block !important;
  flex: 0 0 auto !important;
  width: 24px !important;
  height: 18px !important;
  margin: 0 !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flag .shp-flag-label {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #151617 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

/* In the compact closed control show flag + dial code only. */
.ipp-affiliate-shell .phone-combined-input .country-flags:not(.active) .country-flag.selected .shp-flag-name {
  display: none !important;
}

/* Open list: expand over the form instead of increasing form height. */
.ipp-affiliate-shell .phone-combined-input .country-flags.active {
  z-index: 1000 !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flags.active .country-flags-inner {
  width: min(320px, calc(100vw - 40px)) !important;
  min-width: 260px !important;
  height: auto !important;
  max-height: 320px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-color: #cfd3d7 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14) !important;
  scrollbar-width: thin !important;
  overscroll-behavior: contain !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flags.active .country-flag {
  display: flex !important;
}

.ipp-affiliate-shell .phone-combined-input .country-flags.active .country-flag .shp-flag-name {
  display: inline !important;
  margin-right: 4px !important;
}

.ipp-affiliate-shell .phone-combined-input > input[type="tel"],
.ipp-affiliate-shell .phone-combined-input > input.js-phone-form-control {
  position: relative !important;
  z-index: 1 !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
}

/* ---------- Dashboard navigation: logout is always last ---------- */

.ipp-affiliate-shell--dashboard .sidebar .box.box-sm.box-bg-variant {
  display: flex !important;
  min-height: 360px !important;
}

.ipp-affiliate-shell--dashboard .sidebar ul {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.ipp-affiliate-shell--dashboard .sidebar li.logout {
  order: 99 !important;
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--ipp-aff-border) !important;
}

.ipp-affiliate-shell--dashboard .sidebar li.logout > a,
.ipp-affiliate-shell--dashboard .sidebar li.logout > a.btn {
  justify-content: center !important;
  min-height: 42px !important;
  border: 1px solid #c62828 !important;
  background: #c62828 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.ipp-affiliate-shell--dashboard .sidebar li.logout > a:hover,
.ipp-affiliate-shell--dashboard .sidebar li.logout > a:focus-visible,
.ipp-affiliate-shell--dashboard .sidebar li.logout > a.btn:hover,
.ipp-affiliate-shell--dashboard .sidebar li.logout > a.btn:focus-visible {
  border-color: #a91f1f !important;
  background: #a91f1f !important;
  color: #fff !important;
}

/* ---------- Dashboard intro: two cards on desktop/tablet ---------- */

.ipp-affiliate-shell #affiliateIntroduction > .row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 20px !important;
}

.ipp-affiliate-shell #affiliateIntroduction > .row::before,
.ipp-affiliate-shell #affiliateIntroduction > .row::after {
  display: none !important;
  content: none !important;
}

.ipp-affiliate-shell #affiliateIntroduction > .row > [class*="col-"] {
  position: static !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  transform: none !important;
}

/* ---------- One title everywhere ---------- */

.ipp-affiliate-shell .content-inner > h1 {
  visibility: visible !important;
}

/* ---------- Responsive corrections ---------- */

@media (max-width: 767px) {
  .ipp-affiliate-shell--dashboard .sidebar .box.box-sm.box-bg-variant {
    display: block !important;
    min-height: 0 !important;
  }

  .ipp-affiliate-shell--dashboard .sidebar li.logout {
    order: 99 !important;
    margin-top: 0 !important;
    margin-left: 2px !important;
    padding-top: 0 !important;
    padding-left: 8px !important;
    border-top: 0 !important;
    border-left: 1px solid var(--ipp-aff-border) !important;
  }

  .ipp-affiliate-shell #affiliateIntroduction > .row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .ipp-affiliate-shell .phone-combined-input .country-flags,
  .ipp-affiliate-shell .phone-combined-input .country-flags-inner {
    flex-basis: 116px !important;
    width: 116px !important;
    min-width: 116px !important;
  }

  .ipp-affiliate-shell .phone-combined-input .country-flags.active .country-flags-inner {
    width: min(300px, calc(100vw - 32px)) !important;
    min-width: 240px !important;
  }
}

@media (max-width: 420px) {
  .ipp-affiliate-shell .phone-combined-input {
    gap: 6px !important;
  }

  .ipp-affiliate-shell .phone-combined-input .country-flags,
  .ipp-affiliate-shell .phone-combined-input .country-flags-inner {
    flex-basis: 108px !important;
    width: 108px !important;
    min-width: 108px !important;
  }
}

/* =========================================================
   V3 — Affiliate tables / links polish + copy controls
   Final overrides. Keep below all earlier module rules.
   ========================================================= */

/* ---------- Shared table reset: never inherit black Shoptet borders ---------- */

.ipp-affiliate-shell table.table,
.ipp-affiliate-shell table.table.border,
.ipp-affiliate-shell table.table > thead,
.ipp-affiliate-shell table.table > tbody,
.ipp-affiliate-shell table.table > thead > tr,
.ipp-affiliate-shell table.table > tbody > tr,
.ipp-affiliate-shell table.table > thead > tr > th,
.ipp-affiliate-shell table.table > tbody > tr > td {
  border-color: var(--ipp-aff-border) !important;
  box-shadow: none !important;
}

.ipp-affiliate-shell table.table > thead > tr,
.ipp-affiliate-shell table.table > tbody > tr {
  border: 0 !important;
  background: transparent !important;
}

.ipp-affiliate-shell table.table > thead > tr > th,
.ipp-affiliate-shell table.table > tbody > tr > td {
  border-right: 0 !important;
  border-left: 0 !important;
}

/* ---------- Overview: Provize + Kliknuti ---------- */

.ipp-affiliate-shell #affiliateIntroduction > .row > [class*="col-"] {
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--ipp-aff-border) !important;
  border-radius: 14px !important;
  background: var(--ipp-aff-white) !important;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.035) !important;
}

.ipp-affiliate-shell #affiliateIntroduction > .row > [class*="col-"] > h2 {
  margin: 0 !important;
  padding: 20px 20px 16px !important;
  border: 0 !important;
  background: var(--ipp-aff-white) !important;
  font-size: 19px !important;
}

.ipp-affiliate-shell #affiliateIntroduction table.table {
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.ipp-affiliate-shell #affiliateIntroduction table.table thead {
  background: #f6f7f8 !important;
}

.ipp-affiliate-shell #affiliateIntroduction table.table thead th {
  padding: 10px 20px !important;
  border: 0 !important;
  background: #f6f7f8 !important;
  color: #737981 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.055em !important;
}

.ipp-affiliate-shell #affiliateIntroduction table.table tbody td {
  padding: 14px 20px !important;
  border-top: 1px solid #eceeef !important;
  border-bottom: 0 !important;
  background: #fff !important;
}

.ipp-affiliate-shell #affiliateIntroduction table.table tbody tr:first-child td {
  border-top-color: #e7e9eb !important;
}

.ipp-affiliate-shell #affiliateIntroduction table.table tbody tr:hover td {
  background: #fafbfb !important;
}

/* ---------- Odkazy ---------- */

.ipp-affiliate-shell #affiliateLinks {
  min-width: 0 !important;
}

.ipp-affiliate-shell #affiliateLinks > h2 {
  margin-bottom: 18px !important;
}

.ipp-affiliate-shell #affiliateLinks table.table,
.ipp-affiliate-shell #affiliateLinks table.table.border {
  width: 100% !important;
  table-layout: fixed !important;
  overflow: hidden !important;
  border: 1px solid var(--ipp-aff-border) !important;
  border-radius: 14px !important;
  background: var(--ipp-aff-white) !important;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.03) !important;
}

.ipp-affiliate-shell #affiliateLinks table.table thead,
.ipp-affiliate-shell #affiliateLinks table.table thead tr {
  background: #f6f7f8 !important;
}

.ipp-affiliate-shell #affiliateLinks table.table thead th {
  padding: 12px 16px !important;
  border: 0 !important;
  background: #f6f7f8 !important;
  color: #737981 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
}

.ipp-affiliate-shell #affiliateLinks table.table thead th:first-child {
  width: 180px !important;
}

.ipp-affiliate-shell #affiliateLinks table.table tbody td {
  padding: 16px !important;
  border-top: 1px solid #eceeef !important;
  border-bottom: 0 !important;
  background: #fff !important;
  vertical-align: middle !important;
}

.ipp-affiliate-shell #affiliateLinks table.table tbody tr:hover td {
  background: #fbfbfc !important;
}

.ipp-affiliate-shell #affiliateLinks td:first-child a {
  color: #4b535a !important;
  font-weight: 750 !important;
  text-decoration: underline !important;
  text-decoration-color: #c7cbd0 !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}

.ipp-affiliate-shell #affiliateLinks td:first-child a:hover,
.ipp-affiliate-shell #affiliateLinks td:first-child a:focus-visible {
  color: #1f2327 !important;
  text-decoration-color: #6f757b !important;
}

.ipp-affiliate-shell #affiliateLinks td.html-code {
  min-width: 0 !important;
}

.ipp-affiliate-shell #affiliateLinks td.html-code textarea.form-control {
  min-height: 92px !important;
  margin: 0 !important;
  border-color: #dde0e3 !important;
  border-radius: 10px !important;
  background: #fbfbfc !important;
  color: #30343a !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.ipp-affiliate-shell .ipp-affiliate-copybar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 10px !important;
}

.ipp-affiliate-shell .ipp-affiliate-copybar__label {
  color: #737981 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
}

.ipp-affiliate-shell .ipp-affiliate-copy-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid #d7dade !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #30363b !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.015em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease !important;
}

.ipp-affiliate-shell .ipp-affiliate-copy-link::before {
  content: "";
  display: block !important;
  width: 13px !important;
  height: 13px !important;
  margin-right: 7px !important;
  border: 1.5px solid currentColor !important;
  border-radius: 2px !important;
  box-shadow: 3px -3px 0 -1.5px #fff, 3px -3px 0 0 currentColor !important;
}

.ipp-affiliate-shell .ipp-affiliate-copy-link:hover,
.ipp-affiliate-shell .ipp-affiliate-copy-link:focus-visible {
  border-color: #aeb4ba !important;
  background: #f5f6f7 !important;
  color: #151617 !important;
  outline: none !important;
}

.ipp-affiliate-shell .ipp-affiliate-copy-link.is-copied {
  border-color: #b8d7c1 !important;
  background: #f3faf5 !important;
  color: #25603a !important;
}

/* ---------- Mobile links: turn the table row into a clean stacked card ---------- */

@media (max-width: 767px) {
  .ipp-affiliate-shell #affiliateLinks {
    overflow: visible !important;
  }

  .ipp-affiliate-shell #affiliateLinks table.table,
  .ipp-affiliate-shell #affiliateLinks table.table.border {
    display: block !important;
    min-width: 0 !important;
    table-layout: auto !important;
    overflow: hidden !important;
  }

  .ipp-affiliate-shell #affiliateLinks table.table thead {
    display: none !important;
  }

  .ipp-affiliate-shell #affiliateLinks table.table tbody,
  .ipp-affiliate-shell #affiliateLinks table.table tr,
  .ipp-affiliate-shell #affiliateLinks table.table td {
    display: block !important;
    width: 100% !important;
  }

  .ipp-affiliate-shell #affiliateLinks table.table tbody tr + tr {
    border-top: 1px solid var(--ipp-aff-border) !important;
  }

  .ipp-affiliate-shell #affiliateLinks table.table tbody td {
    padding: 14px 16px !important;
    border: 0 !important;
  }

  .ipp-affiliate-shell #affiliateLinks table.table tbody td:first-child {
    padding-bottom: 8px !important;
    background: #f8f9f9 !important;
  }

  .ipp-affiliate-shell #affiliateLinks table.table tbody td.html-code {
    padding-top: 12px !important;
  }

  .ipp-affiliate-shell #affiliateLinks td.html-code textarea.form-control {
    min-height: 110px !important;
  }

  .ipp-affiliate-shell .ipp-affiliate-copybar {
    align-items: stretch !important;
  }

  .ipp-affiliate-shell .ipp-affiliate-copy-link {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 420px) {
  .ipp-affiliate-shell .ipp-affiliate-copybar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .ipp-affiliate-shell .ipp-affiliate-copy-link {
    width: 100% !important;
  }
}
