/* =========================================================
   CHECKOUT STEPS
========================================================= */

.snailmed-cart-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0 0 50px;
}

.snailmed-cart-step {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.snailmed-cart-step__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid #d8d8d8;
	border-radius: 50%;
	font-size: 14px;
	line-height: 1;
}

.snailmed-cart-step__label {
	font-size: 15px;
	white-space: nowrap;
}

.snailmed-cart-step--active .snailmed-cart-step__number {
	border-color: currentColor;
	font-weight: 600;
}

.snailmed-cart-step--active .snailmed-cart-step__label {
	font-weight: 600;
}

.snailmed-cart-step__line {
	width: 90px;
	height: 1px;
	margin: 0 20px;
	background: #dedede;
}

/* =========================================================
   HEADER
========================================================= */

.snailmed-cart__header {
	margin-bottom: 30px;
}

.snailmed-cart__header h1 {
	margin-bottom: 10px!important;
	line-height: 1;
}

.snailmed-cart__header p {
	margin: 0;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */

.snailmed-cart__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 30px;
	align-items: start;
}

.snailmed-cart__main {
	min-width: 0;
}

/* =========================================================
   SECTION HEADINGS
========================================================= */

.snailmed-cart__section-title {
	margin-bottom: 0;
	border-bottom: 1px solid #e5e5e5;
	padding-bottom: 10px;
}

/* =========================================================
   PRODUCTS
========================================================= */

.snailmed-cart__products {
	margin-bottom: 30px;
	border: 1px solid #e5e5e5;
	padding: 15px;
	border-radius: 15px;
}

.snailmed-cart-item {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 24px;
	padding: 15px 0;
	border-bottom: 1px solid #e5e5e5;
}
.snailmed-cart-item:last-child {
	border-bottom: 0;
}

/* =========================================================
   PRODUCT IMAGE
========================================================= */

.snailmed-cart-item__image {
	width: 120px;
	height: 120px;
	overflow: hidden;
}

.snailmed-cart-item__image a {
	display: block;
	width: 100%;
	height: 100%;
}

.snailmed-cart-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =========================================================
   PRODUCT CONTENT
========================================================= */

.snailmed-cart-item__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100px;
}

/* =========================================================
   PRODUCT TOP
========================================================= */

.snailmed-cart-item__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 30px;
	width: 100%;
}

/* =========================================================
   PRODUCT NAME
========================================================= */

.snailmed-cart-item__name {
	min-width: 0;
	padding-top: 3px;
}

.snailmed-cart-item__name a {
	text-decoration: none;
	font-weight: 400;
}

.snailmed-cart-item__name a:hover {
	text-decoration: none;
}

/* =========================================================
   RIGHT CONTROLS
========================================================= */

.snailmed-cart-item__controls {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 15px;
	flex: 0 0 auto;
	width: 140px;
}

/* =========================================================
   REMOVE / TRASH
========================================================= */

.snailmed-cart-item__remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	margin: 0;
	text-decoration: none;
	line-height: 1;
	margin-left: auto;
}

.snailmed-cart-item__remove img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
	filter: invert(24%) sepia(91%) saturate(1745%)
		hue-rotate(345deg) brightness(88%) contrast(91%);
}

/* =========================================================
   QUANTITY
========================================================= */

.snailmed-cart-item__quantity {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
}

.snailmed-quantity {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 120px;
	height: 30px;
}

.snailmed-quantity__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 1px solid #c8d4e4;
	background: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.snailmed-quantity__button--minus {
	border-radius: 4px 0 0 4px;
}

.snailmed-quantity__button--plus {
	border-radius: 0 4px 4px 0;
}

.snailmed-quantity .quantity {
	width: 60px;
	height: 30px;
	margin: 0;
	padding: 0;
}

.snailmed-cart-item__quantity input.qty {
	display: block;
	width: 60px;
	height: 30px;
	margin: 0;
	padding: 0 4px;
	border: 1px solid #c8d4e4;
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	background: #fff;
	text-align: center;
	font-size: 16px;
	line-height: 1;
	box-shadow: none;
	-moz-appearance: textfield;
}

