/*
Theme Name: IDR
Template: hello-elementor
Version: 1.0.1
*/

/* ==========================================================================
   /checkout/order-pay/ — full-bleed, Stripe-style payment screen.

   Markup:
     - order-pay.php                        (standalone page shell + title)
     - woocommerce/checkout/form-pay.php    (two-panel card; core hooks intact)

   Everything is scoped to body.idr-order-pay (class added in functions.php)
   so none of it reaches the regular /checkout/ page, which shares the same
   is_checkout() flag and the same #order_review / #payment ids.

   SPECIFICITY NOTE: the summary table keeps WooCommerce's .shop_table class
   for plugin compatibility, so WooCommerce/theme rules such as
   `.woocommerce table.shop_table thead th` (0,2,3) compete with ours. The
   table selectors below therefore carry both `.shop_table` and a `body`
   prefix so they win on specificity rather than relying on !important.

   Palette: #3a1c8f brand (page), #4a28ab lighter tint (summary panel).
   ========================================================================== */

/* --- Page shell (shared by order-pay and order-received) ---------------- */
body.idr-order-pay,
body.idr-order-received {
	margin: 0;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

body.idr-order-pay .idr-pay-page,
body.idr-order-received .idr-pay-page {
	box-sizing: border-box;
	min-height: 100vh;
	padding: 56px 20px 72px;
}

/* Page title, centred at the top */
body.idr-order-pay .idr-pay-page__head,
body.idr-order-received .idr-pay-page__head {
	max-width: 1040px;
	margin: 0 auto 34px;
	text-align: center;
}
body.idr-order-pay .idr-pay-page__title,
body.idr-order-received .idr-pay-page__title {
	margin: 18px 0 0;
	padding: 0;
	color: #3a1c8f;
	font-size: 32px;
	line-height: 1.2;
	font-weight: 700;
	text-align: center;
}
@media (max-width: 600px) {
	body.idr-order-pay .idr-pay-page,
	body.idr-order-received .idr-pay-page {
		padding: 34px 14px 48px;
	}
	body.idr-order-pay .idr-pay-page__title,
	body.idr-order-received .idr-pay-page__title {
		font-size: 25px;
	}
}

/* Currency Switcher */
.woomc-shortcode.currency-selector.menu-item {
	align-items: center;
}
.woomc-shortcode.currency-selector.menu-item .woocommerce-currency-selector-wrap {
	border: 1px solid var( --e-global-color-38a0b18 );
	border-radius: 5px;
	padding: 5px 0 5px 10px;
}

/* WooCommerce notices (payment errors, guest-order warning, …) above the card */
body.idr-order-pay .idr-pay-page__body > .woocommerce-notices-wrapper,
body.idr-order-pay .woocommerce-error,
body.idr-order-pay .woocommerce-message,
body.idr-order-pay .woocommerce-info,
body.idr-order-received .idr-pay-page__body > .woocommerce-notices-wrapper,
body.idr-order-received .woocommerce-error,
body.idr-order-received .woocommerce-message,
body.idr-order-received .woocommerce-info {
	box-sizing: border-box;
	max-width: 1040px;
	margin: 0 auto 20px;
	border-radius: 12px;
}

/* --- Card ---------------------------------------------------------------- */
body.idr-order-pay .idr-pay__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	align-items: stretch;
	max-width: 1040px;
	margin: 0 auto;
	border-radius: 20px;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
	color: #1a1533;
	text-align: left;
}
@media (max-width: 860px) {
	body.idr-order-pay .idr-pay__grid {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 16px;
	}
}

/* --- Left panel: order summary ------------------------------------------ */
body.idr-order-pay .idr-pay__summary {
	background: #fff;
	color: #1a1533;
	padding: 42px 38px;
}
@media (max-width: 600px) {
	body.idr-order-pay .idr-pay__summary {
		padding: 30px 22px;
	}
}

