/**
 * assets/css/auth-modal.css
 * Копіювати у /wp-content/themes/{тема}/assets/css/auth-modal.css
 */

.sf-auth-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}
.sf-auth-overlay.is-open {
	display: flex;
}

.sf-auth-modal {
	position: relative;
	background: #fff;
	border-radius: 1.4rem;
	padding: 2.5rem 2.5rem 2rem;
	width: 100%;
	max-width: 34rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.sf-auth-modal__close {
	position: absolute;
    top: -1rem;
    right: -0.8rem;
    background: none;
    border: none;
    font-size: 3rem;
    line-height: 1;
    color: #221e1b;
    cursor: pointer;
}
.sf-auth-modal__close:hover {
	color: var(--sf-green, #2fa84f);
}

.sf-auth-modal__title {
	text-align: center;
	font-size: 1.6rem;
	font-weight: 700;
	color: #221E1B;
	margin: 0 0 1.8rem;
	text-transform: uppercase;
}

.sf-auth-form {
	display: flex;
	flex-direction: column;
}

.sf-auth-field {
	margin: 0 0 1rem;
}
.sf-auth-input {
	width: 100%;
	border: 1px solid #d7e6db;
	border-radius: 0.6rem;
	padding: 0.9rem 1.1rem;
	font-size: 1rem;
	color: #221E1B;
	box-sizing: border-box;
}
.sf-auth-input:focus {
	outline: none;
	border-color: var(--sf-green, #2fa84f);
}

.sf-auth-note {
	font-size: 0.9rem;
	color: #626262;
	margin: 0 0 1rem;
}

.sf-auth-form__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.5rem 0 0.5rem;
	flex-wrap: wrap;
}
.sf-auth-form__row--end {
	justify-content: flex-end;
}
.sf-auth-form__link {
	color: #626262;
	font-size: 0.9rem;
	text-decoration: underline;
}
.sf-auth-form__link:hover {
	color: var(--sf-green, #2fa84f);
}

.sf-auth-submit {
	cursor: pointer;
    border: .2rem solid #32a951;
    border-radius: .4rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 400;
    padding: .6rem 2.3rem .6rem;
    color: #221e1b;
    background: transparent;
}
.sf-auth-submit:hover {
	background: #32a951;
	border: .2rem solid #32a951;
}

.sf-auth-switch {
	text-align: center;
	font-size: 0.9rem;
	color: #626262;
	margin: 1.2rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid #eef3ef;
}
.sf-auth-switch a {
	color: var(--sf-green, #2fa84f);
	text-decoration: underline;
	font-weight: 600;
}

/* повідомлення про помилки, які WooCommerce додає нативно (invalid nonce,
   wrong password тощо) — вони приходять як звичайні <ul class="woocommerce-error"> */
.sf-auth-modal .woocommerce-error,
.sf-auth-modal .woocommerce-message {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
	border-radius: 0.6rem;
	font-size: 0.9rem;
}
.sf-auth-modal .woocommerce-error {
	background: #fdeceb;
	color: var(--sf-red, #e6483f);
}
.sf-auth-modal .woocommerce-message {
	background: #eafbef;
	color: var(--sf-green, #2fa84f);
}











@media (max-width: 767px) {  


.sf-auth-modal {
    max-width: 420px;
    padding: 20px;
}

.sf-auth-modal__close {
    font-size: 20px;
}

.sf-auth-modal__title {
    font-size: 18px;
}

.sf-auth-input {
    font-size: 14px;
}

.sf-auth-note {
    font-size: 10px;
    color: #626262;
    margin: 0 0 1rem;
}

.sf-auth-submit {
    cursor: pointer;
    border: 2px solid #32a951;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
    padding: 5px 14px;
    color: #221e1b;
    background: transparent;
}

.sf-auth-switch {
    font-size: 10px;
}

.sf-auth-form__link {
    color: #626262;
    font-size: 10px;
    text-decoration: underline;
}









}