@import url("https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap");

:root {
	--body-background: #f3f4fa;
	--color-white: #ffffff;
	--color-black: #000000;
	--input-text-color: #495057;
	--heading-color: #616161;
	--button-color: #3fb0ff;
	--button-hover-color: #0151f0;
	--body-font-size: 15px;
	--para-font-size: 15px;
	--para-color: #212529;
	--input-font-size: 15px;
	--font-family: "Cabin", sans-serif;
	--outline-color: 0, 0, 0;
	--input-outline-color-1: 60, 66, 87;
	--input-outline-color-2: 58, 151, 212;
	--input-outline-color-3: #e0e0e0;
	--radio-btn-color: #8b8b8b;
	--radio-btn-background: #f9f9f9;
	--radio-btn-font-size: 14px;
	--border-color: #888888;
	--border-radius: 6px;
}

/*
 * Reset inside the Blink payment form only, so the theme's own spacing is left
 * alone. :where() keeps the reset at zero specificity, as the old global *
 * reset was, so it never wins over a rule that sets a margin on purpose.
 */
:where(.payment_method_blink) * {
	margin: 0;
	padding: 0;
}

:where(.payment_method_blink) *,
:where(.payment_method_blink) *::before,
:where(.payment_method_blink) *::after {
	box-sizing: border-box;
}


.text-center {
	text-align: center;
}

/***********************/
.payment_method_blink {
	/* background-color: var(--body-background); */
	font-family: var(--font-family);
	font-weight: 400;
	font-size: var(--body-font-size);
	font-weight: normal;
	line-height: 1.5;
}

.payment_method_blink p {
	line-height: normal;
	font-weight: 400;
	margin: 0 0 15px 0;
	font-size: var(--para-font-size);
	font-family: var(--font-family);
	line-height: 1.5;
	color: var(--para-color);
}

.payment_method_blink label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .payment_method_blink img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 30px; 
	border-radius: 0;
  }

.blink-payment-method-label,
.blink-payment-method-icons,
.blink-card-logos {
	display: inline-flex;
	align-items: center;
}