body.idr-order-pay .idr-pay__summary-head {
	margin-bottom: 30px;
}
body.idr-order-pay .idr-pay__eyebrow {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 400;
	color: #6b6580;
}
body.idr-order-pay .idr-pay__amount {
	margin: 0 0 10px;
	font-size: 40px;
	line-height: 1.05;
	font-weight: 700;
	color: #3a1c8f;
}
/* WooCommerce wraps amounts in <span class="woocommerce-Price-amount"><bdi> */
body.idr-order-pay .idr-pay__amount .woocommerce-Price-amount,
body.idr-order-pay .idr-pay__amount bdi,
body.idr-order-pay .idr-pay__amount .woocommerce-Price-currencySymbol {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	background: none;
}
body.idr-order-pay .idr-pay__meta {
	margin: 0;
	font-size: 13px;
	color: #8a849e;
}
body.idr-order-pay .idr-pay__meta strong {
	color: #1a1533;
	font-weight: 600;
}

/* Summary table — borderless, transparent, hairline dividers only */
body.idr-order-pay .idr-pay__table.shop_table {
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	border-collapse: collapse;
	background: transparent;
	color: #1a1533;
}
/* Column headings are redundant in this layout but stay in the DOM for
   screen readers rather than being display:none'd away. */
body.idr-order-pay .idr-pay__table.shop_table thead th {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
	background: transparent;
	font-size: 0;
}
body.idr-order-pay .idr-pay__table.shop_table tbody td,
body.idr-order-pay .idr-pay__table.shop_table tbody th,
body.idr-order-pay .idr-pay__table.shop_table tfoot th,
body.idr-order-pay .idr-pay__table.shop_table tfoot td {
	background: transparent;
	color: #1a1533;
	border: none;
	border-radius: 0;
	padding: 13px 0;
	font-size: 14px;
	line-height: 1.45;
	vertical-align: top;
}
/* Hairline divider under each line item */
body.idr-order-pay .idr-pay__table.shop_table tbody tr td {
	border-bottom: 1px solid #ece9f5;
}
body.idr-order-pay .idr-pay__table.shop_table tbody td.product-quantity,
body.idr-order-pay .idr-pay__table.shop_table tbody td.product-subtotal {
	text-align: right;
	white-space: nowrap;
	width: 1%;
}
body.idr-order-pay .idr-pay__table.shop_table tbody td.product-quantity,
body.idr-order-pay .idr-pay__table.shop_table tbody td.product-quantity strong {
	color: #8a849e;
	padding-right: 14px;
	font-weight: 400;
}
body.idr-order-pay .idr-pay__table.shop_table tbody td.product-subtotal {
	font-weight: 600;
}

/* Line item: thumbnail + name over muted meta */
body.idr-order-pay .idr-pay__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
body.idr-order-pay .idr-pay__thumb {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: #f2f0f8;
	box-shadow: none;
}
body.idr-order-pay .idr-pay__item-text {
	font-weight: 600;
	color: #1a1533;
}
body.idr-order-pay .idr-pay__item-text .wc-item-meta,
body.idr-order-pay .idr-pay__item-text dl.variation {
	margin: 3px 0 0;
	padding: 0;
	font-size: 12.5px;
	font-weight: 400;
	color: #8a849e;
	list-style: none;
}
body.idr-order-pay .idr-pay__item-text .wc-item-meta li,
body.idr-order-pay .idr-pay__item-text .wc-item-meta li p,
body.idr-order-pay .idr-pay__item-text dl.variation dt,
body.idr-order-pay .idr-pay__item-text dl.variation dd,
body.idr-order-pay .idr-pay__item-text dl.variation dd p {
	display: inline;
	margin: 0;
	padding: 0;
	font-weight: inherit;
	font-size: inherit;
}

/* Totals rows: muted label, solid value */
body.idr-order-pay .idr-pay__table.shop_table tfoot th {
	text-align: left;
	font-weight: 400;
	color: #6b6580;
}
body.idr-order-pay .idr-pay__table.shop_table tfoot td {
	text-align: right;
	font-weight: 500;
	white-space: nowrap;
}
/* Grand total — divider above, bold and larger, like "Total due today" */
body.idr-order-pay .idr-pay__table.shop_table tfoot tr.idr-pay__total-row--order_total th,
body.idr-order-pay .idr-pay__table.shop_table tfoot tr.idr-pay__total-row--order_total td {
	border-top: 1px solid #ece9f5;
	border-bottom: none;
	padding-top: 20px;
	font-size: 17px;
	font-weight: 700;
	color: #3a1c8f;
}

