/* ======================================================
   StudyMEDIC classic checkout
====================================================== */

body.woocommerce-checkout {
	background: linear-gradient(
		135deg,
		#fff5f8 0%,
		#ffffff 52%,
		#f3f5ff 100%
	);
}

body.woocommerce-checkout .site-main {
	width: min(1180px, calc(100% - 60px));
	margin-inline: auto;
	padding: 50px 0 110px;
	box-sizing: border-box;
}

body.woocommerce-checkout .entry-title {
	margin: 0 0 28px;
	color: #171b32;
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.1;
}

/* ======================================================
   Notices
====================================================== */

body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-error {
	position: relative;
	display: flex;
	min-height: 52px;
	margin: 0 0 20px;
	padding: 14px 18px 14px 52px !important;
	align-items: center;
	box-sizing: border-box;
	border: 1px solid #e1e5ef;
	border-radius: 14px;
	color: #4f5870;
	background: #ffffff;
	list-style: none;
}

body.woocommerce-checkout .woocommerce-message::before,
body.woocommerce-checkout .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-error::before {
	position: absolute;
	top: 50%;
	left: 18px;
	display: flex;
	width: 22px;
	height: 22px;
	margin: 0;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #ffffff;
	font-family: Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-50%);
}

body.woocommerce-checkout .woocommerce-message::before {
	background: #65a30d;
	content: "✓";
}

body.woocommerce-checkout .woocommerce-info::before {
	background: #24377f;
	content: "i";
}

body.woocommerce-checkout .woocommerce-error::before {
	background: #c62828;
	content: "!";
}

body.woocommerce-checkout .woocommerce-message::after,
body.woocommerce-checkout .woocommerce-info::after,
body.woocommerce-checkout .woocommerce-error::after {
	display: none !important;
	content: none !important;
}

body.woocommerce-checkout .woocommerce-message .button {
	display: inline-flex;
	min-height: 36px;
	margin-left: auto;
	padding: 8px 16px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	color: #24377f;
	background: #f0eef4;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

body.woocommerce-checkout .woocommerce-message .button:hover {
	color: #ffffff;
	background: #ed417f;
}

/* Coupon */

body.woocommerce-checkout .woocommerce-form-coupon-toggle {
	margin-bottom: 22px;
}

body.woocommerce-checkout
.woocommerce-form-coupon-toggle
.woocommerce-info {
	margin: 0;
}

body.woocommerce-checkout .showcoupon {
	color: #24377f;
	font-weight: 700;
	text-decoration: none;
}

body.woocommerce-checkout .showcoupon:hover {
	color: #ed417f;
}

body.woocommerce-checkout .checkout_coupon {
	margin: 0 0 22px;
	padding: 20px;
	border: 1px solid #e1e5ef;
	border-radius: 14px;
	background: #ffffff;
}

/* ======================================================
   Two-column checkout
====================================================== */

body.woocommerce-checkout .studymedic-checkout-form {
	width: 100%;
}

body.woocommerce-checkout .studymedic-checkout-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
	gap: 30px;
	align-items: start;
}

body.woocommerce-checkout .studymedic-checkout-column {
	min-width: 0;
	padding: 30px;
	box-sizing: border-box;
	border: 1px solid #e2e6f0;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 14px 40px rgba(31, 44, 99, 0.07);
}

body.woocommerce-checkout .studymedic-checkout-column h2,
body.woocommerce-checkout .studymedic-checkout-column h3 {
	margin: 0 0 24px;
	color: #171b32;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

/* Remove default WooCommerce columns */

body.woocommerce-checkout .studymedic-checkout-grid .col2-set,
body.woocommerce-checkout .studymedic-checkout-grid .col-1,
body.woocommerce-checkout .studymedic-checkout-grid .col-2 {
	float: none;
	width: 100%;
	margin: 0;
}

/* Hide unused sections */

body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout .woocommerce-shipping-fields {
	display: none;
}

/* ======================================================
   Billing details
====================================================== */

body.woocommerce-checkout
.woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

body.woocommerce-checkout
.woocommerce-billing-fields
.form-row {
	float: none;
	width: 100%;
	margin: 0;
}

body.woocommerce-checkout
.woocommerce-billing-fields label {
	display: block;
	margin-bottom: 7px;
	color: #30364c;
	font-size: 13px;
	font-weight: 700;
}

body.woocommerce-checkout
.woocommerce-billing-fields
.input-text,
body.woocommerce-checkout
.woocommerce-billing-fields select {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 12px 15px;
	box-sizing: border-box;
	border: 1px solid #dce1ec;
	border-radius: 12px;
	color: #171b32;
	background: #ffffff;
	font: inherit;
	font-size: 15px;
}

body.woocommerce-checkout
.woocommerce-billing-fields
.input-text:focus,
body.woocommerce-checkout
.woocommerce-billing-fields select:focus {
	border-color: #7657d6;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(118, 87, 214, 0.12);
}

/* Country Select2 */

body.woocommerce-checkout
.woocommerce-billing-fields
.select2-container {
	width: 100% !important;
}

body.woocommerce-checkout
.woocommerce-billing-fields
.select2-selection--single {
	min-height: 50px;
	border: 1px solid #dce1ec;
	border-radius: 12px;
	background: #ffffff;
}

body.woocommerce-checkout
.woocommerce-billing-fields
.select2-selection__rendered {
	padding: 10px 42px 10px 15px;
	color: #171b32;
	line-height: 28px;
}

body.woocommerce-checkout
.woocommerce-billing-fields
.select2-selection__arrow {
	top: 12px;
	right: 10px;
}

/* ======================================================
   Your order
====================================================== */

body.woocommerce-checkout
.studymedic-checkout-order
.shop_table {
	width: 100%;
	margin: 0 0 22px;
	overflow: hidden;
	border: 1px solid #e2e6f0;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
}

body.woocommerce-checkout
.studymedic-checkout-order
.shop_table th,
body.woocommerce-checkout
.studymedic-checkout-order
.shop_table td {
	padding: 14px;
	border: 0;
	border-bottom: 1px solid #e8ebf2;
	color: #4f5870;
	text-align: left;
	vertical-align: middle;
}

body.woocommerce-checkout
.studymedic-checkout-order
.shop_table th {
	color: #171b32;
	background: #f7f8fc;
	font-weight: 700;
}

body.woocommerce-checkout
.studymedic-checkout-order
.shop_table tr:last-child th,
body.woocommerce-checkout
.studymedic-checkout-order
.shop_table tr:last-child td {
	border-bottom: 0;
}

/* ======================================================
   Payment
====================================================== */

body.woocommerce-checkout
.studymedic-checkout-order
#payment {
	padding: 20px;
	border-radius: 16px;
	background: #f7f8fc;
}

