/* BBQWorld mobile basket: responsive presentation for the shared desktop logic. */

.basket-page {
	padding: 0 0 32px;
	font-size: 14px;
}

.basket-container {
	width: auto;
	max-width: none;
	margin: 0 10px;
}

.basket-header {
	margin-bottom: 16px;
	padding: 22px 0 15px;
}

.basket-header h1 {
	font-size: 28px;
	line-height: 1.2;
}

.basket-header p {
	font-size: 13px;
}

.basket-alert {
	margin-bottom: 12px;
	padding: 11px 13px;
	font-size: 12px;
}

.basket-layout {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.basket-layout > div {
	width: 100%;
	min-width: 0;
}

.basket-items-panel,
.basket-side-card,
.basket-option,
.basket-finance-card,
.basket-empty {
	border-color: #d8d8d8;
	border-radius: 6px;
}

.basket-panel-heading {
	min-height: 46px;
	padding: 0 14px;
}

.basket-panel-heading h2 {
	font-size: 16px;
}

.basket-item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	grid-template-areas:
		"image details"
		"price quantity"
		"total total";
	gap: 12px 14px;
	min-height: 0;
	padding: 16px 14px;
	align-items: start;
}

.basket-item-image {
	grid-area: image;
	height: 100px;
}

.basket-item-image img {
	max-width: 88px;
	max-height: 96px;
}

.basket-item-details {
	grid-area: details;
	padding: 0;
}

.basket-item-title {
	font-size: 14px;
	line-height: 1.4;
}

.basket-item-meta,
.basket-item-contains,
.basket-item-stock {
	font-size: 11px;
}

.basket-item-price,
.basket-item-qty,
.basket-item-total {
	box-sizing: border-box;
	text-align: left;
}

.basket-item-price {
	grid-area: price;
	padding-top: 7px;
	border-top: 1px solid #ededed;
}

.basket-item-qty {
	grid-area: quantity;
	padding-top: 7px;
	border-top: 1px solid #ededed;
}

.basket-item-total {
	grid-area: total;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 10px;
	border-top: 1px solid #ededed;
}

.basket-item-price > span,
.basket-item-qty > span,
.basket-item-total > span {
	display: block;
	margin-bottom: 4px;
	color: #777;
	font-size: 10px;
	font-weight: 600;
}

.basket-item-total > span {
	margin: 0;
}

.basket-item-price strong,
.basket-item-total > strong {
	font-size: 14px;
}

.basket-qty-controls {
	align-items: flex-start;
}

.basket-qty-controls select {
	width: 68px;
	min-width: 0;
	height: 38px;
}

.basket-remove-button {
	margin: 0 0 0 auto;
}

.basket-order-summary {
	gap: 12px;
}

.basket-side-card {
	padding: 16px 13px;
}

.basket-voucher-panel {
	order: 1;
}

.basket-summary-delivery {
	order: 2;
}

.basket-order-summary-card {
	order: 3;
}

.basket-voucher-title,
.basket-summary-title,
.basket-summary-delivery > label {
	font-size: 17px;
}

.basket-voucher-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.basket-voucher-form input,
.basket-voucher-button {
	height: 44px;
}

.basket-voucher-button {
	padding: 0 17px;
}

.basket-voucher-valid {
	align-items: center;
}

.basket-voucher-help a {
	display: inline-block;
	margin-top: 3px;
}

.basket-summary-delivery > label {
	display: block !important;
	float: none !important;
	width: 100%;
	margin: 0 0 4px;
	text-align: left;
}

.basket-delivery-prompt {
	display: block !important;
	float: none !important;
	clear: both;
	width: 100%;
	margin: 0 0 12px;
	text-align: left;
}

.basket-pallet-warning,
.basket-pallet-warning .basket-pallet-label,
.basket-pallet-warning strong,
.basket-pallet-warning p {
	text-align: left !important;
}

.basket-pallet-warning .basket-pallet-label {
	margin: 0 0 5px;
}

.basket-summary-delivery select,
.basket-summary-delivery-control select,
.basket-summary-date-select select {
	height: 46px;
	font-size: 13px;
}

.basket-summary-row {
	font-size: 13px;
}

.basket-summary-total {
	font-size: 17px;
}

.basket-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 14px;
}

.basket-option {
	padding: 16px 13px;
}

.basket-option h3 {
	font-size: 15px;
}

.basket-checkbox-row {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 9px;
	align-items: start;
	float: none !important;
	width: 100%;
	margin: 0;
}

.basket-checkbox-row input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin: 0;
}

.basket-checkbox-row strong,
.basket-checkbox-row small {
	display: block;
}

.basket-checkbox-row strong {
	font-size: 13px;
}

.basket-checkbox-row small {
	margin-top: 3px;
	font-size: 11px;
	line-height: 1.45;
}

.basket-option .error-message {
	clear: both;
	float: none;
	width: 100%;
	box-sizing: border-box;
	margin: 10px 0 0;
}

.basket-actions,
.basket-finance-action {
	width: 100%;
	margin: 14px 0 0;
}

.basket-checkout-button,
.basket-primary-button,
.basket-finance-button {
	height: 50px;
	line-height: 50px;
	font-size: 14px;
	color: #fff !important;
}

.basket-checkout-unavailable {
	margin-top: 8px;
	font-size: 11px;
	text-align: center;
}

.basket-payment-methods {
	margin-top: 14px;
}

.basket-finance {
	margin-top: 26px;
	padding-top: 22px;
}

.basket-finance-heading h2 {
	font-size: 22px;
}

.basket-finance-grid,
.basket-field-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.basket-finance-card {
	padding: 16px 13px;
}

.basket-finance-deposit {
	display: block;
	float: none;
	clear: both;
	width: 100%;
	box-sizing: border-box;
	margin: 16px 0 12px;
}

.basket-finance-deposit > span {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 7px;
	text-align: left;
}

.basket-finance-deposit select {
	display: block;
	float: none;
	width: 100%;
	max-width: none;
	margin: 0;
}

.basket-finance-options {
	display: grid;
	clear: both;
	width: 100%;
	box-sizing: border-box;
	gap: 10px;
}

.basket-finance-option {
	display: grid;
	float: none;
	width: 100%;
	box-sizing: border-box;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	margin: 0;
	padding: 13px 12px;
	text-align: left;
}

.basket-finance-option input[type="radio"] {
	float: none;
	width: 18px;
	height: 18px;
	margin: 0;
}

.basket-finance-option > span {
	display: block;
	min-width: 0;
}

.basket-finance-option strong {
	font-size: 12px;
	line-height: 1.35;
}

.basket-finance-option small {
	font-size: 10px;
	line-height: 1.45;
}

.basket-empty {
	padding: 32px 18px;
}

.basket-empty .basket-primary-button {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	margin: 18px auto 0;
	padding: 12px 22px;
	line-height: 1.2;
	text-align: center;
	vertical-align: middle;
}

/* Prevent iOS Safari zooming the page when a basket form control receives focus. */
.basket-page input[type="text"],
.basket-page input[type="email"],
.basket-page input[type="tel"],
.basket-page input[type="number"],
.basket-page input[type="search"],
.basket-page input[type="password"],
.basket-page textarea,
.basket-page select {
	font-size: 16px;
}

@media screen and (max-width: 360px) {
	.basket-container {
		margin: 0 8px;
	}

	.basket-item {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 10px;
		padding: 14px 10px;
	}

	.basket-item-image img {
		max-width: 72px;
	}

	.basket-voucher-form {
		grid-template-columns: 1fr;
	}

	.basket-voucher-button {
		width: 100%;
	}
}
