/* Start Header Home page */
.custom-top-header{
    height: 43px !important;
    padding: 8px 10px 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.custom-header-top {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    transition: transform 0.2s ease, background 0.2s ease;
}

.custom-header-top.is-scrolling {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-top-header__logo img {
    width: 102px;
    height: auto;
}
/* End Header Home page */

.form-row-first, .form-row-last {
    width: 100%;
}

.woocommerce-form-row, .woocommerce-FormRow{
    margin-bottom: 5px;
}
/* Start registration popup */
.popup-register{
    z-index: 99999999;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items:flex-start;
    justify-content: center;
}

.start-popup-register{
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-top: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    height: 100%;
    max-height: 750px;
    overflow-y: auto;
}

.popup-register-heading{
    font-size: 1.219rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.required{
    font-size: 0.75rem;
    color: red;
    display: none;
    margin-top: 5px;
}
.register-password-error{
    font-size: 0.75rem;
    color: red;
    display: none;
}


.close-popup-register{
    position: absolute!important;
    top: 17px;
    right: 10px;
    font-size: 20px!important;
    color: #aaa!important;
    background: unset!important;
}

.close-popup-register:hover{
    background: unset!important;
}

@media only screen and (max-width: 550px) {



    .start-popup-register{
        margin-top: 30px;
        padding: 15px;
    }

    .popup-register-heading{
        font-size: 1rem;
    }

    .close-popup-register{
        top: 5px;
    }
}

.woocommerce-privacy-policy-text {
    margin: 15px 0 15px 0
}

.woocommerce-privacy-policy-text p:first-child {
    display: none;
}


.am-wc-notices .woocommerce-error{
    margin-bottom: 10px;
    padding-block: 5px;
    font-size: 12px;
    line-height: 1.2;
}
/* End registration popup */

/* Start Login popup */
.popup-login{
    z-index: 99999999;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: flex-start;
    justify-content: center;
}

.start-popup-login{
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-top: 100px;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.popup-login-heading{
    font-size: 1.219rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.close-popup-login{
    position: absolute !important;
    top: 17px;
    right: 10px;
    font-size: 20px!important;
    color: #aaa!important;
    background: unset!important;
}

.close-popup-login:hover{
    background: unset!important;
}

@media only screen and (max-width: 550px) {

    .start-popup-login{
        margin-top: 50px;
    }

    .start-popup-login{
        padding: 15px;
    }

    .popup-login-heading{
        font-size: 1rem;
    }

    .close-popup-login{
        top: 5px;
    }
}

#popupLogin #customer_login label[for=username]{
    display: none;
}

#popupLogin #customer_login label[for=password]{
    display: none;
}


.register-link-wrap, .login-link-wrap{
    display: flex;
    gap: 3px;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.register-link-wrap p, .login-link-wrap p{
    margin-bottom: 0;
    font-size: 14px;
}

.register-link, .login-link{
    color: #4caf50;
    font-size: .875rem;
}

.woocommerce-privacy-policy-text a {
    color: #4caf50;
}

.am-login-msg{
    font-size: 13px;
    margin-bottom: 10px;
}


/* End Login popup */


p#form-row-phone{
    position: relative;

}

/*SMS*/
#sms_code_field{
    margin-bottom: 5px;
}


#sms_code_field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

#sms_code_field input {
    height: 38px;
    border-radius: 6px;
}

#send_sms_code {
    position: absolute;
    top: 6px;
    right: 15px;
    min-height: 30px;
    padding: 3px 9px 0 9px;
    background-color: #4CAF50;
    color: #fff;
    border:unset;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    /*margin-left: 10px;*/
    font-weight: 500;
}

#send_sms_code:hover {
    background-color: #43A047;
}



/* Birth year select styling */
.birth-year-wrap {
    position: relative;
    margin-bottom: 15px;
}


.am-select {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
}

/* Button */
.am-select__button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    font-size: 14px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 5px !important;
    background: #fff !important;
    cursor: pointer;
    min-height: 42px !important;
    font-weight: 100;
}


/* Value text */
.am-select__value {
    color: #777;
    line-height: 1.2;
    font-family: 'Agro-Regular', serif;
}

/* Dropdown */
.am-select__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    border: 1px solid #caced1;
    border-radius: 10px;
    background: #fff;
    list-style: none;
    padding: 8px;
    margin: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    max-height: 220px;
    overflow-y: auto;
    z-index: 99999;
}

