.woocommerce-account #main {
	max-width: none;
}

.woocommerce-account .woocommerce a.button.alt,
.woocommerce-account .woocommerce button.button.alt,
.woocommerce-account .woocommerce input.button.alt,
.woocommerce-checkout .woocommerce a.button.alt,
.woocommerce-checkout .woocommerce button.button.alt,
.woocommerce-checkout .woocommerce input.button.alt {
	background: #33b9cb;
	color: #fff;
}

.woocommerce-account .woocommerce a.button.alt:hover,
.woocommerce-account .woocommerce a.button.alt:focus,
.woocommerce-account .woocommerce button.button.alt:hover,
.woocommerce-account .woocommerce button.button.alt:focus,
.woocommerce-account .woocommerce input.button.alt:hover,
.woocommerce-account .woocommerce input.button.alt:focus,
.woocommerce-checkout .woocommerce a.button.alt:hover,
.woocommerce-checkout .woocommerce a.button.alt:focus,
.woocommerce-checkout .woocommerce button.button.alt:hover,
.woocommerce-checkout .woocommerce button.button.alt:focus,
.woocommerce-checkout .woocommerce input.button.alt:hover,
.woocommerce-checkout .woocommerce input.button.alt:focus {
	background: #091d3e;
	color: #fff;
}

.medvise-recurring-consent {
	display: none;
}

.medvise-recurring-consent,
.medvise-yookassa-save-method {
	margin-top: 16px;
}

.woocommerce-checkout #payment .wc-saved-payment-methods[data-count="0"] {
	display: none;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper:has(> .woocommerce-privacy-policy-text:empty):not(:has(> :not(.woocommerce-privacy-policy-text))) {
	display: none;
}

.medvise-recurring-consent label {
	line-height: 1.5;
}

.medvise-recurring-consent small {
	display: block;
	margin: 8px 0 0 26px;
	color: #5c6678;
	font-size: 13px;
	line-height: 1.45;
}

.medvise-yookassa-payment-methods {
	margin-bottom: 28px;
	padding: 24px;
	border: 1px solid #dfe5ec;
	border-radius: 8px;
	background: #fff;
}

.medvise-yookassa-payment-methods h2 {
	margin: 0 0 10px;
	font-size: 24px;
}

.medvise-yookassa-payment-methods__description {
	max-width: 760px;
	margin: 0 0 20px;
	color: #475569;
	line-height: 1.6;
}

.medvise-yookassa-payment-methods .account-payment-methods-table {
	margin-bottom: 18px;
}

.medvise-yookassa-card-method {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 28px;
}

.woocommerce-checkout #payment .medvise-yookassa-checkout-method {
	display: flex;
	align-items: center;
	gap: 12px;
}

.woocommerce-checkout #payment .medvise-yookassa-checkout-method::before,
.woocommerce-checkout #payment .medvise-yookassa-checkout-method::after {
	display: none !important;
}

.woocommerce-checkout #payment .medvise-yookassa-checkout-method > .woocommerce-SavedPaymentMethods-tokenInput {
	flex: 0 0 auto;
	margin: 0 !important;
}

.woocommerce-checkout #payment .medvise-yookassa-checkout-method > label {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.medvise-yookassa-card-brand-icon {
	display: block;
	width: 42px;
	height: 26px;
	margin: 0 !important;
	object-fit: contain;
	object-position: left center;
}

.medvise-yookassa-card-brand-icon--mir {
	width: 48px;
}

.medvise-yookassa-card-brand-icon--sbp {
	width: 30px;
}

.medvise-yookassa-card-brand-icon--yoomoney {
	width: 37px;
}

.medvise-yookassa-card-brand-icon--sberpay,
.medvise-yookassa-card-brand-icon--tpay {
	width: 32px;
	height: 32px;
}

.medvise-yookassa-card-brand-text,
.medvise-yookassa-card-last4 {
	white-space: nowrap;
}

.medvise-yookassa-card-brand-text {
	font-weight: 600;
}

.medvise-yookassa-payment-methods > a.button {
	margin: 18px 0 0 !important;
	cursor: pointer;
}

.medvise-yookassa-card-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
}

.medvise-yookassa-card-actions .button {
	margin: 0 !important;
	white-space: nowrap;
	cursor: pointer;
}

.medvise-yookassa-primary-badge {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 5px 11px;
	border-radius: 999px;
	background: #e8f7ee;
	color: #18794e;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.medvise-yookassa-unlink-trigger,
.medvise-yookassa-unlink-submit,
.medvise-yookassa-modal-cancel {
	cursor: pointer;
}

.medvise-yookassa-unlink-modal .modal-dialog {
	max-width: 500px;
}

.medvise-yookassa-unlink-modal .modal-body {
	padding: 24px 32px 8px;
	text-align: center;
}

.medvise-yookassa-unlink-modal .modal-body p {
	margin: 0 0 12px;
	line-height: 1.55;
}

.medvise-yookassa-unlink-modal .modal-footer {
	gap: 10px;
	padding: 8px 32px 32px;
}

.medvise-yookassa-unlink-modal .modal-footer .button {
	margin: 0 !important;
}

.medvise-yookassa-unlink-modal .modal-footer .medvise-yookassa-unlink-submit {
	margin-right: auto !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #b42318 !important;
	text-decoration: underline;
}

.medvise-yookassa-unlink-modal .modal-footer .medvise-yookassa-unlink-submit:hover,
.medvise-yookassa-unlink-modal .modal-footer .medvise-yookassa-unlink-submit:focus {
	background: transparent !important;
	color: #7a271a !important;
	text-decoration: none;
}

@media (max-width: 768px) {
	.woocommerce-account .medvise-yookassa-payment-methods .payment-method-actions::before {
		display: none !important;
		content: none !important;
	}
}

@media (max-width: 767px) {
	.medvise-yookassa-payment-methods {
		padding: 18px;
	}

	.medvise-recurring-consent small {
		margin-left: 0;
	}

	.medvise-yookassa-card-actions {
		justify-content: flex-start;
	}

	.medvise-yookassa-unlink-modal .modal-body,
	.medvise-yookassa-unlink-modal .modal-footer {
		padding-right: 18px;
		padding-left: 18px;
	}
}