/* --- Right panel: payment ---------------------------------------------- */
body.idr-order-pay .idr-pay__payment {
	background: #fff;
	padding: 42px 38px;
	border: 1px solid #e5e2ef;
	border-radius: 20px;
}
@media (max-width: 600px) {
	body.idr-order-pay .idr-pay__payment {
		padding: 30px 22px;
	}
}
body.idr-order-pay .idr-pay__payment-title {
	margin: 0 0 18px;
	padding: 0;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 600;
	color: #1a1533;
	text-align: left;
}
body.idr-order-pay .idr-pay__payment #payment {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
}
body.idr-order-pay .idr-pay__payment ul.wc_payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
	border: none;
}
body.idr-order-pay .idr-pay__payment li.wc_payment_method {
	list-style: none;
	border: 1px solid #e2dff0;
	border-radius: 10px;
	padding: 15px 16px;
	margin: 0 0 10px;
	transition: border-color 0.15s ease;
}
body.idr-order-pay .idr-pay__payment li.wc_payment_method:hover {
	border-color: #c4b9e6;
}
body.idr-order-pay .idr-pay__payment li.wc_payment_method label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: #1a1533;
	cursor: pointer;
}
body.idr-order-pay .idr-pay__payment li.wc_payment_method input.input-radio {
	accent-color: #3a1c8f;
	width: 17px;
	height: 17px;
	margin: 0 6px 0 0;
	cursor: pointer;
}
body.idr-order-pay .idr-pay__payment li.wc_payment_method label img {
	max-height: 24px;
	width: auto;
	vertical-align: middle;
}

/* Gateway detail box (card fields, test-mode notice, …) */
body.idr-order-pay .idr-pay__payment .payment_box {
	background-color: #fff !important;
	border: 1px solid #eae5f7;
	border-radius: 10px !important;
	margin: 12px 0 0 !important;
	padding: 16px !important;
	font-size: 13.5px !important;
	line-height: 1.55 !important;
	color: #4a4560 !important;
}
body.idr-order-pay .idr-pay__payment .payment_box p:first-child {
	margin-top: 0;
}
body.idr-order-pay .idr-pay__payment .payment_box p:last-child {
	margin-bottom: 0;
}
/* Core draws a callout triangle above the open box — no room for it here */
body.idr-order-pay .idr-pay__payment .payment_box::before {
	display: none;
}
body.idr-order-pay .idr-pay__payment .payment_box input[type="text"],
body.idr-order-pay .idr-pay__payment .payment_box input[type="tel"],
body.idr-order-pay .idr-pay__payment .payment_box input[type="email"],
body.idr-order-pay .idr-pay__payment .payment_box input[type="number"],
body.idr-order-pay .idr-pay__payment .payment_box select {
	background: #fff;
	border: 1px solid #ddd7ee;
	border-radius: 8px;
	box-shadow: none;
	padding: 11px 12px;
	font-size: 15px;
	width: 100%;
	box-sizing: border-box;
}


/* Stripe express checkout (Apple Pay / Google Pay) renders above the gateway
   list via woocommerce_pay_order_before_payment — keep it and its "OR"
   separator inside the white column's rhythm. */
body.idr-order-pay .idr-pay__payment #wc-stripe-express-checkout-element {
	margin: 0 0 14px;
	flex-wrap: nowrap;
}
body.idr-order-pay .idr-pay__payment #wc-stripe-express-checkout-button-separator {
	margin: 0 0 16px;
	text-align: center;
	font-size: 13px;
	color: #8a849e;
}

ul.wc_payment_methods.payment_methods.methods {
    padding: 0px !important;
}
div#wc-stripe-express-checkout-element-applePay, div#wc-stripe-express-checkout-element-googlePay{
    min-width: auto;
}

