/*
 * NMVRVI tema – klasikinių WooCommerce puslapių išvaizda („Mano paskyra“, apmokėjimas, užsakymo apmokėjimas (order-pay),
 * užsakymo gavimo puslapis). Įkeliama tik ten, kur įkeliami WooCommerce stiliai (žr. functions.php).
 */

body {
	--wc-primary: #091a5a;
	--wc-primary-text: #fff;
	--wc-secondary: #e5ebf8;
	--wc-secondary-text: #091a5a;
	--wc-highlight: #1b6e3c;
	--wc-highligh-text: #fff;
	--wc-content-bg: #fff;
	--wc-subtext: #5265ad;
	--wc-red: #b3261e;
	--wc-green: #1b6e3c;
	--wc-blue: #2671d9;
	--wc-form-border-color: #5265ad;
	--wc-form-border-radius: 4px;
	--wc-form-border-width: 1px;
	--wc-destructive: #b3261e;
	--wc-card-border-radius: 8px;
}

/* Turinio plotis klasikiniuose puslapiuose. */
.woocommerce-account main .woocommerce,
.woocommerce-cart main .woocommerce,
.woocommerce-checkout main .woocommerce {
	max-width: none;
}

/* -------------------------------------------------------------------------
 * Formos
 * ---------------------------------------------------------------------- */

.woocommerce form .form-row {
	margin: 0 0 1rem;
	padding: 0;
}

.woocommerce form .form-row label {
	display: block;
	font-weight: 600;
	line-height: 1.4;
	margin-block-end: 0.35rem;
}

.woocommerce form .form-row label.checkbox,
.woocommerce form .form-row .woocommerce-form__label-for-checkbox,
.woocommerce form .form-row .woocommerce-form__label-for-checkbox span {
	display: inline-flex;
	align-items: flex-start;
	font-weight: 400;
	gap: 0.25rem;
}

.woocommerce form .form-row :is(.input-text, select, textarea) {
	background: #fff;
	border: 1px solid var(--wc-form-border-color);
	border-radius: var(--wc-form-border-radius);
	color: #091a5a;
	font: inherit;
	line-height: 1.4;
	min-height: 44px;
	padding: 0.55rem 0.75rem;
	width: 100%;
}

.woocommerce form .form-row.woocommerce-invalid :is(.input-text, select),
.woocommerce form .form-row :is(.input-text, select)[aria-invalid="true"] {
	border: 2px solid #b3261e;
	box-shadow: inset 4px 0 0 #b3261e;
}

.woocommerce form .form-row.woocommerce-validated :is(.input-text, select) {
	border-color: #1b6e3c;
}

.woocommerce form .form-row .required {
	color: #b3261e;
	text-decoration: none;
	visibility: visible;
}

.woocommerce form .form-row .description,
.woocommerce .woocommerce-input-wrapper .description {
	background: #e5ebf8;
	border-radius: 4px;
	color: #091a5a;
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: 0.35rem;
	padding: 0.5rem 0.75rem;
}

