:root {
  --storefront-control-radius: 5px;
  --storefront-card-radius: 8px;
}

/* The shared storefront radii also cover markup assembled by the calculators. */
:where(
  button, summary, [role="button"], [role="tab"], .btn,
  .dzsl-why__more, .dzsl-page-hero__cta, .hero__cta, .hero-slider__cta,
  .hero-factory__link, .not-found__home, .contact-map-action,
  .icon-btn, .card-fav, .card-cmp, .footer__messenger, .mobile-search-trigger,
  .dzsl-why__photo-nav a, .clamp-series-card__documents a,
  .quick-filter-chip, .quick-filter a, .filter-chip,
  .calculator-hub__tabs a, .calculator-hub__open-link,
  .calculator-links a, .tower-picker__calculator-links a,
  .cart-buyer-options label > span, .tower-picker__platform label > span,
  .tower-picker__series label > span,
  .calculator-select, .calculator-select__list button
):not(:where(
  .production-film-player__play, .production-step-clip__button,
  [role="slider"], .leaflet-container *
)) {
  border-radius: var(--storefront-control-radius) !important;
}

:where(
  input:not([type]), input:is([type="text"], [type="search"], [type="email"],
    [type="tel"], [type="url"], [type="password"], [type="number"],
    [type="date"], [type="time"], [type="datetime-local"], [type="month"],
    [type="week"], [type="file"], [type="color"]), textarea, select
):not(:where(.leaflet-container *)) {
  border-radius: var(--storefront-control-radius) !important;
}

:where(input:is([type="submit"], [type="reset"], [type="button"])),
input[type="file"]::file-selector-button {
  border-radius: var(--storefront-control-radius) !important;
}

:where(
  .card, .product-card, .blog-card, .category-tile, .review-card,
  .equipment-picker__option, .tier-card, .form-card, .card-link,
  .home-calculator-card, .home-factory-editorial__proof, .clamp-series-card,
  .not-found__card, .home-documents__card, .object-card, #primenenie .objects-photo img,
  .doc-card, .auth-card, .quick-order__product, .aside-card, .helper-card, .case-card,
  .production-tile, .hero__visual-card, .tower-selection-card,
  [data-cart-stabilizer-offer],
  .settings.panel, .model-panel.panel, .calculator-native-app .panel, .calculator-native-app .area-card,
  .calculator-native-app .filter-card, .calculator-native-app .tower-picker__controls,
  .calculator-native-app .tower-viewer-panel, .calculator-native-app .tower-picker__shell,
  .protection-landing .protection-configuration
) {
  border-radius: var(--storefront-card-radius) !important;
}

/* Keep only the exterior corners on a quantity/stepper assembly. */
:where(.qty-control, .stepper, .cart-qty-stepper, [data-cart-qty-stepper]) {
  border-radius: var(--storefront-control-radius) !important;
}

:where(.qty-control, .stepper, .cart-qty-stepper, [data-cart-qty-stepper]) > :is(button, input) {
  border-radius: 0 !important;
}

:where(.qty-control, .stepper, .cart-qty-stepper, [data-cart-qty-stepper]) > :is(button, input):first-child {
  border-start-start-radius: var(--storefront-control-radius) !important;
  border-end-start-radius: var(--storefront-control-radius) !important;
}

:where(.qty-control, .stepper, .cart-qty-stepper, [data-cart-qty-stepper]) > :is(button, input):last-child {
  border-start-end-radius: var(--storefront-control-radius) !important;
  border-end-end-radius: var(--storefront-control-radius) !important;
}
