/* Payment preview only: use the active theme palette in every selection state. */
html.dp-public #paymentModal .modal-content,
html.dp-public #paymentModal .modal-payment-container {
  background: var(--dp-panel, #fff) !important;
  color: var(--dp-text, #19212f) !important;
  border-color: var(--dp-line, #dfe4ed) !important;
}
html.dp-public #paymentModal .option-payment-form :is(.modal-title,.amount-value,.method-name) {
  color: var(--dp-text, #19212f) !important;
}
html.dp-public #paymentModal .option-payment-form :is(.modal-subtitle,.amount-label,.method-desc,.policy-info) {
  color: var(--dp-muted, #667085) !important;
}
html.dp-public #paymentModal .option-payment-form .amount-section {
  border-color: var(--dp-line, #dfe4ed) !important;
}
html.dp-public #paymentModal .option-payment-form .method-item {
  background: var(--dp-panel, #fff) !important;
  color: var(--dp-text, #19212f) !important;
  border: 1px solid var(--dp-line, #dfe4ed) !important;
}
html.dp-public #paymentModal .option-payment-form .method-item.active,
html.dp-public #paymentModal .option-payment-form .method-item:hover,
html.dp-public #paymentModal .option-payment-form .method-item:focus-within {
  background: var(--dp-panel-raised, #edf0f5) !important;
  border-color: var(--dp-accent, #3276bd) !important;
}
html.dp-public #paymentModal .option-payment-form .method-icon {
  color: var(--dp-text, #19212f) !important;
  background: var(--dp-panel-raised, #edf0f5) !important;
}
html.dp-public #paymentModal .option-payment-form .policy-info a {
  color: var(--dp-text, #19212f) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html.dp-public #paymentModal :is(.btn-close,.btn-close-noir) {
  background: transparent !important;
  color: var(--dp-text, #19212f) !important;
  opacity: 1;
}
html.dp-public #paymentModal :is(.btn-close,.btn-close-noir) i {
  color: inherit !important;
}
html.dp-public #paymentModal .initTargetPayment:focus-visible,
html.dp-public #paymentModal :is(.btn-close,.btn-close-noir):focus-visible {
  outline: 2px solid var(--dp-accent, #3276bd);
  outline-offset: 3px;
}
html.dp-public #paymentModal .modal-content {
  border-radius: 20px !important;
  overflow: hidden;
}
html.dp-public #paymentModal .btn-close-noir {
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
}
/* 21 Nov: isolated feedback fixes; no global panel or page-background overrides. */
html.dp-public:root body #chatModal .message-action-interaction {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
html.dp-public:root body #chatModal .message-action-interaction > .btn-custom-mini {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px !important;
  border: 1px solid var(--dp-accent,#326fbd) !important;
  border-radius: 9px;
  background: var(--dp-panel-raised,#edf2f8) !important;
  color: var(--dp-text,#172334) !important;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
  text-decoration: none;
}
html.dp-public:root body #chatModal .message-action-interaction > .btn-custom-mini:is(:hover,:focus-visible) {
  background: var(--dp-panel,#fff) !important;
  outline: 2px solid var(--dp-accent,#326fbd);
  outline-offset: 2px;
}
html.dp-public:root body #chatModal .chat-dialogue-item-card-content-link-user {
  color: var(--dp-text,#172334) !important;
}
html.dp-public:root body .wheel-fortune-result > .btn-custom.wheel-fortune-result-close {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  min-width: 112px;
  min-height: 42px;
  margin: 18px auto 0 !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 20px !important;
  color: var(--dp-text,#172334) !important;
  background: var(--dp-panel-raised,#edf2f8) !important;
  border: 1px solid var(--dp-line,#cbd5e1) !important;
  cursor: pointer;
}
html.dp-public:root body .wheel-fortune-result > .wheel-fortune-result-close:not(.btn-custom) {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  border-radius: 8px;
  color: var(--dp-text,#172334) !important;
  cursor: pointer;
}
html.dp-public:root body .wheel-fortune-result > .wheel-fortune-result-close:focus-visible {
  outline: 2px solid var(--dp-accent,#326fbd);
  outline-offset: 3px;
}
html.dp-public:root body .ad-create-options-container-item-extra-settings .switch {
  cursor: pointer;
  border-radius: 9px;
  padding-block: 8px;
}
html.dp-public:root body .ad-create-options-container-item-extra-settings .switch-toggle-slider {
  width: 44px !important;
  height: 26px !important;
  border-radius: 99px !important;
  box-sizing: border-box !important;
  overflow: hidden;
  border: 1px solid var(--dp-muted,#68788b) !important;
  background: var(--dp-panel-raised,#e9eef5) !important;
}
html.dp-public:root body .ad-create-options-container-item-extra-settings .switch-toggle-slider::after {
  top: 50% !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  transform: translateY(-50%) !important;
  background: var(--dp-text,#172334) !important;
}
html.dp-public:root body .ad-create-options-container-item-extra-settings .switch-input:checked + .switch-toggle-slider {
  background: var(--dp-accent,#326fbd) !important;
  border-color: var(--dp-accent,#326fbd) !important;
}
html.dp-public:root body .ad-create-options-container-item-extra-settings .switch-input:checked + .switch-toggle-slider::after {
  left: 21px !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  background: #fff !important;
}
html.dp-public:root body .ad-create-options-container-item-extra-settings .switch-input:focus-visible + .switch-toggle-slider {
  outline: 2px solid var(--dp-accent,#326fbd);
  outline-offset: 3px;
}
/* Mobile tariff and account layouts. */
@media (max-width: 699px) {
  html.dp-public .profile-home-sections .section__header {
    gap: 8px;
    align-items: baseline;
    margin-bottom: 14px;
  }
  html.dp-public .profile-home-sections .section__title {
    min-width: 0;
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.2;
    overflow-wrap: break-word;
  }
  html.dp-public .profile-home-sections .section__link {
    flex: 0 0 auto;
    color: var(--dp-muted, inherit);
    font-size: 12px;
    white-space: nowrap;
  }
  html.dp-public .profile-home-sections .plan-card__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
  }
  html.dp-public .profile-home-sections .plan-card__actions > :is(a, button) {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 7px 8px;
    text-align: center;
    line-height: 1.25;
  }
  html.dp-public .profile-home-sections .profile-container-order-list {
    min-width: 0;
    height: auto;
    padding: 12px;
    overflow-wrap: anywhere;
  }
  html.dp-public .profile-home-sections .profile-container-order-list-title {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  html.dp-public .profile-home-sections .profile-container-review-list {
    min-width: 0;
  }
  html.dp-public .profile-home-sections .container-reviews-list-item-info {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    column-gap: 8px;
    row-gap: 6px;
  }
  html.dp-public .profile-home-sections .container-reviews-list-item-info-block1 {
    grid-row: span 2;
    width: 40px;
    margin: 0;
  }
  html.dp-public .profile-home-sections .container-reviews-list-item-info-block2 {
    min-width: 0;
    width: auto;
    margin: 0;
    overflow-wrap: anywhere;
  }
  html.dp-public .profile-home-sections :is(.container-reviews-list-item-info-name, .container-reviews-list-item-info-name-and-date, .container-reviews-list-item-info-title) {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  html.dp-public .profile-home-sections .container-reviews-list-item-info-block3 {
    grid-column: 2;
    width: auto;
    margin: 0;
  }
  html.dp-public .profile-home-sections .container-user-rating-stars {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    line-height: 1;
  }
  html.dp-public .profile-home-sections .container-user-rating-stars > span {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
  }
  html.dp-public .main-wrapper:has(.my-tabs-item:is([href*="/profile/ads"], [href^="?status="])) :is(.my-tabs-items, .my-tabs-items-small) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-block: 12px 16px;
  }
  html.dp-public .main-wrapper:has(.my-tabs-item:is([href*="/profile/ads"], [href^="?status="])) :is(.my-tabs-items, .my-tabs-items-small) > .my-tabs-item {
    display: flex;
    gap: 5px;
    align-items: center;
    min-height: 36px;
    margin: 0 !important;
    padding: 5px 7px;
    border-radius: 8px;
    color: var(--dp-muted, inherit);
    font-size: 12px !important;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  html.dp-public .main-wrapper:has(.my-tabs-item:is([href*="/profile/ads"], [href^="?status="])) :is(.my-tabs-items, .my-tabs-items-small) > .my-tabs-item.active {
    color: var(--dp-text, inherit);
    background: var(--dp-panel-raised, var(--dp-panel, transparent));
    box-shadow: inset 0 0 0 1px var(--dp-line, currentColor);
  }
  html.dp-public .main-wrapper:has(.my-tabs-item:is([href*="/profile/ads"], [href^="?status="])) :is(.my-tabs-items, .my-tabs-items-small) > .my-tabs-item > span {
    position: static !important;
    color: inherit;
    flex: 0 0 auto;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
  }
  html.dp-public .main-wrapper:has(.my-tabs-item:is([href*="/profile/ads"], [href^="?status="])) .profile-container-item-list {
    padding: 12px;
    margin-bottom: 10px;
  }
  html.dp-public .main-wrapper:has(.my-tabs-item:is([href*="/profile/ads"], [href^="?status="])) .profile-container-item-images {
    height: auto;
    max-height: 150px;
    aspect-ratio: 2 / 1;
  }
  html.dp-public .main-wrapper:has(.my-tabs-item:is([href*="/profile/ads"], [href^="?status="])) .profile-container-item-list-content {
    margin-top: 8px !important;
  }
  html.dp-public .main-wrapper:has(.my-tabs-item:is([href*="/profile/ads"], [href^="?status="])) .profile-container-item-list-content-title {
    color: var(--dp-text, inherit);
    font-size: 16px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  html.dp-public .main-wrapper:has(.my-tabs-item:is([href*="/profile/ads"], [href^="?status="])) .profile-container-item-list-content-additionally {
    margin-top: 6px;
  }
}
