/* === Cart Block === */

.wc-block-components-button:not(.is-link) {
  background-color: var(--digi-primary-color);
  color: #ffffff;
}

.wc-block-components-product-details.wc-block-components-product-details {
  display: flex;
  gap: 20px;
}

table.wc-block-cart-items
  .wc-block-cart-items__row
  .wc-block-cart-item__quantity
  .wc-block-cart-item__remove-link:hover,
.wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__button:hover {
  box-shadow: none !important;
}

.wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__button:hover {
  color: #ffffff;
}

.wp-block-button.wc-block-components-product-button
  .wp-block-button__link:hover {
  color: #ffffff;
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.2);
}

.wp-block-woocommerce-cart
  .wp-block-woocommerce-cart-cross-sells-block
  .cross-sells-product
  .wc-block-components-product-button__button {
  background-color: var(--digi-primary-color);
  border-radius: 3px;
}

.wp-block-woocommerce-empty-cart-block .wp-block-heading {
  margin-bottom: 20px;
}

.wp-block-woocommerce-empty-cart-block
  .wc-block-grid__products
  .wp-block-button__link {
  background-color: var(--digi-primary-color);
  color: #ffffff;
  border-radius: 3px;
  font-size: var(--font-size-normal) !important;
  font-weight: 700;
}

.wp-block-woocommerce-empty-cart-block
  .wc-block-grid
  .wc-block-grid__product-onsale {
  min-height: inherit;
  background-color: #c92a2a;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1rem;
  padding: 5px 10px;
  border: none;
  border-radius: 20px;
}

.wp-block-woocommerce-checkout-order-summary-block
  .wc-block-components-checkout-order-summary__title
  .wc-block-components-checkout-order-summary__title-text {
  font-size: 20px;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  font-size: var(--font-size-h5);
  font-weight: normal;
}

.wp-block-woocommerce-empty-cart-block
  .wc-block-grid__product
  .wc-block-grid__product-price {
  font-size: var(--font-size-normal);
  font-weight: bold;
  color: #000000;
}

.wp-block-woocommerce-cart
  .wp-block-woocommerce-cart-cross-sells-block
  .cross-sells-product {
  margin-right: 3%;
  padding-right: 0 !important;
  padding-bottom: 20px;
}

.editor-styles-wrapper
  table.wc-block-cart-items
  .wc-block-cart-items__header
  th,