/* Terms + submit */
body.idr-order-pay .idr-pay__payment .form-row {
	margin: 24px 0 0;
	padding: 0;
}
body.idr-order-pay .idr-pay__payment .woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 16px;
	font-size: 13px;
	line-height: 1.5;
	color: #6b6580;
}
body.idr-order-pay .idr-pay__payment button#place_order {
	display: block;
	width: 100%;
	background: #3a1c8f;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 15px 20px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease;
}
body.idr-order-pay .idr-pay__payment button#place_order:hover,
body.idr-order-pay .idr-pay__payment button#place_order:focus {
	background: #2f1670;
	color: #fff;
}
body.idr-order-pay .idr-pay__payment button#place_order[disabled] {
	opacity: 0.6;
	cursor: default;
}

body.idr-order-pay .idr-pay__secure {
	margin: 16px 0 0;
	text-align: center;
	font-size: 12.5px;
	color: #8a849e;
}

body.idr-order-pay .wc_payment_method.payment_method_stripe #wc-stripe-upe-form,
body.idr-order-pay .wc_payment_method.payment_method_stripe fieldset {
	padding: 0;
	border: none;
}
body.idr-order-pay .wc_payment_method.payment_method_stripe .form-row.woocommerce-SavedPaymentMethods-saveNew{
	margin-top: 10px;
}
body.idr-order-pay .wc_payment_method.payment_method_stripe .form-row.woocommerce-SavedPaymentMethods-saveNew #wc-stripe-new-payment-method{
	margin-right: 8px;
}
body.idr-order-pay .wc_payment_method.payment_method_stripe .form-row.woocommerce-SavedPaymentMethods-saveNew label {
	font-weight: 500;
	font-size: 14px;
	color: #1a1533;
}
.Label {
    color: gray !important;
    font-size: 14px !important;
    margin-bottom: 10px !important;
}
/* .Input {
    border-color: #d3cece !important;
} */

input {
  border-color: #d3cece !important;
}
#payment div.payment_box::before {
  top:-.90em !important;
}


/* ==========================================================================
   /checkout/order-received/ — thank-you screen, same visual language as the
   pay screen above. Markup: woocommerce/checkout/thankyou.php (core hooks
   intact) inside the order-received-page.php shell.

   Same specificity caution as the pay screen: WooCommerce ships rules for
   .woocommerce-order-overview / .order_details and .woocommerce table.shop_table,
   so selectors here carry those classes plus a body prefix to outrank them.
   ========================================================================== */

/* --- Card -------------------------------------------------------------- */
body.idr-order-received .idr-received__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	align-items: stretch;
	max-width: 1040px;
	margin: 0 auto;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 70px rgba(12, 4, 40, 0.32);
	font-size: 15px;
	line-height: 1.5;
	color: #1a1533;
	text-align: left;
}
@media (max-width: 860px) {
	body.idr-order-received .idr-received__grid {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 16px;
	}
}
/* No order to show — the message panel stands alone, so don't leave a gap */
body.idr-order-received .idr-received__grid--message-only {
	grid-template-columns: minmax(0, 1fr);
	max-width: 680px;
}

/* --- Left panel: order summary (purple tint, matches the pay screen) ---- */
body.idr-order-received .idr-received__summary {
	background: #4a28ab;
	color: #fff;
	padding: 42px 38px;
}
@media (max-width: 600px) {
	body.idr-order-received .idr-received__summary {
		padding: 30px 22px;
	}
}
body.idr-order-received .idr-received__summary-title {
	margin: 0 0 22px;
	padding: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	text-align: left;
}

/* Core's overview list: "Label: <strong>value</strong>". The bare label text
   node and the <strong> become flex items, so space-between splits them. */