.woocommerce .quantity input.qty {
	height: 30px;
}

.snailmed-cart-item__quantity input.qty::-webkit-inner-spin-button,
.snailmed-cart-item__quantity input.qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.snailmed-cart-item__quantity input.qty:focus {
	outline: none;
	border-color: #c8d4e4;
}

/* =========================================================
   UNIT PRICE + SUBTOTAL
========================================================= */

.snailmed-cart-item__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: auto;
	padding-top: 20px;
}

.snailmed-cart-item__multiply {
	white-space: nowrap;
}

.snailmed-cart-item__subtotal {
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

/* =========================================================
   SHIPPING
========================================================= */

.snailmed-cart__shipping {
	margin-bottom: 35px;
	border: 1px solid #e5e5e5;
	padding: 15px;
	border-radius: 15px;
}

.snailmed-cart__shipping h3 {
	margin: 0;
	padding-bottom: 15px;
	border-bottom: 1px solid #e5e5e5;
}

.snailmed-cart__shipping-methods {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 15px;
}

.snailmed-shipping-method {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	box-sizing: border-box;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease;
}

.snailmed-shipping-method:hover {
	border-color: #bdbdbd;
}

.snailmed-shipping-method--chosen {
	border-color: #bdbdbd;
	background: #f4f4f4;
}

.snailmed-shipping-method input {
	margin: 0;
	flex: 0 0 auto;
}

.snailmed-shipping-method__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 38px;
}

.snailmed-shipping-method__icon img {
	display: block;
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.snailmed-shipping-method__content {
	flex: 1 1 auto;
	min-width: 0;
}

.snailmed-shipping-method__name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}

.snailmed-shipping-method__description {
	display: block;
	margin-top: 2px;
	color: #7b8794;
	font-size: 12px;
	line-height: 1.35;
}

.snailmed-shipping-method__price {
	flex: 0 0 auto;
	margin-left: auto;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: right;
	white-space: nowrap;
}

.snailmed-cart__coupon-accordion {
	width: 100%;
	margin-top: 6px;
}

.snailmed-cart__coupon-accordion summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 10px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	list-style: none;
	box-sizing: border-box;
}

.snailmed-cart__coupon-accordion summary::-webkit-details-marker {
	display: none;
}

.snailmed-cart__coupon-title {
	flex: 1 1 auto;
	font-weight: 600;
}

.snailmed-cart__coupon-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	margin-left: auto;
}

.snailmed-cart__coupon-icon img {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
	transition: transform 0.2s ease;
}

.snailmed-cart__coupon-accordion[open]
.snailmed-cart__coupon-icon img {
	transform: rotate(180deg);
}

.snailmed-cart__coupon-content {
	padding: 10px 10px 3px;
}

.snailmed-cart__coupon-form {
	display: flex;
	gap: 10px;
	width: 100%;
	max-width: none;
}

.snailmed-cart__coupon-form input {
	flex: 1 1 auto;
	min-width: 0;
	height: 35px;
	margin: 0;
}

.snailmed-cart__coupon-form button {
	flex: 0 0 auto;
	height: 35px;
	margin: 0;
	padding-left: 24px;
	padding-right: 24px;
	border-color: #e5e5e5;
}

/* =========================================================
   PAYMENT INFO
========================================================= */

.snailmed-cart .payment-info {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	margin-top: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f5f5f5;
	color: #68717c;
	font-size: 12px;
	line-height: 1.45;
	box-sizing: border-box;
}

.snailmed-cart .payment-info__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 32px;
}

.snailmed-cart .payment-info__icon img {
	display: block;
	width: 29px;
	height: 29px;
	object-fit: contain;
}

.snailmed-cart .payment-info__text {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	font-weight: 500;
}

.snailmed-cart .payment-info__title,
.snailmed-cart .payment-info__description {
	display: block !important;
	width: 100%;
	margin: 0;
	padding: 0;
	float: none;
	clear: both;
}

.snailmed-cart .payment-info__title {
	color: #4f5965;
	font-weight: 600;
}

