/* RPECK 09/10/2023 - Trade Add To Cart */
.trade_add_to_cart_container { position: relative; }
.trade_add_to_cart_container .row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding-top: 10px;
	padding-bottom: 10px;
	column-gap: 5px;
	border-top: 1px solid var(--global-palette6);
}
.trade_add_to_cart_container .term_container {
	display: flex;
	flex-direction: column;
	position: relative;
	min-width: 0;
}
.trade_add_to_cart_container .term_container > strong {
	line-height: 1;
}
.trade_add_to_cart_container .term_container > .term_name {
    text-transform: uppercase;
    font-size: 12px;
    
}
.trade_add_to_cart_container .term_container > .term_description { font-size: 12px; }
.trade_add_to_cart_container .term_container > .term_description p { margin-top: 0; margin-bottom: 0; }

.trade_add_to_cart_container .out_of_stock,
.trade_add_to_cart_container .price_container {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	font-size: 12px;
	line-height: 1;
	min-width: 0;
	color: var(--global-palette2);
	flex: 1;
	text-align: right;
}
/*AL 25/01  request to change colour of out of stock text */
.trade_add_to_cart_container .out_of_stock{	color: #cf3033;}
.trade_add_to_cart_container .quantity_container {
	border: 1px solid var(--global-palette6);
	display: flex;
	flex-direction: row; 
	justify-content: space-between;
	flex-wrap: nowrap;
	align-items: center;
	background-color: white;
}
.trade_add_to_cart_container .quantity_container:not(.in-stock, .available-on-backorder) {
	opacity: 0.35;
}
.trade_add_to_cart_container .quantity_container:not(.in-stock, .available-on-backorder) input {
	text-decoration: line-through;
}
.trade_add_to_cart_container .quantity_container:not(.in-stock, .available-on-backorder) .quantity_change {
	cursor: default;
}
.trade_add_to_cart_container .quantity_container .quantity_change { 
	padding: 0 5px;
	cursor: pointer; 
	user-select: none;
	color: var(--global-palette5);
}

@media screen and (max-width: 768px) {
	.trade_add_to_cart_container .quantity_container .quantity_change {
		padding-left: 10px; padding-right: 10px;
	}
}
/* Chrome, Safari, Edge, Opera */
.trade_add_to_cart_container input::-webkit-outer-spin-button,
.trade_add_to_cart_container input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.trade_add_to_cart_container input[type=number] {
  -moz-appearance: textfield;
}
.trade_add_to_cart_container input[type="number"] {
	border: 0;
	background: transparent;
	appearance: none;
	font-size: 14px;
	text-align: center;
	width: 25px;
	padding-left: 0;
	padding-right: 0;
}
.trade_add_to_cart_container button {
	width: 100%;
	border-radius: 0;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	user-select: none;
	display: block;
    text-transform: uppercase;
    font-size: 12px;
    min-height: 45px;
    letter-spacing: 1px;
}
.trade_add_to_cart_container button[data-subtotal]:after {
	content: "(" attr(data-currency) attr(data-subtotal)")";
	display: inline-block;
	font-size: 1em;
	margin-left: 5px;
}

/* RPECK 17/10/2023 - Loading */
.trade_add_to_cart_container .loading {
	position: relative;
	color: transparent;
}
.trade_add_to_cart_container .loading:before {
  position: absolute;
  content: '';
  left: calc(50% - 15px);
  top: calc(50% - 15px);
  display: block;
  width: 30px;
  height: 30px;
  border: 3px solid transparent;
  border-radius: 50%;
  border-right-color: rgba(255,255,255, 0.7);
  animation: spinner-anim 0.8s linear infinite;
}

@keyframes spinner-anim {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

/* RPECK 17/10/2023 - Error styling for trade add to cart */
.trade_add_to_cart_container[data-error-message]:after {
	content: attr(data-error-message);
	background: red;
	color: white;
	display: block;
	font-size: 14px;
	text-align: center; 
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	width: 100%;
	padding-left: 5px; 
	padding-right: 5px;
}