/* Design tokens (--uni-*) live in the theme's style.css */

.wc-block-cart__submit-button {
  background: var(--uni-teal);
}

.woocommerce-cart-form__cart-item dl.variation,
.woocommerce-checkout-review-order-table dl.variation,
.wp-block-woocommerce-mini-cart-contents .wc-block-components-product-metadata > .wc-block-components-product-details {
  display: none !important;
}

.wc-block-components-product-details.wc-block-components-product-details {
  display: flex;
  flex-direction: column;
}

/* Shared red "danger" look: cart remove icon, out-of-stock notice, product-form field errors */
.wc-block-cart-item__remove-link svg,
.add-to-cart-wrapper .out-of-stock,
.uni-product-form-field__error-message {
  border-radius: var(--uni-radius);
  background: var(--uni-red-light);
}

.add-to-cart-wrapper .out-of-stock,
.uni-product-form-field__error-message {
  color: var(--uni-red);
  font-size: 0.875rem;
  padding: 0.825rem;
  border: 1px solid var(--uni-red);
}

.wc-block-cart-item__remove-link svg {
  margin-top: 2px;
  padding: 6px;
  fill: var(--uni-red) !important;
}

.wc-block-cart-item__remove-link svg:hover {
  fill: var(--uni-red-dark) !important;
}

.wc-block-cart__submit-container .wc-block-components-button:not(.is-link) {
  transition: all 0.2s ease-in;
}

.wc-block-cart__submit-container .wc-block-components-button:not(.is-link):hover {
  background: var(--uni-blue);
}

/* "Edit data" link injected by product-forms/assets/js/cart-edit.js */
.uni-cart-item-edit-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--uni-red-dark);
  text-decoration: underline;
  white-space: nowrap;
}

.uni-cart-item-edit-link:hover {
  text-decoration: none;
}

.wc-block-cart-item__quantity .uni-cart-item-edit-link {
  margin-left: 0.75rem;
}

.wc-block-components-order-summary-item__description .uni-cart-item-edit-link {
  display: block;
}

.view-basket-btn,
.go-to-checkout-btn,
.button.wp-element-button,
.woocommerce-checkout button.wc-block-components-button:not(.is-link) {
  transition: var(--uni-transition) !important;
}

.button.wp-element-button,
.woocommerce-checkout button.wc-block-components-button:not(.is-link) {
  background-color: var(--uni-blue);
}

.add-to-cart-wrapper .out-of-stock {
  font-family: var(--wp--preset--font-family--raleway);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.75px;
}

.wc-block-mini-cart__footer .view-basket-btn:hover,
.wc-block-mini-cart__footer .button.wp-element-button:hover,
.woocommerce-checkout button.wc-block-components-button:not(.is-link):hover {
  color: white !important;
  background: var(--uni-teal) !important;
}

.go-to-checkout-btn:hover {
  background: var(--uni-blue-dark) !important;
}

.checkout .select2-selection {
  height: unset;
}

.checkout .select2-selection__rendered {
  padding: 1rem 1.1rem !important;
}

.checkout .select2-selection__arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.woocommerce-checkout-payment label {
  cursor: pointer;
}

.button.single_add_to_cart_button {
  background: var(--uni-teal);
}

.button.single_add_to_cart_button:hover {
  background: white !important;
  color: var(--uni-blue) !important;
}
