/* COOL Design | Zaoblenie prvkov e-shopu | SK + CZ | V6
   Doplnkove CSS pre Shoptet Venus. Bez zmeny cien, farieb a funkcii. */
:root {
  --cd-radius-control: 12px;
  --cd-radius-card: 16px;
  --cd-radius-panel: 20px;
}

/* 01 | Tlacidla a formularove polia */
body .btn,
body .button,
body button[type="submit"],
body input[type="submit"],
body .add-to-cart-button,
body .btn-conversion,
body .form-control:not([type="radio"]):not([type="checkbox"]),
body select,
body textarea,
body input:is([type="text"],[type="email"],[type="tel"],[type="password"],[type="search"],[type="url"]):not(.quantity input) {
  border-radius: var(--cd-radius-control) !important;
}

/* Spojene ovladacie prvky nech ostanu spojene. */
body .quantity,
body .quantity-wrapper {
  border-radius: var(--cd-radius-control);
}

/* 02 | Kosik: samostatne karty dopravy a platby.
   Nazvy shippingId/billingId a radio-wrapper overene v SK kosiku. */
body .radio-wrapper:has(input[name="shippingId"]),
body .radio-wrapper:has(input[name="billingId"]) {
  border-radius: var(--cd-radius-card) !important;
  margin-bottom: 6px;
}
body .radio-wrapper:has(input[name="shippingId"]) > label,
body .radio-wrapper:has(input[name="billingId"]) > label,
body .radio-wrapper:has(input[name="shippingId"]) > .radio-content,
body .radio-wrapper:has(input[name="billingId"]) > .radio-content,
body .radio-wrapper:has(input[name="shippingId"]) .payment-shipping-label,
body .radio-wrapper:has(input[name="billingId"]) .payment-shipping-label {
  border-radius: var(--cd-radius-card) !important;
}

/* 03 | Produktovy vypis a detail. Standardne selektory Shoptet.
   Bez orezania kariet, priznakov, tooltipov a ovladacich prvkov. */
body .products .product > .p,
body .products .product .p,
body .products .product .image,
body .products .product .image img,
body .p-image,
body .p-image > a,
body .p-image img,
body .p-thumbnails a,
body .p-thumbnails img,
body .subcategory a,
body .subcategories li a,
body .subcategories li a img {
  border-radius: var(--cd-radius-card) !important;
}

/* 04 | Vybrane vacsie panely, filtre a dialogy */
body .filters-wrapper,
body .filter-section,
body .modal-content,
body .popup-content,
body .login-window,
body .register-window,
body .cart-widget,
body .search-whisperer {
  border-radius: var(--cd-radius-panel) !important;
}

/* Bez globalneho orezavania alebo zasahov do JavaScriptu. */


/* 05 | Mnozstvo: obly spolocny obal, rovne vnutorne spoje. */
body .quantity {
  border-radius: var(--cd-radius-control) !important;
  overflow: hidden !important;
  isolation: isolate;
}
body .quantity :is(input,button,a,span,.increase,.decrease,.quantity-increase,.quantity-decrease,.btn,.form-control),
body .quantity > div {
  border-radius: 0 !important;
}
body .quantity :is(input,button,a,span,.increase,.decrease)::before,
body .quantity :is(input,button,a,span,.increase,.decrease)::after {
  border-radius: 0 !important;
}
body .quantity:focus-within {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* 06 | Detail produktu: obal ceny, splatok a nakupneho tlacidla.
   Alternativy pre rozne varianty HTML struktury Venus. */
body.type-detail :is(.p-to-cart-block,.p-price-and-cart,.p-price-and-cart-wrapper,.p-buy-block,.p-purchase-block,.p-price-wrapper,.p-final-price-wrapper,.p-to-cart-wrapper,.p-cart-block,.p-info-wrapper .add-to-cart),
body.type-detail :is(div,section,form):has(> :is(.p-final-price-wrapper,.p-price-wrapper,.price-final)):has(> :is(.add-to-cart,.p-to-cart-block,.p-to-cart-wrapper,.p-cart-block)),
body.type-detail :is(div,section,form):has(> .p-to-cart-block):has(> :is(.p-final-price-wrapper,.p-price-wrapper,.price-final,.p-price)) {
  border-radius: var(--cd-radius-card) !important;
}

/* 07 | Kosik: jedna obla karta pre kazdy tovar. */
body table.cart-table {
  border-collapse: separate !important;
  border-spacing: 0;
}
body .cart-table tbody :is(tr,.cart-item,.cart-row):has(.quantity),
body :is(.cart-item,.cart-row,.cart-product):has(.quantity) {
  border-radius: var(--cd-radius-card) !important;
}
@media (min-width: 768px) {
  /* Pri tabulke su viditelne plochy tvorene bunkami. */
  body table.cart-table tbody tr:has(.quantity) {
    background-color: transparent !important;
  }
  body table.cart-table tbody tr:has(.quantity) > td {
    background-color: #fff;
    background-clip: padding-box;
  }
  body table.cart-table tbody tr:has(.quantity) > td:first-child {
    border-top-left-radius: var(--cd-radius-card) !important;
    border-bottom-left-radius: var(--cd-radius-card) !important;
  }
  body table.cart-table tbody tr:has(.quantity) > td:last-child {
    border-top-right-radius: var(--cd-radius-card) !important;
    border-bottom-right-radius: var(--cd-radius-card) !important;
  }
}

/* 08 | Zlavovy kupon: obal, nie samotny checkbox. */
body :is(.discount-coupon,.discount-coupon-wrapper,.discount-coupon-form,.discount-coupon-box,.cart-discount,.cart-coupon,.cart-discount-coupon,#discount-coupon-form,#discount-coupon),
body :is(.cart-content,.cart-wrapper,.cart-inner,.cart-content-inner) :is(div,section,form,label):is([class*="coupon" i],[id*="coupon" i]):not(:is(.btn,.form-control)) {
  border-radius: var(--cd-radius-card) !important;
}

/* 09 | Bonusovy program Ellity: iba plochy na detaile a v kosiku.
   Nazvy doplnku su alternativy; presny zivy DOM nebol dostupny. */
body.type-detail :is(div,section,aside):is([class*="ellity" i],[id*="ellity" i],[class*="bonus" i],[id*="bonus" i]),
body :is(.cart-content,.cart-wrapper,.cart-inner,.cart-content-inner) :is(div,section,aside):is([class*="ellity" i],[id*="ellity" i],[class*="bonus" i],[id*="bonus" i]),
body :is(.ellity-product,.ellity-product-bonus,.ellity-product-points,.ellity-cart,.ellity-cart-bonus,.ellity-cart-points,.bonus-program,.bonus-program-content,.bonus-system-product,.bonus-system-cart,.bonus-system-product-info,.bonus-system-cart-info) {
  border-radius: var(--cd-radius-card) !important;
}

/* 10 | Rovna deliaca ciara pri suhrne; tlacidla ostavaju oble. */
body :is(.order-summary,.cart-summary,.cart-content) {
  border-radius: 0 !important;
}