.snailmed-cart .payment-info__description {
	margin-top: 2px;
	color: #7b8794;
	font-weight: 400;
}

/* =========================================================
   WOOCOMMERCE ACTIONS
========================================================= */

.snailmed-cart__actions {
	display: none;
}

/* =========================================================
   CONTINUE SHOPPING
========================================================= */

.snailmed-cart__continue {
	margin-top: 10px;
	margin-left: 4px;
}

.snailmed-cart__continue a {
	text-decoration: none;
}

.snailmed-cart__continue a:hover {
	text-decoration: underline;
}

/* =========================================================
   SUMMARY
========================================================= */

.snailmed-cart__summary {
	position: sticky;
	top: 30px;
}

.snailmed-cart-summary {
	padding: 15px;
	border: 1px solid #e3e3e3;
	border-radius: 15px;
}

.snailmed-cart-summary__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 3px 0;
}

.snailmed-cart-summary__row strong {
	white-space: nowrap;
	font-size: 16px;
}

.snailmed-cart-summary__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 18px;
	padding-top: 15px;
	border-top: 1px solid #e3e3e3;
	font-size: 18px;
}

.snailmed-cart-summary__total strong {
	font-size: 20px;
	white-space: nowrap;
}

.snailmed-cart-summary__checkout {
	margin-top: 20px;
}

.snailmed-cart-summary__checkout .button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	text-decoration: none;
}
.snailmed-cart-summary__checkout .button img {
	width: 17px;
	height: 17px;
	margin-left: 10px;
	margin-top: -2px;
}
.snailmed-cart-summary__checkout .button:hover img {
	filter: brightness(0) invert(1);
}

.snailmed-cart-summary__secure-payment {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 12px;
	color: #7b8794;
	font-size: 11px;
	line-height: 1.3;
	text-align: center;
}

.snailmed-cart-summary__secure-payment img {
	display: block;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	object-fit: contain;
}

/* =========================================================
   CROSS SELLS
========================================================= */

.snailmed-cart__cross-sells {
	margin-top: 40px;
}

.snailmed-cart__cross-sells-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

/* =========================================================
   CROSS SELL CARD
========================================================= */

.snailmed-cross-sell {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fff;
	box-sizing: border-box;
}

/* =========================================================
   IMAGE
========================================================= */

.snailmed-cross-sell__image {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 90px;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 6px;
	background: #f5f5f5;
	text-decoration: none;
}

.snailmed-cross-sell__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =========================================================
   CONTENT
========================================================= */

.snailmed-cross-sell__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1 1 auto;
	min-width: 0;
	height: 100px;
}

/* =========================================================
   PRODUCT NAME
========================================================= */

.snailmed-cross-sell__name {
	display: block;
	min-width: 0;
	font-size: 14px;
	text-decoration: none;
}

.snailmed-cross-sell__name:hover {
	text-decoration: none;
}

/* =========================================================
   BOTTOM ROW
========================================================= */

.snailmed-cross-sell__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
}

/* =========================================================
   PRICE
========================================================= */