body.idr-order-received ul.woocommerce-order-overview.order_details {
	list-style: none;
	margin: 0;
	padding: 0;
	border: none;
	font-size: 16px;
}
body.idr-order-received ul.woocommerce-order-overview.order_details li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 14px 0;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 16px;
	text-transform: none;
	float: none;
	width: auto;
}
body.idr-order-received ul.woocommerce-order-overview.order_details li strong {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-align: right;
	word-break: break-word;
}
/* Order number — the headline detail, so give it extra size */
body.idr-order-received ul.woocommerce-order-overview.order_details li.order,
body.idr-order-received ul.woocommerce-order-overview.order_details li.order strong {
	font-size: 19px;
}
/* Total gets the emphasis, and the last row drops its divider */
body.idr-order-received ul.woocommerce-order-overview.order_details li.total {
	border-bottom: none;
	border-top: 1px solid rgba(255, 255, 255, 0.28);
	margin-top: 4px;
	padding-top: 18px;
}
body.idr-order-received ul.woocommerce-order-overview.order_details li.total strong {
	font-size: 20px;
	font-weight: 700;
}
body.idr-order-received ul.woocommerce-order-overview.order_details li.method {
	border-bottom: none;
}
body.idr-order-received ul.woocommerce-order-overview.order_details li .woocommerce-Price-amount,
body.idr-order-received ul.woocommerce-order-overview.order_details li bdi {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	background: none;
}

/* --- Right panel: confirmation message --------------------------------- */
body.idr-order-received .idr-received__main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #fff;
	padding: 42px 38px;
}
@media (max-width: 600px) {
	body.idr-order-received .idr-received__main {
		padding: 30px 22px;
	}
}
body.idr-order-received .idr-received__check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 0 18px;
	border-radius: 50%;
	background: #ecfdf3;
	color: #12805c;
	font-size: 24px;
	line-height: 1;
}
body.idr-order-received .idr-received__main p.woocommerce-thankyou-order-received {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	font-size: 19px;
	line-height: 1.45;
	font-weight: 600;
	color: #1a1533;
}
body.idr-order-received .idr-received__main p.woocommerce-thankyou-order-received::before {
	display: none;
}
/* "Thank you." on its own line, large; the rest below at the base size */
body.idr-order-received .idr-received__lead {
	display: block;
	margin-bottom: 6px;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
	color: #3a1c8f;
}
body.idr-order-received .idr-received__sub {
	display: block;
	font-size: 19px;
	line-height: 1.45;
	font-weight: 600;
	color: #1a1533;
}
@media (max-width: 600px) {
	body.idr-order-received .idr-received__lead {
		font-size: 24px;
	}
	body.idr-order-received .idr-received__sub {
		font-size: 17px;
	}
}

