@import url("surveys/survey-styles.css");

.css-spinner-drawing, .css-spinner-member  {
    float: right;
    margin-left: 7px;
    border: 5px solid #f3f3f3; 
    border-top: 5px solid #DCAE1D; 
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
w
.my-block {
    display: block;
}
/* standardizes styles for forms around the site. */
.membership-form label, .membership-form button {
    margin-top: 7px;
    margin-bottom: 5px;
}
.membership-form button {
    margin-top: 7px;
    display: block;
}
.one-third {
    display: inline-flex; /* to make them display inline */
    flex-direction: column; /* stack the label on top of the input field */
    width: calc(32% - 10px); /* 33.33% for 1/3 and subtracting margin */
    margin-right: 10px; /* some spacing between each .one-third element */
}

.one-third:last-child {
    margin-right: 0; /* ensure the last element doesn't have a margin */
}

.one-half {
    display: inline-flex;
    flex-direction: column; /* stack the label on top of the input field */
    width: calc(48% - 10px); /* 33.33% for 1/3 and subtracting margin */
    margin-right: 10px; /* some spacing between each .one-third element */
    
}
.one-half:last-child {
    margin-right: 0; /* ensure the last element doesn't have a margin */
}

.manage-members-submit {
    float: left;
}
.manage-members-delete {
    float: right;
    margin-left: -10px;
    background-color: #DCAE1D !important;
}
.manage-members-delete:hover {
    float: right;
    
    background-color: red !important;
}


/* creates a nice looking toggle button */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #2196F3;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
}

/* Gray out a field */
textarea[readonly] {
    background-color: #ebebeb;
}

#users-list h5 {
    margin-top: 25px;
    margin-bottom: 0px;
    color: #00303F;
}

#users-list hr {
    border: 1px solid #DCAE1D;
}

#users-list button {
    font-weight: bold;
    background-color: #7A9D96;
    color: #FFF ;
    border: none;
    -webkit-transition: background-color 250ms linear;
    -ms-transition: background-color 250ms linear;
    transition: background-color 250ms linear;
}
#users-list button:hover {
    font-weight: bold;
    background-color: #00303F;
    color: #FFF ;
    border: none;
    -webkit-transition: background-color 250ms linear;
    -ms-transition: background-color 250ms linear;
    transition: background-color 250ms linear;
}

/* Alert Styles  */
.swal2-title {
    text-transform: capitalize;
}


/* Accordian Styles  */
.accordion-item {
    margin-top: 2px;
}
.accordion-content {
    display: none;
    overflow: hidden;
    padding-bottom: 20px;
}

.accordion-title {
    padding: 5px 10px 1px 10px;
    cursor: pointer;
    border-radius: 5px;
    background-color: #CAE4DB; 
    -webkit-transition: background-color 250ms linear;
    -ms-transition: background-color 250ms linear;
    transition: background-color 250ms linear;
}

.accordion-title:hover {
    padding: 10px;
    cursor: pointer;
    background-color: #e2f1ec;
    -webkit-transition: background-color 250ms linear;
    -ms-transition: background-color 250ms linear;
    transition: background-color 250ms linear;
}
.accordion-title h4 {
    color: #00303F;
    position: relative;
}
.accordion-icon {
    color: #00303F;
    float: right;
}

.manage-pagination {
    font-size: 22px;
}

/*  Site Settings */
.select2-container--default .select2-selection--multiple {
    width: 300px;
}
.select2-dropdown {
    width: 300px !important;
}


/* My Account Styles */
/* Remove default list styling */
.woocommerce-MyAccount-navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* Style the navigation items */
.woocommerce-MyAccount-navigation ul li {
    border-radius: 7px;
    background: #CAE4DB; /* Background color */
    color: #00303F !important; /* Text color */
    font-size: 1.5rem;
    padding: 10px;
    position: relative;
    margin-bottom: 2px;
}
.woocommerce-MyAccount-navigation ul li:hover {
    background: #e2f1ec; /* Background color */
}
.woocommerce-MyAccount-navigation ul li a {
    color: #00303F;
    text-decoration: none;
}

.woocommerce-MyAccount-content > p:not(.custom-user-meta) {
    display: none;
}

/* Style the active navigation item */
.woocommerce-MyAccount-navigation ul li.is-active {
    background: #CAE4DB;
    border-color: #ccc;
}

/* Additional style for the active navigation item to create a right-pointing arrow */
.woocommerce-MyAccount-navigation ul li.is-active:after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-left-color: #00303F; /* Arrow color */
}

#customer_details .col-1 {
    width: 100%;
}

.download-item {
    float: left;
    display: block;
    padding: 5px;
}
.download-item button {
    border: none;
    color: #fff;
    background-color: #7A9D96 !important;
    text-decoration: none;
}

.download-item button:hover {
    color: #fff;
    background-color: #c36;
    text-decoration: none;
}

/* CSS for Floating Gear Icon */
.admin-gear-icon {
    position: fixed;
    right: 10px; /* Position from the right */
    top: 10px;   /* Position from the top */
    font-size: 24px;
    background-color: #555;
    color: #fff;
    padding: 15px; /* Adjusted padding */
    z-index: 9999;
    display: none; /* Hidden by default */
}

/* Display the icon for admins and super admins */
body.show-admin-gear .admin-gear-icon {
    display: block;
}


/* Woo styles */
.woocommerce-billing-fields h3 {
    display: none;
    
}


/* Marketing Email Pages */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    width: 640px; /* Total width including padding */
}

#emailPreviewModal .modal-content {
    max-height: 80vh;
    width: 600px; /* Width of the content area */
    margin: 15px auto; /* Center the content within the modal */
    overflow-y: auto; /* Add scrollbars if content is larger than the modal */
}

.modal-footer {
    text-align: right;
}

/* Responsive adjustments */
@media screen and (max-width: 640px) {
    .modal, .modal-content {
        width: 100%; /* Full width on smaller screens */
        max-width: none; /* Override any max-width settings */
        margin: 0; /* Remove margin on smaller screens */
        padding: 10px; /* Adjust padding for smaller screens */
        box-sizing: border-box; /* Include padding in the width calculation */
    }
}