body.woocommerce-checkout
.studymedic-checkout-order
.wc_payment_methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-checkout
.studymedic-checkout-order
.wc_payment_method {
	margin: 0 0 15px;
}

body.woocommerce-checkout
.studymedic-checkout-order
.wc_payment_method label {
	font-weight: 700;
}

body.woocommerce-checkout
.studymedic-checkout-order
.payment_box {
	margin-top: 12px;
	padding: 15px;
	border-radius: 12px;
	background: #ffffff;
}

body.woocommerce-checkout
.studymedic-checkout-order
.payment_box::before {
	display: none;
	content: none;
}

body.woocommerce-checkout
.studymedic-checkout-order iframe {
	display: block;
	max-width: 100%;
	margin-inline: auto;
	border: 0;
}

/* Place order */

body.woocommerce-checkout
.studymedic-checkout-order
#place_order {
	display: flex;
	width: 100%;
	min-height: 54px;
	margin-top: 20px;
	padding: 0 24px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	background: #ed417f;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

body.woocommerce-checkout
.studymedic-checkout-order
#place_order:hover {
	background: #d92c6b;
}

/* Privacy */

body.woocommerce-checkout
.woocommerce-privacy-policy-text,
body.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper {
	color: #66708a;
	font-size: 13px;
	line-height: 1.6;
}

/* ======================================================
   Tablet
====================================================== */

@media (max-width: 900px) {
	body.woocommerce-checkout .site-main {
		width: calc(100% - 36px);
		padding: 42px 0 110px;
	}

	body.woocommerce-checkout .studymedic-checkout-grid {
		grid-template-columns: 1fr;
	}

	body.woocommerce-checkout .studymedic-checkout-column {
		padding: 24px;
	}
}

/* ======================================================
   Mobile
====================================================== */

@media (max-width: 600px) {
	body.woocommerce-checkout .site-main {
		width: calc(100% - 28px);
		padding: 32px 0 110px;
	}

	body.woocommerce-checkout .entry-title {
		margin-bottom: 22px;
		font-size: 34px;
	}

	body.woocommerce-checkout .studymedic-checkout-grid {
		gap: 20px;
	}

	body.woocommerce-checkout .studymedic-checkout-column {
		padding: 20px 16px;
		border-radius: 18px;
	}

	body.woocommerce-checkout .studymedic-checkout-column h2,
	body.woocommerce-checkout .studymedic-checkout-column h3 {
		font-size: 23px;
	}

	body.woocommerce-checkout
	.woocommerce-billing-fields
	.input-text,
	body.woocommerce-checkout
	.woocommerce-billing-fields select {
		font-size: 16px;
	}

	body.woocommerce-checkout .woocommerce-message,
	body.woocommerce-checkout .woocommerce-info,
	body.woocommerce-checkout .woocommerce-error {
		padding: 14px 14px 14px 48px !important;
		align-items: flex-start;
		flex-wrap: wrap;
	}

	body.woocommerce-checkout .woocommerce-message::before,
	body.woocommerce-checkout .woocommerce-info::before,
	body.woocommerce-checkout .woocommerce-error::before {
		top: 16px;
		left: 15px;
		transform: none;
	}

	body.woocommerce-checkout .woocommerce-message .button {
		width: 100%;
		margin: 12px 0 0;
	}

	body.woocommerce-checkout
	.studymedic-checkout-order
	.shop_table th,
	body.woocommerce-checkout
	.studymedic-checkout-order
	.shop_table td {
		padding: 12px 10px;
	}

	body.woocommerce-checkout
	.studymedic-checkout-order
	#payment {
		padding: 16px;
	}
}



.quick-coupon {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	padding: 16px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
}

.quick-coupon__icon {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	place-items: center;
	color: #fff;
	background: #ff5a00;
	border-radius: 10px;
	font-size: 21px;
	font-weight: 700;
}

.quick-coupon__text {
	flex: 1;
	min-width: 0;
}

.quick-coupon__text strong,
.quick-coupon__text small {
	display: block;
}

.quick-coupon__text strong {
	color: #222;
	font-size: 16px;
}

.quick-coupon__text small {
	margin-top: 3px;
	color: #888;
	font-size: 13px;
}

.quick-coupon__button {
	padding: 9px 16px;
	color: #ff5a00;
	background: #fff;
	border: 1px solid #ff5a00;
	border-radius: 10px;
	font-weight: 700;
	cursor: pointer;
}

.quick-coupon__button.is-applied {
	color: #19a974;
	background: transparent;
	border-color: transparent;
}

@media (max-width: 480px) {
	.quick-coupon {
		padding: 13px;
	}

	.quick-coupon__text strong {
		font-size: 14px;
	}

	.quick-coupon__button {
		padding: 8px 12px;
	}
}