/* Tradelab Forms Styles */

.tradelab-registration,
.tradelab-login {
    max-width: 600px;
    margin: 20px auto;
    padding: 0;
}

.tradelab-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.tradelab-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
}

.tradelab-field {
    margin-bottom: 15px;
}

.tradelab-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.tradelab-field input[type="text"],
.tradelab-field input[type="email"],
.tradelab-field input[type="password"],
.tradelab-field input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.tradelab-field input[type="text"]:focus,
.tradelab-field input[type="email"]:focus,
.tradelab-field input[type="password"]:focus,
.tradelab-field input[type="url"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.tradelab-field input[readonly],
.tradelab-field input[disabled] {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.tradelab-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.tradelab-message.tradelab-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.tradelab-message.tradelab-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.tradelab-submit {
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.tradelab-submit.is-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.tradelab-field input[type="radio"] {
    margin-right: 8px;
}


.tradelab-field label:has(input[type="radio"]) {
    display: inline-block;
    margin-right: 20px;
    font-weight: normal;
    cursor: pointer;
}

/* Loading Overlay */
.tradelab-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.tradelab-registration,
.tradelab-login,
.tradelab-lost-password {
    position: relative;
    margin-top: 20px;
}

.tradelab-registration button,
.tradelab-login button,
.tradelab-lost-password button {
    background: #12658F !important;
    color: white !important;
    border: 2px solid #12658F !important;
    border-radius: 50px !important;
    transition: all .3s;
    padding: 15px 30px !important;
}

.tradelab-registration button:hover,
.tradelab-login button:hover,
.tradelab-lost-password button:hover {
    color: #12658F !important;
    background-color: white !important;
    border: 2px solid #12658F !important;
}

/* Lost password link */
.tradelab-lost-password-link,
.tradelab-back-to-login {
    margin-top: 15px;
    text-align: center;
}

.tradelab-lost-password-link a,
.tradelab-back-to-login a {
    color: #12658F;
    text-decoration: none;
    font-size: 14px;
}

.tradelab-lost-password-link a:hover,
.tradelab-back-to-login a:hover {
    text-decoration: underline;
}

.tradelab-privacy-content{
    line-height: 1.2;
    margin-bottom: 20px;
}
.tradelab-privacy-content small a {
    font-size: 80% !important;
}
.tradelab-extra-consents{
    margin-bottom: 20px;
}

.tradelab-extra-consents label.checkbox{
    line-height: 1.2 !important;
}

.tradelab-extra-consents label.checkbox a{
    font-size: 14px
}

.woocommerce-privacy-policy-text p{
    line-height: 1.5;
}
.woocommerce-privacy-policy-text a{
    font-size: 12px;
}

.tradelab-field.tradelab-checkbox label{
    display: flex;
    gap:10px;
    align-items: baseline;
    cursor: pointer;
}


.tradelab-loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: tradelab-spin 1s linear infinite;
}

.tradelab-checkout-section {
    margin: 20px 0;
    padding: 20px;
    background: #fffaf3;
    border-radius: 10px;
    border: 1px solid #f5eadb;
    color: black;
    line-height: 1.5;
}

.cart_item .product-total, .shop_table .product-total, .cart-subtotal td, .order-total td{
    text-align: right;
}
.fee td{
    text-align: right;
}
.e-checkout__order_review, .woocommerce-checkout-payment{
    border-radius: 10px;
}
#tradelab_delegation{
    border-radius: 10px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--e-global-color-3b5cda1);
}
.input-text.tradelab-calibration-input, .input-text.tradelab-calibration-input{
    font-size: 12px;
}
.tradelab-product-calibration{
    margin-bottom: 5px !important;
}

textarea[name="tradelab_return_address"] {
    border: 1px solid #e6d0b1;
}

.tradelab-return-options label {
    display: flex;
    margin-bottom: 8px;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.5;
    color: black;
}

@keyframes tradelab-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.tradelab-loading-overlay .loading-text {
    margin-left: 15px;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}
/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 5;
    transition: color 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
}

.password-toggle:hover {
    color: #12658F;
}

.password-wrapper input {
    padding-right: 40px !important;
}