table.wc-block-cart-items .wc-block-cart-items__header th,
.wc-block-cart .wc-block-cart__totals-title {
  font-size: var(--font-size-h6) !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item
  .wc-block-components-totals-item__value {
  font-size: var(--font-size-normal);
}

.wc-block-cart table.wc-block-cart-items tbody > tr:first-child td {
  border-top: 5px solid #ececec !important;
}

.wc-block-cart .wc-block-cart__totals-title {
  border-bottom: 5px solid #ececec !important;
}

.wc-block-cart__main .wc-block-cart-items td {
  border-top: 1px solid #ececec !important;
}

.wc-block-components-totals-discount__coupon-list .wc-block-components-chip {
  padding-right: 5px;
}

.wc-block-components-totals-discount__coupon-list
  .wc-block-components-chip
  .wc-block-components-chip__remove-icon {
  width: auto;
  height: auto;
}
.wc-block-components-totals-discount__coupon-list
  .wc-block-components-chip
  .wc-block-components-chip__text {
  font-size: var(--font-size-normal);
}

.wc-block-components-totals-discount__coupon-list
  .wc-block-components-chip.wc-block-components-chip--radius-large {
  padding-right: 0.75em;
}

.wc-block-components-totals-discount__coupon-list .wc-block-components-chip {
  line-height: 29px;
}

body:not(.woocommerce-block-theme-has-button-styles)
  .wc-block-components-button:not(.is-link) {
  border: 0;
  border-radius: 3px;
  font-size: var(--font-size-normal);
}

.wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image {
  padding-left: 0;
}

.wp-block-woocommerce-cart
  .wp-block-woocommerce-cart-cross-sells-block
  .wp-block-heading {
  font-size: var(--font-size-h4) !important;
}

.wp-block-woocommerce-cart .wp-block-button__link {
  padding: 10px 14px;
  line-height: 1.35em !important;
}

.wp-block-woocommerce-checkout .wc-block-checkout__login-prompt {
  font-size: var(--font-size-normal);
  background: var(--digi-primary-color);
  padding: 10px 14px;
  border-radius: 3px;
  line-height: 1.35em;
  color: #ffffff;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item {
  border-bottom: 1px solid #ececec;
}

#content
  div.wc-block-components-main.wc-block-cart__main.wp-block-woocommerce-cart-items-block
  table
  tbody
  tr
  td {
  margin: 0 !important;
}

.is-medium table.wc-block-cart-items .wc-block-cart-items__row {
  padding: 0 !important;
}

.is-mobile
  table.wc-block-cart-items:not(.wc-block-mini-cart-items):not(:last-child)
  .wc-block-cart-items__row {
  border-bottom: 1px solid #ececec !important;
}

/* Form input style */
.wc-block-components-form .wc-block-components-text-input input[type="email"],
.wc-block-components-form .wc-block-components-text-input input[type="number"],
.wc-block-components-form
  .wc-block-components-text-input
  input[type="password"],
.wc-block-components-form .wc-block-components-text-input input[type="tel"],
.wc-block-components-form .wc-block-components-text-input input[type="text"],
.wc-block-components-form .wc-block-components-text-input input[type="url"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-text-input input[type="password"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="url"],
.wc-block-checkout__add-note .wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__select {
  border-radius: 3px !important;
  border: 1px solid #ddd !important;
  padding: 11px 14px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.wc-block-components-form
  .wc-block-components-text-input
  input:-webkit-autofill,
.wc-block-components-form
  .wc-block-components-text-input.is-active
  input[type="email"],
.wc-block-components-form
  .wc-block-components-text-input.is-active
  input[type="number"],
.wc-block-components-form
  .wc-block-components-text-input.is-active
  input[type="password"],
.wc-block-components-form
  .wc-block-components-text-input.is-active
  input[type="tel"],
.wc-block-components-form
  .wc-block-components-text-input.is-active
  input[type="text"],
.wc-block-components-form
  .wc-block-components-text-input.is-active
  input[type="url"],
.wc-block-components-text-input input:-webkit-autofill,
.wc-block-components-text-input.is-active input[type="email"],
.wc-block-components-text-input.is-active input[type="number"],
.wc-block-components-text-input.is-active input[type="password"],
.wc-block-components-text-input.is-active input[type="tel"],
.wc-block-components-text-input.is-active input[type="text"],
.wc-block-components-text-input.is-active input[type="url"] {
  padding: 1.5em 0.5em 0.5em !important;
  background-color: #fff !important;
  box-shadow: 0 0 5px #ccc !important;
  color: var(--digi-text-color) !important;
  opacity: 1 !important;
  outline: none !important;
  border: 1px solid transparent !important;
}

.wc-block-checkout__add-note .wc-block-components-textarea:focus {
  background-color: #fff !important;
  box-shadow: 0 0 5px #ccc !important;
  color: var(--digi-text-color) !important;
  opacity: 1 !important ;
  outline: none !important;
  border: 1px solid transparent !important;
}

.wc-blocks-components-select .wc-blocks-components-select__select {
  padding: 1em 0.5em 0 !important;
}

.wc-block-components-radio-control--highlight-checked
  .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked
  label.wc-block-components-radio-control__option--checked-option-highlighted {
  border: 1px solid hsla(0, 0%, 7%, 0.11);
  box-shadow: none !important;
}

.wp-block-separator {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media all and (max-width: 768px) {
  .wc-block-components-product-details.wc-block-components-product-details {
    display: block;
  }

  .wc-block-cart__main .wc-block-cart-items td {
    border-top: none !important;
  }

  .is-mobile
    table.wc-block-cart-items
    .wc-block-cart-items__row:first-child
    td {
    padding-top: 16px;
  }
}