.woocommerce .woocommerce-input-wrapper .description::before {
	border-bottom-color: #e5ebf8;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password,
.woocommerce form.checkout_coupon {
	background: #fff;
	border: 1px solid #c9d3ea;
	border-radius: 8px;
	margin: 0 0 2rem;
	max-width: 32rem;
	padding: var(--wp--preset--spacing--40);
}

.woocommerce form.login > p:last-child,
.woocommerce form.lost_reset_password > p:last-child {
	margin-block-end: 0;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme {
	display: flex;
	margin: 0 0 1rem;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__submit {
	margin: 0;
}

/* selectWoo / select2 (šalies ir pan. pasirinkimai). */
.select2-container--default .select2-selection--single {
	border: 1px solid var(--wc-form-border-color);
	border-radius: var(--wc-form-border-radius);
	height: 44px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #091a5a;
	line-height: 42px;
	padding-inline-start: 0.75rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 42px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default .select2-selection--single:focus-visible {
	outline: 3px solid #2671d9;
	outline-offset: 2px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background: #091a5a;
	color: #fff;
}

/* -------------------------------------------------------------------------
 * „Mano paskyra“
 * ---------------------------------------------------------------------- */

.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 782px) {
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
	}
}

.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

.woocommerce-MyAccount-navigation ul {
	border: 1px solid #c9d3ea;
	border-radius: 8px;
	list-style: none;
	margin: 0;
	overflow: hidden;
	padding: 0;
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
}

.woocommerce-MyAccount-navigation li + li {
	border-top: 1px solid #c9d3ea;
}

.woocommerce-MyAccount-navigation li a {
	color: #091a5a;
	display: block;
	font-weight: 600;
	min-height: 44px;
	padding: 0.7rem 1rem;
	text-decoration: none;
}

.woocommerce-MyAccount-navigation li a:hover {
	background: #f3f6f9;
	text-decoration: underline;
}

.woocommerce-MyAccount-navigation li.is-active a {
	background: #e5ebf8;
	box-shadow: inset 4px 0 0 #091a5a;
}

.woocommerce-MyAccount-navigation li a:focus-visible {
	outline-offset: -3px;
}

.woocommerce-MyAccount-content > :first-child {
	margin-block-start: 0;
}

.woocommerce-MyAccount-content mark,
.woocommerce-order-details mark,
.woocommerce mark {
	background: #e5ebf8;
	border-radius: 4px;
	color: #091a5a;
	font-weight: 700;
	padding: 0 0.3em;
}

.woocommerce-Addresses .woocommerce-Address,
.woocommerce .woocommerce-customer-details address {
	border: 1px solid #c9d3ea;
	border-radius: 8px;
	font-style: normal;
	padding: 1rem 1.25rem;
}

.woocommerce-Address-title {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	justify-content: space-between;
}

.woocommerce-Address-title :is(h2, h3) {
	font-size: var(--wp--preset--font-size--large);
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Lentelės (užsakymai, užsakymo informacija, apmokėjimo suvestinė)
 * ---------------------------------------------------------------------- */

.woocommerce table.shop_table {
	border: 1px solid #c9d3ea;
	border-collapse: separate;
	border-radius: 8px;
	border-spacing: 0;
	margin: 0 0 1.5rem;
	overflow: hidden;
}

.woocommerce table.shop_table :is(th, td) {
	border-bottom: 1px solid #c9d3ea;
	border-top: 0;
	padding: 0.65rem 0.85rem;
	vertical-align: top;
}

.woocommerce table.shop_table thead th {
	background: #e5ebf8;
	border-bottom: 2px solid #091a5a;
}

.woocommerce table.shop_table tfoot :is(th, td) {
	border-top: 1px solid #c9d3ea;
	font-weight: 700;
}

.woocommerce table.shop_table tr:last-child > :is(th, td) {
	border-bottom: 0;
}

.woocommerce table.my_account_orders .button {
	margin: 0.15rem 0.35rem 0.15rem 0;
	min-height: 40px;
	padding: 0.35rem 0.8rem;
}

@media (max-width: 768px) {
	.woocommerce table.shop_table_responsive tr td::before,
	.woocommerce-page table.shop_table_responsive tr td::before {
		color: #091a5a;
	}

	.woocommerce table.shop_table_responsive tbody tr:first-child td:first-child,
	.woocommerce table.shop_table_responsive tr:nth-child(2n) td {
		background: transparent;
	}

	.woocommerce table.shop_table_responsive tr {
		border-bottom: 1px solid #c9d3ea;
	}
}

/* -------------------------------------------------------------------------
 * Apmokėjimas (classic checkout ir order-pay)
 * ---------------------------------------------------------------------- */

.woocommerce-checkout #payment,
.woocommerce #payment {
	background: #f3f6f9;
	border: 1px solid #c9d3ea;
	border-radius: 8px;
}

.woocommerce-checkout #payment ul.payment_methods {
	border-bottom: 1px solid #c9d3ea;
	padding: 1rem 1.25rem;
}

.woocommerce-checkout #payment ul.payment_methods li {
	line-height: 1.5;
	margin: 0 0 0.5rem;
}

.woocommerce-checkout #payment ul.payment_methods li label {
	cursor: pointer;
	font-weight: 600;
}

.woocommerce-checkout #payment div.payment_box {
	background: #e5ebf8;
	border-radius: 4px;
	color: #091a5a;
	font-size: var(--wp--preset--font-size--small);
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: #e5ebf8;
}

.woocommerce-checkout #payment div.form-row {
	padding: 1rem 1.25rem;
}

.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
	font-size: var(--wp--preset--font-size--large);
	min-height: 52px;
	padding-inline: 1.75rem;
}

.woocommerce-terms-and-conditions-wrapper {
	font-size: var(--wp--preset--font-size--small);
}

.woocommerce-checkout h3,
#order_review_heading {
	font-size: var(--wp--preset--font-size--x-large);
}

/* Užsakymo gavimo puslapio santrauka. */
.woocommerce ul.order_details,
.woocommerce-order-overview {
	background: #f3f6f9;
	border: 1px solid #c9d3ea;
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
}

.woocommerce ul.order_details::before,
.woocommerce ul.order_details::after {
	display: none;
}

.woocommerce ul.order_details li {
	border: 0;
	float: none;
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
	padding: 0;
	text-transform: none;
}

.woocommerce ul.order_details li strong {
	font-size: var(--wp--preset--font-size--medium);
}

.woocommerce .woocommerce-thankyou-order-received,
.woocommerce .woocommerce-notice--success {
	background: #edf7f1;
	border-inline-start: 6px solid #1b6e3c;
	border-radius: 4px;
	padding: 1rem 1.25rem;
}

/* Puslapiavimas. */
.woocommerce-pagination .button,
.woocommerce nav.woocommerce-pagination ul li :is(a, span) {
	min-height: 44px;
	min-width: 44px;
}

@media print {
	.woocommerce-MyAccount-navigation,
	.woocommerce #payment,
	.woocommerce .button {
		display: none !important;
	}

	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		display: block;
	}
}
