/**
Theme Name: Ivan Wilson by Redback
Author: Redback Creations
Author URI: https://www.redbackcreations.com/
Description: Astra child theme for Ivan Wilson Fuels. Presentation only: page templates and styling for the ordering and customer pages. All ordering logic lives in the Ivan Wilson Order plugin.
Version: 2.7.0
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ivan-wilson-by-redback
Template: astra
*/

/* Full-width content area used by the ordering/customer page templates (moved from inline <style> blocks). */
.iw-page #content .ast-container {
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.iw-page.ast-separate-container #primary {
	margin: 0;
}

.iw-page #ajContainer {
	width: 100%;
	background: #fff;
}

.iw-page #ajContents {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 30px 30px;
}

@media (min-width: 993px) {
	.iw-page.ast-separate-container #primary {
		margin: 0 !important;
		padding: 0;
	}

	.iw-page.ast-separate-container.ast-single-post .ast-article-single {
		padding-top: 1em !important;
		padding-bottom: 1em !important;
	}
}

/* Customer account page (moved from the old template's inline styles). */
.iw-page-customeraccount #ajContents h3 {
	font-size: 24px;
	margin-top: 30px;
	margin-bottom: 10px;
}

.iw-page-customeraccount #ajContents form p {
	margin-bottom: 12px;
}

.iw-page-customeraccount #btnSave {
	float: none;
	margin-top: 20px;
}

/* Order history table: scroll inside its own box on narrow screens. */
.iw-customer-account .datatable {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.iw-customer-account .datatable table {
	min-width: 560px;
	margin-bottom: 0;
}

/*
 * Button-style links on the order and customer pages: never underlined
 * (Astra may underline content links; these are buttons, not text links).
 */
#iw-order a.btn,
#iw-order a.btnSelectFuel,
#iw-order a.btnSelectAdditive,
.iw-customer a.btn,
#btnMyAccount,
#btnTryAgain {
	text-decoration: none;
}

/*
 * Step 3: additive cards and "I Don't Want An Additive" in tidy rows of equal
 * height (floats left gaps when one card is taller than its neighbours).
 */
.additives-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.additives-row .additives {
	display: contents;
}

.additives-row .additive-option,
.additives-row .additivesBtn {
	float: none;
	display: flex;
	flex-direction: column;
}

.additives-row .additive-option-heading {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.additives-row .additive-option-inner {
	flex: 1 1 auto;
}

/* "Your Quote" summary: items in even rows. */
.order-details ul {
	display: flex;
	flex-wrap: wrap;
}

.order-details ul li {
	float: none;
}

/* Payment not completed page. */
.iw-order-failed {
	text-align: center;
}

#btnTryAgain {
	background: #15518f;
	color: #fff;
	display: inline-block;
	margin-top: 15px;
	padding: 5px 45px;
	border-top: 4px solid #eeee22;
}

#btnTryAgain:hover {
	background: #000;
	color: #fff;
}

/* Success page: "My Account" button centred under the summary. */
.iw-order-success #btnMyAccount {
	float: none;
	margin-top: 15px;
}