/* --- Failed order ------------------------------------------------------ */
body.idr-order-received .idr-received__panel--failed {
	box-sizing: border-box;
	max-width: 680px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #f3d4d4;
	border-radius: 20px;
	padding: 34px 30px;
	box-shadow: 0 30px 70px rgba(12, 4, 40, 0.18);
	text-align: center;
}
body.idr-order-received .idr-received__panel--failed p {
	background: none;
	border: none;
	padding: 0;
}
body.idr-order-received .idr-received__panel--failed p.woocommerce-thankyou-order-failed {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.5;
	color: #8a2b2b;
}
body.idr-order-received .idr-received__panel--failed .button.pay {
	display: inline-block;
	background: #3a1c8f;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 13px 22px;
	margin: 0 5px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

/* --- Order details block (rendered by woocommerce_thankyou) ------------- */
/* The wrapper is only printed when the woocommerce_thankyou hooks actually
   rendered something (see thankyou.php), so it can always carry the card. */
body.idr-order-received .idr-received__details {
	box-sizing: border-box;
	max-width: 1040px;
	margin: 24px auto 0;
	background: #fff;
	border: 1px solid #ece9f5;
	border-radius: 20px;
	padding: 34px 30px;
	box-shadow: 0 10px 30px rgba(12, 4, 40, 0.08);
}
@media (max-width: 600px) {
	body.idr-order-received .idr-received__details {
		padding: 24px 20px;
		border-radius: 16px;
	}
}
body.idr-order-received .idr-received__details h2,
body.idr-order-received .idr-received__details h3 {
	margin: 0 0 16px;
	padding: 0;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 600;
	color: #1a1533;
	text-align: left;
}
body.idr-order-received .idr-received__details section + section,
body.idr-order-received .idr-received__details .woocommerce-customer-details {
	margin-top: 30px;
}

/* Order details / downloads tables */
body.idr-order-received .idr-received__details table.shop_table {
	width: 100%;
	margin: 0;
	border: none;
	border-radius: 0;
	border-collapse: collapse;
	background: transparent;
	font-size: 14.5px;
}
body.idr-order-received .idr-received__details table.shop_table thead th {
	background: transparent;
	border: none;
	border-bottom: 1px solid #ece9f5;
	padding: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #8a849e;
	text-align: left;
}
body.idr-order-received .idr-received__details table.shop_table tbody td,
body.idr-order-received .idr-received__details table.shop_table tbody th,
body.idr-order-received .idr-received__details table.shop_table tfoot td,
body.idr-order-received .idr-received__details table.shop_table tfoot th {
	background: transparent;
	border: none;
	border-bottom: 1px solid #f2f0f8;
	padding: 13px 0;
	color: #1a1533;
	vertical-align: top;
}
body.idr-order-received .idr-received__details table.shop_table tfoot th {
	font-weight: 400;
	color: #6b6580;
	text-align: left;
}
body.idr-order-received .idr-received__details table.shop_table tfoot td {
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
}
body.idr-order-received .idr-received__details table.shop_table tfoot tr:last-child th,
body.idr-order-received .idr-received__details table.shop_table tfoot tr:last-child td {
	border-bottom: none;
	border-top: 2px solid #ece9f5;
	padding-top: 16px;
	font-size: 17px;
	font-weight: 700;
	color: #3a1c8f;
}
body.idr-order-received .idr-received__details table.shop_table td.product-total,
body.idr-order-received .idr-received__details table.shop_table th.product-total {
	text-align: right;
}
/* Long product names / unbroken strings must not force horizontal overflow */
body.idr-order-received .idr-received__details table.shop_table td,
body.idr-order-received .idr-received__details table.shop_table th {
	word-break: break-word;
	overflow-wrap: anywhere;
}
body.idr-order-received .idr-received__details table.shop_table td.product-name a {
	color: #3a1c8f;
	text-decoration: none;
	font-weight: 600;
}
body.idr-order-received .idr-received__details table.shop_table .wc-item-meta,
body.idr-order-received .idr-received__details table.shop_table dl.variation {
	margin: 5px 0 0;
	padding: 0;
	font-size: 13px;
	color: #6b6580;
	list-style: none;
}
body.idr-order-received .idr-received__details table.shop_table .wc-item-meta li,
body.idr-order-received .idr-received__details table.shop_table .wc-item-meta li p,
body.idr-order-received .idr-received__details table.shop_table dl.variation dt,
body.idr-order-received .idr-received__details table.shop_table dl.variation dd,
body.idr-order-received .idr-received__details table.shop_table dl.variation dd p {
	display: inline;
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: 400;
}

/* Responsive: core's order-details rows carry no data-title attributes, so a
   label-per-cell stack isn't possible without altering core markup. The table
   is only Product | Total, so instead each row becomes a two-part flex row —
   name on the left, amount hugging the right — which reads correctly on narrow
   screens without needing the column headers. */
@media (max-width: 600px) {
	body.idr-order-received .idr-received__details table.shop_table {
		display: block;
		font-size: 14px;
	}
	body.idr-order-received .idr-received__details table.shop_table thead {
		display: none;
	}
	body.idr-order-received .idr-received__details table.shop_table tbody,
	body.idr-order-received .idr-received__details table.shop_table tfoot {
		display: block;
		width: 100%;
	}
	body.idr-order-received .idr-received__details table.shop_table tr {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		justify-content: space-between;
		gap: 4px 14px;
		width: 100%;
	}
	body.idr-order-received .idr-received__details table.shop_table tbody td,
	body.idr-order-received .idr-received__details table.shop_table tbody th,
	body.idr-order-received .idr-received__details table.shop_table tfoot td,
	body.idr-order-received .idr-received__details table.shop_table tfoot th {
		display: block;
		flex: 1 1 auto;
		border-bottom: none;
		padding: 10px 0;
	}
	body.idr-order-received .idr-received__details table.shop_table tbody tr,
	body.idr-order-received .idr-received__details table.shop_table tfoot tr {
		border-bottom: 1px solid #f2f0f8;
	}
	body.idr-order-received .idr-received__details table.shop_table tbody td.product-total,
	body.idr-order-received .idr-received__details table.shop_table tfoot td {
		flex: 0 0 auto;
		text-align: right;
	}
	/* The grand-total emphasis moves from the cell to the row on mobile */
	body.idr-order-received .idr-received__details table.shop_table tfoot tr:last-child {
		border-bottom: none;
		border-top: 2px solid #ece9f5;
	}
	body.idr-order-received .idr-received__details table.shop_table tfoot tr:last-child th,
	body.idr-order-received .idr-received__details table.shop_table tfoot tr:last-child td {
		border-top: none;
		padding-top: 14px;
	}
	/* Actions row: let the buttons take the full width instead of squeezing */
	body.idr-order-received .idr-received__details table.shop_table tfoot tr:has(.order-actions-button) {
		display: block;
	}
}

/* Order action buttons ("Pay", "View", "Order again", …) */
body.idr-order-received .idr-received__details th.order-actions--heading {
	vertical-align: middle;
}
body.idr-order-received .idr-received__details .order-actions-button,
body.idr-order-received .idr-received__details a.woocommerce-button.button {
	display: inline-block;
	background: linear-gradient(135deg, #4a28ab 0%, #3a1c8f 100%);
	color: #fff;
	border: none;
	border-radius: 30px;
	padding: 11px 22px;
	margin: 4px 6px 4px 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(58, 28, 143, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body.idr-order-received .idr-received__details .order-actions-button:hover,
body.idr-order-received .idr-received__details .order-actions-button:focus,
body.idr-order-received .idr-received__details a.woocommerce-button.button:hover,
body.idr-order-received .idr-received__details a.woocommerce-button.button:focus {
	background: linear-gradient(135deg, #5a33c9 0%, #45219f 100%);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(58, 28, 143, 0.36);
}
/* "Pay" is the primary next step when an order is awaiting payment */
body.idr-order-received .idr-received__details .order-actions-button.pay {
	background: linear-gradient(135deg, #19b57f 0%, #0f9166 100%);
	box-shadow: 0 4px 12px rgba(15, 145, 102, 0.3);
}
body.idr-order-received .idr-received__details .order-actions-button.pay:hover,
body.idr-order-received .idr-received__details .order-actions-button.pay:focus {
	background: linear-gradient(135deg, #1ec98d 0%, #12a273 100%);
	box-shadow: 0 6px 18px rgba(15, 145, 102, 0.38);
}
/* "Cancel" stays available but visually secondary */
body.idr-order-received .idr-received__details .order-actions-button.cancel {
	background: #fff;
	color: #8a2b2b;
	border: 1px solid #f0d2d2;
	box-shadow: none;
}
body.idr-order-received .idr-received__details .order-actions-button.cancel:hover,
body.idr-order-received .idr-received__details .order-actions-button.cancel:focus {
	background: #fdf4f4;
	color: #8a2b2b;
	box-shadow: none;
}
@media (max-width: 600px) {
	body.idr-order-received .idr-received__details .order-actions-button,
	body.idr-order-received .idr-received__details a.woocommerce-button.button {
		display: block;
		width: 100%;
		margin: 8px 0 0;
		text-align: center;
	}
}

/* Customer / billing + shipping address columns */
body.idr-order-received .idr-received__details .woocommerce-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}
body.idr-order-received .idr-received__details .woocommerce-column {
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
}
body.idr-order-received .idr-received__details address {
	border: 1px solid #ece9f5;
	border-radius: 12px;
	padding: 16px;
	font-style: normal;
	font-size: 14.5px;
	line-height: 1.6;
	color: #4a4560;
}
