/*
Theme Name: Steelthemes Nest Child
Author: Steelthemes
Description: Nest is a Ecommerce wordpress Theme.
Version: 1.0
Template: steelthemes-nest

This is the child theme for Steelthemes Nest theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

/* General styling for the popup container */

.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}
.custom-popup-container {
    display: none; /* Initially hidden */
    flex-direction: row; /* Row direction for side-by-side layout */
    padding: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 700px;
    width: 100%;
    border-radius: 8px;
    align-items: stretch; /* Ensure both sides stretch to equal height */
}

/* Styling for the image part of the popup */
.custom-popup-container .popup-image {
    flex: 1; /* Allow image to take equal space */
    overflow: hidden; 
    width:30%;
}

.custom-popup-container .popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the entire area */
    border-radius: 8px 0 0 8px;
}

/* Styling for the form section */
.custom-popup-container .popup-form {
    flex: 1; /* Allow form to take equal space */
    padding: 20px;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: flex-start;
    min-height: 435px;
    width: 70%;
}

/* Styling for the tab buttons */
.custom-popup-container .form-tabs {
    display: flex;
    margin-bottom: 20px;
    width: 100%;
    background: lightgray;
}

.custom-popup-container .form-tabs span {
    flex: 1;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    background: lightgray;
    transition: background 0.3s ease;
    text-align: center;
}
.custom-popup-container .form-tabs span.active:first-child {
	clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}
.custom-popup-container .form-tabs span:last-child {
	clip-path: polygon(5% 0%, 100% 0, 100% 100%, 0 100%);
}
.custom-popup-container .form-tabs span.active {
    background: green;
    color: white;
}

/* Styling for form groups */
.custom-popup-container .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.custom-popup-container .form-group label {
    margin-right: 10px;
    font-size: 18px;
}

.custom-popup-container .form-group input[type="email"],
.custom-popup-container .form-group input[type="password"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.custom-popup-container .form-group input[type="email"]:focus,
.custom-popup-container .form-group input[type="password"]:focus {
    border-color: green;
}

/* Styling for checkbox and forgot password link */
.custom-popup-container .form-group input[type="checkbox"] {
    margin-right: 10px;
}

.custom-popup-container .form-group .forgot-password {
    margin-left: auto;
    color: green;
    text-decoration: none;
}

.custom-popup-container .form-group .forgot-password:hover {
    text-decoration: underline;
}
.custom-popup-container span.close {
    position: absolute;
    right: -10px;
    width: 20px;
    height: 20px;
    background: red;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    line-height: 16px;
    color: #fff;
    font-weight: 600;
    top: -10px;
}

/* Styling for the sign-in button */
.custom-popup-container .sign-in-button, .custom-popup-container .sign-up-button {
    padding: 10px 20px;
    background: green;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.custom-popup-container .sign-in-button:hover {
    background: darkgreen;
}
.woocommerce-checkout .custom-popup-container span.close {
    display: none;
}
.backtocart {
    background: none;
    color: #333;
    width: 100%;
    margin-top: 10px;
    border: 2px solid #7e7e7e;
    text-transform: uppercase;
    padding: 7px 20px;
    display: none;
}
.backtocart:hover {
    background: none;
    color: #7e7e7e;
}
.woocommerce-checkout .custom-popup-container .backtocart {
    display: block;
}
body:not(.logged-in) .header-action-icon-2 .cart-dropdown-wrap.account-dropdown {
    display: none;
}
.login-tab, .signup-tab {
    display: none;
}
.login-tab.active, .signup-tab.active {
    display: block;
}
.form-group {
    margin-bottom: 15px;
}
.form-group input{height:auto;width: 100%;}
.form-group label {
    display: inline-block;
    margin-right: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: calc(100% - 50px);
    padding: 10px;
    border: 1px solid #ccc;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
}

.forgot-password {
    float: right;
    text-decoration: none;
}

.sign-in-button, .sign-up-button {
    display: block;
    width: 100%;
    padding: 10px;
    background: darkgray;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sign-in-button:hover, .sign-up-button:hover {
    background: gray;
}

.wc-block-checkout__payment-method .wc-block-components-radio-control__option .wc-block-components-radio-control__input{
    position: static;
    display: inline-block;
    vertical-align: middle;
    margin-top: 8px !important;
}
.wc-block-components-radio-control__option-layout {
    display: inline-block !important;
    width: auto !important;
    vertical-align:top;
}