.blink-payment-method-label {
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

.blink-payment-method-icons {
	flex-shrink: 0;
	gap: 8px;
}

.blink-card-logos {
	gap: 4px;
}

.blink-card-logo {
	display: block;
	width: auto;
	height: 24px;
	max-height: 24px;
	border-radius: 0;
}

.payment_method_blink img.blink-card-logo {
	height: 24px;
	max-height: 24px;
}

.blink-payment-method-icon {
	display: block;
	width: auto;
	max-height: 30px;
	border-radius: 0;
}

@media (max-width: 480px) {

	.wc_payment_method.payment_method_blink > label[for="payment_method_blink"] {
		flex-wrap: wrap;
		gap: 8px;
	}

	.blink-payment-method-label {
		align-items: flex-start;
		flex-direction: column;
	}

	.blink-payment-method-icons {
		flex-wrap: wrap;
	}
}

.payment_method_blink .d-flex-center {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

.payment_method_blink .field-label {
	display: block;
	margin-bottom: 7px;
	color: var(--input-text-color);
	font-size: var(--input-font-size);
}

.payment_method_blink .fieldgroup-container {
	position: relative;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 15px;
}

.payment_method_blink .relative {
	position: relative;
}

.payment_method_blink .fieldgroup-child--width-12 {
	width: 100%;
}

.payment_method_blink .fieldgroup-child--width-8 {
	width: 75%;
}

.payment_method_blink .fieldgroup-child--width-6 {
	width: 48%;
}

.payment_method_blink .fieldgroup-child--width-4 {
	width: 25%;
}

.payment_method_blink .fieldgroup-child--width-12 .hostedfield-wrapper {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.payment_method_blink .fieldgroup-child--width-6 .hostedfield-wrapper {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.payment_method_blink .fieldgroup-child--width-6.child-left .hostedfield-wrapper {
	border-bottom-right-radius: 0;
}

.payment_method_blink .fieldgroup-child--width-6.child-right .hostedfield-wrapper {
	border-bottom-left-radius: 0;
}

.payment_method_blink .fieldgroup-child--width-8 input {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.payment_method_blink .fieldgroup-child--width-4 input {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.payment_method_blink .cards_icons {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--color-white);
	min-height: 20px;
	gap: 3px;
	z-index: 5;
}

.payment_method_blink .cards_icons img {
	width: 24px;
}

/*
 * One box style for every card form field: the hosted fields (Card Number,
 * Expiry, CVV), whose text is drawn inside an iframe, and the plain inputs such
 * as Name on Card. The font matches the one hostedfields.css sets inside the
 * iframes. 16px text at every screen size stops iOS zooming in on tap.
 */
.payment_method_blink .hostedfield-wrapper,
.payment_method_blink input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not(.hostedfield-input) {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 48px;
	padding: 0 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--input-text-color);
	background-color: var(--color-white);
	background-clip: padding-box;
	border: none;
	border-radius: var(--border-radius);
	box-shadow: 0 0 0 1px var(--input-outline-color-3),
	0 2px 4px 0 rgba(var(--outline-color), 0.07),
	0 1px 1.5px 0 rgba(var(--outline-color), 0.05);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/*
 * WooCommerce's classic payment list gives every input in it a right margin
 * (.woocommerce-checkout #payment ul.payment_methods li input), meant for the
 * payment method radios. That rule has an ID, so it beats the class-only rule
 * above and left Name on Card 1em narrower than the hosted fields on classic
 * checkout and the pay-for-order page. The ID here puts this rule ahead of it.
 */
#payment .payment_method_blink input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not(.hostedfield-input) {
	margin: 0;
}

.payment_method_blink .hostedfield-wrapper>div {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	width: 100%;
}

/* Focus is inside the iframe for hosted fields; the SDK marks the wrapper with hf-focus. */
.payment_method_blink .hostedfield-wrapper:hover,
.payment_method_blink .hostedfield-wrapper.hf-focus,
.payment_method_blink .hostedfield-wrapper:focus-within,
.payment_method_blink input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not(.hostedfield-input):hover,
.payment_method_blink input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not(.hostedfield-input):focus {
	border: none;
	outline: 0;
	box-shadow: rgba(var(--input-outline-color-2), 0.36) 0px 0px 0px 4px,
	rgba(var(--input-outline-color-1), 0.16) 0px 0px 0px 1px;
	z-index: 1;
}

.payment_method_blink .btn {
	border-radius: var(--border-radius);
	background-color: var(--button-color);
	font-size: 18px;
	line-height: 21px;
	color: var(--color-white);
	font-weight: 700;
	font-family: var(--font-family);
	padding: 15px;
	border: 0;
	width: 100%;
	height: 55px;
	text-transform: none;
	cursor: pointer;
}

.payment_method_blink .btn:hover,
.payment_method_blink .btn:focus {
	background-color: var(--button-hover-color);
	color: var(--color-white);
}

/*****21-05-24************/
.payment_method_blink .form-group .mb-4 {
	margin-bottom: 20px;
}

.fieldgroup-container.mb-4:empty {
	margin: 0;
}

.payment_method_blink .form-container {
	box-sizing: border-box;
	box-shadow: 0px 0px 8px 6px rgba(var(--outline-color), 0.02);
	background-color: var(--color-white);
	padding: 30px;
	border-radius: 10px;
	max-width: 500px;
	margin: 0 auto;
}

/*
 * Classic checkout and the pay-for-order page wrap each payment method in
 * WooCommerce's grey payment_box with an arrow. Blink's form brings its own
 * white card, so drop the box around it for Blink only.
 */
.woocommerce-checkout #payment div.payment_box.payment_method_blink {
	background: transparent;
	padding: 0;
}

.woocommerce-checkout #payment div.payment_box.payment_method_blink::before {
	display: none;
}

.payment_method_blink .switches-container {
	position: relative;
	display: flex;
	padding: 0;
	background: #fff;
	line-height: 3rem;
	border-radius: 10px;
	border: 2px solid #ced4da;
}

.payment_method_blink .switches-container input {
	visibility: hidden;
	position: absolute;
	top: 0;
}

.payment_method_blink .switches-container label {
	width: 33%;
	padding: 0;
	margin: 0;
	text-align: center;
	cursor: pointer;
	color: #000;
}

.payment_method_blink .switches-container.two label {
	width: 50%;
}

.payment_method_blink .switches-container.one {
	display: none;
}

/*
 * Google Pay puts its button in a plain <div> inside #container and sizes it
 * with its own stylesheet, so these rules need !important. The button is
 * .gpay-button, or .gpay-card-info-container (inside
 * .gpay-card-info-container-fill) when it shows the shopper's card. Only the
 * button and its wrappers are sized; the card art, placeholder and progress bar
 * inside the card version are left to Google.
 */
.payment_method_blink .blink-wallet[data-blink-wallet="google"] [id="container"] > div,
.payment_method_blink .blink-wallet[data-blink-wallet="google"] .gpay-card-info-container-fill {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0;
}

.payment_method_blink .blink-wallet[data-blink-wallet="google"] button,
.payment_method_blink .blink-wallet[data-blink-wallet="google"] .gpay-button,
.payment_method_blink .blink-wallet[data-blink-wallet="google"] .gpay-card-info-container {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	height: 44px !important;
	margin: 0;
}

.payment_method_blink .blink-wallet [id="apple-pay-btn"] {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	--apple-pay-button-width: 100%;
	--apple-pay-button-height: 44px;
}

.payment_method_blink .blink-wallet-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.payment_method_blink .blink-wallet {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
	padding: 0;
	float: none;
	position: static;
}

/*
 * Blocks adds .blink-wallet-element around Blink's markup; Classic inserts
 * it directly. Google Pay appends its button to #container, which is a sibling
 * of #blinkGooglePay rather than a child of it.
 */
.payment_method_blink .blink-wallet-element,
.payment_method_blink .blink-wallet [id="blinkApplePay"],
.payment_method_blink .blink-wallet [id="blinkGooglePay"],
.payment_method_blink .blink-wallet [id="container"] {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0;
	float: none !important;
	position: static !important;
}

/* Blink's wallet field groups contain only hidden inputs. */
.payment_method_blink .blink-wallet .fieldgroup-container {
	margin: 0 !important;
	padding: 0;
}

.payment_method_blink .switch-wrapper {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 33%;
	padding: 0;
	z-index: 3;
	transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.payment_method_blink .switch-wrapper.two {
	width: 50%;
}

.payment_method_blink .switch-wrapper.one {
	width: 100%;
}

.payment_method_blink .switch {
	border-radius: 8px;
	background: #2196f3;
	height: 100%;
}

.payment_method_blink .switch div {
	width: 100%;
	text-align: center;
	opacity: 0;
	display: block;
	color: #fff;
	transition: opacity 0.2s cubic-bezier(0.77, 0, 0.175, 1) 0.125s;
	will-change: opacity;
	position: absolute;
	top: 0;
	left: 0;
}

.payment_method_blink .switches-container input:nth-of-type(1):checked~.switch-wrapper {
	transform: translateX(0%);
}

.payment_method_blink .switches-container input:nth-of-type(2):checked~.switch-wrapper {
	transform: translateX(100%);
}

.payment_method_blink .switches-container input:nth-of-type(3):checked~.switch-wrapper {
	transform: translateX(204%);
}

.payment_method_blink .switches-container input:nth-of-type(1):checked~.switch-wrapper .switch div:nth-of-type(1),
.payment_method_blink .switches-container input:nth-of-type(2):checked~.switch-wrapper .switch div:nth-of-type(2),
.payment_method_blink .switches-container input:nth-of-type(3):checked~.switch-wrapper .switch div:nth-of-type(3) {
	opacity: 1;
	font-weight: 700;
}

@media (max-width: 767px) {
	.payment_method_blink .mb-4 {
	margin-bottom: 15px;
	}
}

@media (max-width: 575px) {
	.payment_method_blink .form-container {
	max-width: 100%;
	padding: 30px 15px;
	}

	.payment_method_blink .cards_icons {
	gap: 0;
	}

	.payment_method_blink .cards_icons img {
	width: 20px;
	}

	.payment_method_blink .switches-container {
	line-height: 2.5rem;
	border-radius: 8px;
	border: 1px solid #ced4da;
	}

	.payment_method_blink .switches-container label,
	.payment_method_blink .switch div {
	font-size: 13px;
	}
}

@media (max-width: 414px) {
	.payment_method_blink .cards_icons {
	top: -5px;
	right: 5px;
	border: 1px solid rgba(var(--input-outline-color-1), 0.16);
	border-radius: 4px;
	}
}

/*****New modified css**********/
.payment_method_blink .form-container {
	padding: 20px 15px;
}

.payment_method_blink .switches-container label,
.payment_method_blink .switch div {
	font-size: 13px;
}

.payment_method_blink .switches-container {
	height: 50px;
}

.payment_method_blink .switches-container label,
.payment_method_blink .switch div {
	display: flex;
	align-items: center;
	justify-content: center;
}

.payment_method_blink .switches-container label {
	line-height: 1.2;
}

.payment_method_blink .switch div {
	height: 100%;
	line-height: 1.2;
}

@media (max-width: 575px) {
	.payment_method_blink .switches-container {
	height: 40px;
	}
}

/* Preauthorization customer notice styles */
.blink-preauth-notice {
	background: #f0f6fc !important;
	border: 1px solid #c3d9ff !important;
	border-radius: 4px;
	padding: 15px;
	margin: 15px 0;
}

.blink-preauth-notice p {
	margin: 0;
}

.blink-preauth-notice p:first-child {
	font-weight: 600;
	color: #0073aa;
}

.blink-preauth-notice p:last-child {
	margin-top: 5px;
	color: #555;
}