.snailmed-cross-sell__price {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.snailmed-cross-sell__price del {
	font-weight: 400;
	opacity: 0.6;
}

.snailmed-cross-sell__price ins {
	text-decoration: none;
}

/* =========================================================
   ADD TO CART BUTTON
========================================================= */

.snailmed-cross-sell__button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 34px;
	padding: 0 14px;
	font-size: 12px;
	border: 1px solid #e5e5e5;
	text-decoration: none;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

	.snailmed-cart__layout {
		display: block;
	}

	.snailmed-cart__summary {
		position: static;
		margin-top: 40px;
	}

	.snailmed-cart__cross-sells-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	
	.snailmed-cart__products {
		padding: 10px;
	}

	.snailmed-cart-item {
		grid-template-columns: 100px minmax(0, 1fr);
	}

	.snailmed-cart-item__image {
		width: 100px;
		height: 100px;
	}

	.snailmed-cart-item__content {
		min-height: 100px;
	}

	.snailmed-cart-item__controls {
		width: 140px;
	}

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

	.snailmed-cart-steps {
		margin-bottom: 35px;
	}

	.snailmed-cart-step {
		gap: 7px;
	}

	.snailmed-cart-step__number {
		width: 30px;
		height: 30px;
		font-size: 13px;
	}

	.snailmed-cart-step__label {
		font-size: 13px;
	}

	.snailmed-cart-step__line {
		flex: 1 1 auto;
		min-width: 20px;
		margin: 0 10px;
	}

	.snailmed-cart__header {
		margin-bottom: 35px;
	}

	.snailmed-cart-item {
		display: grid;
		grid-template-columns: 80px minmax(0, 1fr);
		column-gap: 0px;
		gap: 10px;
		padding: 15px 0 0;
	}

	.snailmed-cart-item__image {
		grid-column: 1;
		grid-row: 1 / 4;
		width: 80px;
		height: 80px;
		align-self: start;
	}

	.snailmed-cart-item__content {
		grid-column: 2;
		grid-row: 1;
		display: grid;
		grid-template-columns: minmax(0, 1fr) 24px;
		grid-template-rows: auto auto auto;
		column-gap: 10px;
		row-gap: 5px;
		min-width: 0;
		align-content: start;
	}

	.snailmed-cart-item__top,
	.snailmed-cart-item__controls,
	.snailmed-cart-item__bottom {
		display: contents;
	}
	
	.snailmed-cart-item__name {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
		padding: 0;
		align-self: start;
	}

	.snailmed-cart-item__remove {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: start;
		width: 24px;
		height: 24px;
		margin: 0;
	}

	.snailmed-cart-item__remove img {
		width: 19px;
		height: 19px;
	}

	.snailmed-cart-item__price {
		grid-column: 1;
		grid-row: 2;
		justify-self: start;
		align-self: start;
		margin: 0;
		padding: 4px 0 7px;
		font-size: 14px;
		line-height: 1.3;
		white-space: nowrap;
	}

	.snailmed-cart-item__price::before {
		content: "Cena za sztukÄ";
		display: inline;
		margin-bottom: 2px;
		font-size: 13px!important;
		font-weight: 400;
		line-height: 1.3;
		color: #7b8794;
	}
	.snailmed-cart-item__quantity {
		grid-column: 1;
		grid-row: 3;
		align-self: center;
		justify-self: start;
		justify-content: flex-start;
		width: auto;
	}

	.snailmed-cart-item__quantity .snailmed-quantity {
		height: 45px;
		justify-content: flex-start;
	}

	.snailmed-quantity__button {
		width: 40px;
		height: 45px;
		font-size: 16px;
	}
	
	.snailmed-quantity .quantity {
		height: 45px;
	}

	.snailmed-cart-item__quantity input.qty {
		width: 40px;
		height: 45px!important;
		font-size: 15px;
	}

	.snailmed-cart-item__subtotal {
		grid-column: 1 / 3;
		grid-row: 3;
		justify-self: end;
		align-self: center;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.3;
		white-space: nowrap;
	}

	.snailmed-cart-item__multiply {
		display: none;
	}

.snailmed-cart__cross-sells {
		margin-top: 55px;
	}

	.snailmed-cart__cross-sells-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.snailmed-cart__coupon-form {
		flex-direction: column;
	}

	.snailmed-cart__coupon-form button {
		width: 100%;
	}

	.snailmed-shipping-method {
		padding: 10px 9px;
	}

	.snailmed-shipping-method__icon {
		flex-basis: 24px;
		width: 24px;
		height: 36px;
	}

	.snailmed-shipping-method__icon img {
		width: 22px;
		height: 22px;
	}

	.snailmed-shipping-method__name {
		font-size: 14px;
	}

	.snailmed-shipping-method__description {
		font-size: 11px;
	}

	.snailmed-shipping-method__price {
		font-size: 13px;
	}

	.snailmed-cart .payment-info {
		font-size: 11px;
		padding: 10px 12px;
	}

	.snailmed-cart .payment-info__icon {
		flex-basis: 24px;
		width: 24px;
		height: 30px;
	}

	.snailmed-cart .payment-info__icon img {
		width: 20px;
		height: 20px;
	}
}