/* Scrollbar */
.am-select__dropdown::-webkit-scrollbar { width: 7px; }
.am-select__dropdown::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 25px; }
.am-select__dropdown::-webkit-scrollbar-thumb { background: #ccc; border-radius: 25px; }

/* Items */
.am-select__option {
    padding: 6px 5px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 0;
}
.am-select__option:hover,
.am-select__option:focus {
    background: #f2f2f2;
}
.am-select__option.is-selected {
    background: #f5f7f9;
    font-weight: 600;
}

/* hidden helper */
.am-hidden {
    display: none;
}

.custom-select-wrapper select:hover,
.custom-select-wrapper select:focus {

    outline: none;
}

.am-select .select-icon {
    position: absolute;
    right: 12px;
    pointer-events: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-select .select-icon i {
    color: #4CAF50;
    font-size: 16px;
}


/* Gender */
/* Label */
label.am-label {
    font-size: 14px;
    font-weight: 100;
}
#form-row-gender { display: grid; }

.am-label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
}

/* Toggle wrapper */
.am-toggle {
    display: flex;
}

/* Buttons */
.am-toggle__btn {
    width: 100%;
    flex: 1;
    background: #fff !important;
    color: #777 !important;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px !important;
    transition: all 0.2s ease;
    font-family: 'Agro-Regular', serif;
    font-weight: 400;
}

.am-toggle__btn.btn__left {
    border-radius: 5px 0 0 5px !important;
}

.am-toggle__btn.btn__right {
    border-radius: 0 5px 5px 0 !important;
    border-left: 0;
}

.am-toggle__btn.is-active {
    background: #e8f5e9 !important;
    border: 1px solid #4caf50 !important;
    color: #2f6d31 !important;
}

.am-toggle.active-left-btn  .btn__left,
.am-toggle.active-right-btn .btn__right {
    background: #e8f5e9 !important;
    border: 1px solid #4caf50 !important;
    color: #2f6d31 !important;
}

/* Hover/focus QoL */
.am-toggle__btn:focus-visible {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

@media (max-width: 550px) {
    .am-toggle__btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}




#custom-reg-btn{
    width: 100%;
    font-weight: 500;
}

.woocommerce-form-login__submit{
    width: 100%;
    font-weight: 500;
}

.login-form-footer{
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
}

.woocommerce-LostPassword.lost_password{
    color: #4caf50;
    font-size: 14px;
}

.woocommerce-form__label span {
    font-size: 14px;
}

.woocommerce-form__label-for-checkbox{
    display: flex;
    align-items: center;
    cursor: pointer;
}
.woocommerce-form__input-checkbox{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    accent-color: #4caf50;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #4caf50;
    background-color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.woocommerce-form__input-checkbox[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 10px;
    line-height: 23px;
    background-color: rgb(76, 175, 80);
    color: rgb(255, 255, 255);
    font-family: auto, sans-serif;
    border-radius: 4px;
}


#password_strength{
    margin: 2px 0 0 0;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    line-height: 15px;
}

small.woocommerce-password-hint{
    padding: 5px 8px;
}

.password-input{
    position: relative !important;
}
.show-password-input{
    position: absolute !important;
    color: #333333 !important;
    background: unset !important;
    right: 0;
}

.show-password-input::before{
    font-family: "woodmart-font";
    content: "\f11a";
}


.count-views-shortcode{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
}
.count-views-shortcode i{
    color: #4caf50;
}

.agro-posted-date{
    font-size: 13px;
    color: #6c757d;
}


.agro-sort-wrap {
    display:inline-block;
    position:relative;
}
.agro-orderby-select {
    padding:10px 12px;
    border-radius:10px;
    border:1px solid #e5e7eb;
    background:#fff;
    font-size:14px;
    line-height:1.2;
    cursor:pointer;
}

select#agro-orderby {
    font-size: 14px;
    color: #000;
}


.agro-custom-wishlist-wrapper .wd-wishlist-head{
    display: none;
}

.agro-custom-wishlist-wrapper .products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap:20px;
}


.agro-custom-wishlist-wrapper .wd-product .product-wrapper {
    border-radius: 5px !important;
}

@media only screen and (max-width: 1500px){
    .agro-custom-wishlist-wrapper .products {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0,1fr)) !important;
        gap:20px;
    }
}

@media only screen and (max-width: 1280px){
    .agro-custom-wishlist-wrapper .products {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0,1fr))!important;
        gap:20px;
    }
}

@media only screen and (max-width: 768px){
    .agro-custom-wishlist-wrapper .products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0,1fr))!important;
        gap:20px;
    }
}

@media only screen and (max-width: 458px){
    .agro-custom-wishlist-wrapper .products {
        display: grid !important;
        grid-template-columns: repeat(1, minmax(0,1fr))!important;
        gap:20px;
    }
}