.rodina-cart-page {
  min-height: 70vh;
  padding: clamp(40px, 6vw, 80px) 0 120px;
  color: #fff;
}

@keyframes rodina-checkout-pulse {
  0% {
    transform: scale(1);
  }

  55% {
    transform: scale(5);
  }

  100% {
    transform: scale(1);
  }
}

.rodina-cart-page__header,
.rodina-cart-page__content {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}

.rodina-cart-page__header {
  margin-bottom: 48px;
}

.rodina-cart-page__title {
  margin: 0;
  font-family: "Creepster", "DotGothic16", cursive;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: 1;
}

/* Cart block */

.rodina-cart-credit {
  margin: 0 0 42px;
  padding: clamp(20px, 4vw, 34px);
  color: #fff;
  background: #080808;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #53ffd8, 14px 14px 0 #ff5be7;
  font-family: "DotGothic16", monospace;
}

.rodina-cart-purchase-credit {
  margin: 0 0 32px;
  padding: clamp(18px, 4vw, 30px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: center;
  color: #fff;
  background: #080808;
  border: 3px solid #fff;
  box-shadow: 6px 6px 0 #ffe66d, 11px 11px 0 #ff5be7;
  font-family: "DotGothic16", monospace;
}
.rodina-cart-purchase-credit strong { color: #53ffd8; font-size: clamp(18px, 4vw, 30px); font-weight: 400; }
.rodina-cart-purchase-credit span { color: #ffe66d; font-size: clamp(22px, 5vw, 40px); white-space: nowrap; }
.rodina-cart-purchase-credit p { grid-column: 1 / -1; margin: 5px 0 0; color: #fff; font-size: 13px; line-height: 1.8; }

.rodina-cart-credit__intro { display: grid; grid-template-columns: 1fr auto; gap: 7px 20px; align-items: end; }
.rodina-cart-credit__intro p { grid-column: 1 / -1; margin: 0; color: #53ffd8; font-size: 12px; letter-spacing: 0.12em; }
.rodina-cart-credit__intro h2 { margin: 0; color: #fff; font-family: "DotGothic16", monospace; font-size: clamp(30px, 6vw, 58px); font-weight: 400; line-height: 1; }
.rodina-cart-credit__intro > span { color: #ffe66d; font-size: 14px; }
.rodina-cart-credit dl { margin: 27px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid #fff; }
.rodina-cart-credit dl > div { min-width: 0; padding: 12px; border-left: 2px solid #fff; }
.rodina-cart-credit dl > div:first-child { border-left: 0; }
.rodina-cart-credit dt { color: #aaa; font-size: 11px; }
.rodina-cart-credit dd { margin: 5px 0 0; color: #53ffd8; font-size: clamp(15px, 3vw, 23px); overflow-wrap: anywhere; }
.rodina-cart-credit form { margin-top: 20px; display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(180px, auto); gap: 12px; align-items: center; }

.rodina-cart-credit input,
.rodina-cart-credit button { min-height: 52px; box-sizing: border-box; padding: 9px 14px; color: #fff; background: #000; border: 3px solid #fff; border-radius: 0; box-shadow: 4px 4px 0 #ff5be7; font-family: "DotGothic16", monospace; font-size: 16px; }
.rodina-cart-credit button { color: #000; background: #53ffd8; cursor: pointer; }
.rodina-cart-credit button:hover,
.rodina-cart-credit button:focus-visible { background: #ffe66d; outline: none; transform: translate(-2px, -2px); }
.rodina-cart-credit__note { margin: 18px 0 0; color: #aaa; font-size: 12px; }
.rodina-cart-credit-login { margin: 0 0 36px; padding: 18px; background: #080808; border: 3px solid #fff; box-shadow: 6px 6px 0 #53ffd8; text-align: center; }
.rodina-cart-credit-login a { color: #fff; font-family: "DotGothic16", monospace; }

.rodina-cart-page .wc-block-cart {
  margin: 0;
}

.rodina-cart-page .wc-block-components-main,
.rodina-cart-page .wc-block-components-sidebar {
  box-sizing: border-box;
  background: #0b0b0b;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 7px 7px 0 #ff5be7;
}

.rodina-cart-page .wc-block-components-main {
  padding: 12px 28px 28px !important;
}

.rodina-cart-page .wc-block-components-sidebar {
  padding: 28px !important;
  overflow: visible !important;
}

.rodina-cart-page .wc-block-cart-items {
  color: #fff;
  border-collapse: collapse;
}

.rodina-cart-page .wc-block-cart-items th,
.rodina-cart-page .wc-block-cart-items td {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.rodina-cart-page .wc-block-cart-item__image img {
  border-radius: 0;
}

.rodina-cart-page .wc-block-components-product-name,
.rodina-cart-page .wc-block-cart-item__product a {
  color: #fff;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
}

.rodina-cart-page .wc-block-components-product-price,
.rodina-cart-page .wc-block-components-totals-item__value,
.rodina-cart-page .wc-block-formatted-money-amount {
  color: #fff;
}

.rodina-cart-page .wc-block-components-quantity-selector {
  width: 132px !important;
  height: 46px;
  box-sizing: border-box;
  overflow: visible !important;
  background: #000 !important;
  border: 3px solid #fff !important;
  border-radius: 0 !important;
  box-shadow:
    4px 4px 0 #ff5be7,
    7px 7px 0 #111;
}

.rodina-cart-page .wc-block-components-quantity-selector::after {
  content: none !important;
}

.rodina-cart-page .wc-block-components-quantity-selector input,
.rodina-cart-page .wc-block-components-quantity-selector button {
  min-height: 40px !important;
  box-sizing: border-box;
  background: #000 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-radius: 0 !important;
  font-family: "DotGothic16", monospace !important;
  opacity: 1 !important;
}

.rodina-cart-page .wc-block-components-quantity-selector input[type="number"] {
  min-width: 48px !important;
  padding: 0 4px !important;
  color-scheme: dark;
  border-inline: 2px solid rgba(255, 255, 255, 0.4) !important;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 40px !important;
  text-align: center;
  outline: none !important;
  box-shadow: none !important;
}

.rodina-cart-page
  .wc-block-components-quantity-selector
  input[type="number"]:focus {
  border-inline-color: #ff5be7 !important;
  background: #111 !important;
}

.rodina-cart-page
  .wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__button {
  width: 39px !important;
  min-width: 39px !important;
  padding: 0 !important;
  font-size: 20px !important;
  transition:
    color 0.1s steps(2, end),
    background-color 0.1s steps(2, end),
    transform 0.1s steps(2, end);
}

.rodina-cart-page
  .wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__button:hover,
.rodina-cart-page
  .wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__button:focus-visible {
  background: #fff !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  outline: none;
}

.rodina-cart-page
  .wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__button:active {
  transform: translate(1px, 1px);
}

.rodina-cart-page .wc-block-components-quantity-selector button svg {
  fill: #fff !important;
  color: #fff !important;
}

.rodina-cart-page
  .wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__button:hover
  svg,
.rodina-cart-page
  .wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__button:focus-visible
  svg {
  fill: #000 !important;
  color: #000 !important;
}

.rodina-cart-page .quantity .qty {
  width: 72px;
  min-height: 46px;
  box-sizing: border-box;
  padding: 6px 10px;
  background: #000 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 3px solid #fff !important;
  border-radius: 0 !important;
  box-shadow:
    4px 4px 0 #ff5be7,
    7px 7px 0 #111;
  font-family: "DotGothic16", monospace;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  opacity: 1 !important;
}

.rodina-cart-page .wc-block-cart-item__remove-link {
  position: relative;
  z-index: 30;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 12px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.62) !important;
  background: #000 !important;
  border: 2px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: 0 !important;
  font-family: "DotGothic16", monospace !important;
  line-height: 1 !important;
  text-underline-offset: 4px;
  pointer-events: auto !important;
  touch-action: manipulation;
}

.rodina-cart-page .wc-block-cart-item__remove-link:hover,
.rodina-cart-page .wc-block-cart-item__remove-link:focus-visible {
  color: #fff !important;
  border-color: #fff !important;
  outline: none;
}

.rodina-cart-page .wc-block-components-totals-wrapper {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.rodina-cart-page .wc-block-components-totals-item,
.rodina-cart-page .wc-block-components-panel__button {
  color: #fff !important;
}

.rodina-cart-page .wc-block-cart__submit-button {
  position: relative;
  z-index: 10;
  min-height: 52px;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000 !important;
  color: #fff !important;
  border: 3px solid #fff !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 #53ffd8;
  font-family: "DotGothic16", monospace;
  font-weight: 600;
  line-height: 1 !important;
  text-align: center;
  transform-origin: center;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.rodina-cart-page .wc-block-cart__submit-button:hover:not(.is-checkout-expanding) {
  background: #151515 !important;
  border-color: #fff !important;
  transform: scale(1.04) !important;
}

.rodina-cart-page .wc-block-cart__submit-button:active:not(.is-checkout-expanding) {
  transform: scale(0.98) !important;
}

.rodina-cart-page .wc-block-cart__submit-button.is-checkout-expanding {
  z-index: 99999 !important;
  animation: rodina-checkout-pulse 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rodina-cart-page .wc-block-cart__submit-button > span,
.rodina-cart-page .wc-block-cart__submit-button .wc-block-components-button__text {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.rodina-cart-page .wc-block-cart__submit,
.rodina-cart-page .wc-block-cart__submit-container {
  overflow: visible !important;
}

.rodina-cart-page .wc-block-cart__empty-cart__title {
  margin-inline: auto;
  text-align: center;
}

/* Classic cart shortcode */

.rodina-cart-page .woocommerce-cart-form,
.rodina-cart-page .cart_totals {
  padding: 28px;
  background: #0b0b0b;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 7px 7px 0 #ff5be7;
}

.rodina-cart-page .shop_table {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.rodina-cart-page .shop_table th,
.rodina-cart-page .shop_table td {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.rodina-cart-page .shop_table .product-thumbnail img {
  border-radius: 0;
}

.rodina-cart-page .checkout-button,
.rodina-cart-page button.button {
  background: #000 !important;
  color: #fff !important;
  border: 3px solid #fff !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 #53ffd8;
  font-family: "DotGothic16", monospace !important;
}

.rodina-cart-page .checkout-button {
  position: relative;
  z-index: 10;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center;
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.rodina-cart-page .checkout-button:hover:not(.is-checkout-expanding) {
  transform: scale(1.04) !important;
}

.rodina-cart-page .checkout-button:active:not(.is-checkout-expanding) {
  transform: scale(0.98) !important;
}

.rodina-cart-page .checkout-button.is-checkout-expanding {
  z-index: 99999 !important;
  animation: rodina-checkout-pulse 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (max-width: 768px) {
  .rodina-cart-purchase-credit { grid-template-columns: 1fr; padding: 18px 12px; }
  .rodina-cart-purchase-credit span { white-space: normal; }
  .rodina-cart-purchase-credit p { grid-column: 1; font-size: 12px; }
  .rodina-cart-credit__intro { grid-template-columns: 1fr; }
  .rodina-cart-credit__intro > span { margin-top: 5px; }
  .rodina-cart-credit dl { grid-template-columns: 1fr; }
  .rodina-cart-credit dl > div { border-left: 0; border-top: 2px solid #fff; }
  .rodina-cart-credit dl > div:first-child { border-top: 0; }
  .rodina-cart-credit form { grid-template-columns: 1fr; }
  .rodina-cart-credit input,
  .rodina-cart-credit button { width: 100%; }
  .rodina-cart-page {
    padding: 32px 0 80px;
  }

  .rodina-cart-page__header,
  .rodina-cart-page__content {
    width: calc(100% - 32px);
  }

  .rodina-cart-page__header {
    margin-bottom: 28px;
  }

  .rodina-cart-page .wc-block-components-main,
  .rodina-cart-page .wc-block-components-sidebar {
    padding: 18px !important;
    border-radius: 0;
  }

  .rodina-cart-page .wc-block-cart-item__image {
    padding-right: 12px !important;
  }

  .rodina-cart-page .wc-block-cart-items__row {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    overflow: visible !important;
    grid-template-columns: minmax(64px, 28%) minmax(0, 1fr) !important;
  }

  .rodina-cart-page .wc-block-cart-item__product {
    position: relative;
    z-index: 5;
    overflow: visible !important;
  }

  .rodina-cart-page .wc-block-cart-item__remove-link {
    z-index: 50 !important;
    width: fit-content;
    margin: 10px 0 2px !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: 3px 3px 0 #ff5be7;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .rodina-cart-page .shop_table .product-remove {
    position: relative;
    z-index: 50;
  }

  .rodina-cart-page .shop_table .product-remove a.remove {
    position: relative;
    z-index: 50;
    min-width: 44px;
    min-height: 44px;
    display: inline-grid !important;
    place-items: center;
    color: #fff !important;
    background: #000 !important;
    border: 2px solid #fff !important;
    border-radius: 0 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  .rodina-cart-page .wc-block-cart-items__row > td {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .rodina-cart-page
    :where(
      .wc-block-cart-item__product,
      .wc-block-cart-item__prices,
      .wc-block-cart-item__total,
      .wc-block-components-product-price,
      .wc-block-components-totals-item__value
    ) {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .rodina-cart-page
    :where(
      .wc-block-components-product-price,
      .wc-block-cart-item__total-price-and-sale-badge-wrapper,
      .wc-block-cart-item__total .wc-block-formatted-money-amount,
      .wc-block-components-totals-item__value,
      .wc-block-formatted-money-amount
    ) {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(11px, 3.4vw, 15px) !important;
    line-height: 1.35 !important;
  }

  .rodina-cart-page .wc-block-components-totals-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(82px, auto);
    gap: 10px;
    align-items: start;
  }

  .rodina-cart-page .wc-block-components-totals-item__value {
    justify-self: end;
    text-align: right;
  }

  .rodina-cart-page
    :where(.product-price, .product-subtotal, .cart-subtotal td, .order-total td) {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: clamp(11px, 3.4vw, 15px) !important;
  }

  .rodina-cart-page .wc-block-components-quantity-selector {
    width: 116px !important;
    height: 42px;
    box-shadow:
      3px 3px 0 #ff5be7,
      5px 5px 0 #111;
  }

  .rodina-cart-page .wc-block-components-quantity-selector input,
  .rodina-cart-page .wc-block-components-quantity-selector button {
    min-height: 36px !important;
  }

  .rodina-cart-page
    .wc-block-components-quantity-selector
    .wc-block-components-quantity-selector__button {
    width: 33px !important;
    min-width: 33px !important;
  }

  .rodina-cart-page
    .wc-block-components-quantity-selector
    input[type="number"] {
    min-width: 44px !important;
    font-size: 16px !important;
    line-height: 36px !important;
  }

  .rodina-cart-page .woocommerce-cart-form,
  .rodina-cart-page .cart_totals {
    padding: 18px;
  }
}
