#login-slideout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: none;
}

#login-slideout-overlay.is-visible {
    display: block;
}
.mot-log-accordion {
    height: 80%;
}
#login-slideout {
    position: fixed;
    top: 0;
    right: -100%;
    width: 30%;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    transition: transform 0.3s ease, right 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    #login-slideout {
        width: 80%; 
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #login-slideout {
        width: 50%; 
    }}

#login-slideout.is-open {
    right: 0;
}

.mot-log-slideout-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 20px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.mot-log-slideout-logo {
    margin-bottom: 15px;
    max-width: 150px;
}

.mot-log-slideout-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.mot-log-slideout-title {
    font-size: 18px;
    margin-bottom: 0px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.4;
}

.mot-log-slideout-close-btn-outer {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #333;
    font-size: 1.8rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease;
}

.mot-log-slideout-close-btn-outer:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.log-accordion-title {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    font-weight: bold;
}

.log-accordion-title:hover {
    background: #eee;
}

.log-accordion-content.is-visible {
    display: block;
}

p.bb-login-description, p.bb-register-description, #register-section p#polityka_prywatnosci_field label, #register-section p#polityka_prywatnosci_field, #register-section p#regulamin_field label, #register-section p#regulamin_field, #register-section p, #login-section label {
    font-size: 0.8em;
}

.woocommerce-form h3.bb-register-subtitle,
.woocommerce-form h3.bb-login-subtitle {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.log-accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s ease;
}

.log-accordion-title:hover {
    background: #eee;
}

.log-accordion-title .accordion-icon {
    width: 20px;
    height: 20px;
    fill: #333;
    transition: transform 0.3s ease;
}

.log-accordion-title[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);

}

.log-accordion-content {
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.log-accordion-content.is-visible {
    padding-bottom: 100px;
}

/* Checkbox layout - ONLY for login slideout */
#login-slideout .woocommerce form .form-row label.checkbox,
#login-slideout .woocommerce-page form .form-row label.checkbox,
#login-slideout label.checkbox {
    font-size: 0.7em !important;
    text-align: justify !important;
    display: flex !important;
    align-items: flex-start !important;
    flex-direction: row !important;
    gap: 10px !important;
    line-height: 1.5em !important;
}

#login-slideout .woocommerce form .form-row label.checkbox input[type="checkbox"],
#login-slideout .woocommerce-page form .form-row label.checkbox input[type="checkbox"],
#login-slideout label.checkbox input[type="checkbox"] {
    margin: 0.3em 0 0 0 !important;
    flex-shrink: 0 !important;
}

#login-slideout .woocommerce form .form-row label.checkbox a,
#login-slideout .woocommerce-page form .form-row label.checkbox a,
#login-slideout label.checkbox a {
    font-weight: bold !important;
    color: var(--accent, #5cb85c) !important;
}

#login-slideout .woocommerce form .form-row label.checkbox abbr.required,
#login-slideout .woocommerce-page form .form-row label.checkbox abbr.required,
#login-slideout label.checkbox abbr.required {
    color: var(--accent, #5cb85c) !important;
    border: none !important;
    text-decoration: none !important;
}

/* Read More functionality for checkboxes */
#login-slideout .checkbox-text-wrapper {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.checkbox-text-content {
    max-height: 3em;
    overflow: hidden;
    line-height: 1.5em;
    transition: max-height 0.3s ease;
    position: relative;
    display: block;
    text-align: justify;
}

.checkbox-text-content.expanded {
    max-height: 500px;
}

.checkbox-text-wrapper:not(.expanded-wrapper)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}

.checkbox-text-wrapper.expanded-wrapper::after {
    display: none;
}

.checkbox-read-more {
    display: block;
    color: var(--accent, #5cb85c);
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    margin-top: 8px;
    text-decoration: none;
    transition: color 0.2s ease;
    text-align: left;
}

.checkbox-read-more:hover {
    color: var(--accent-dark, #4a9a4a);
    text-decoration: underline;
}

.checkbox-read-more::after {
    content: ' ▼';
    font-size: 0.75em;
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.checkbox-read-more.expanded::after {
    transform: rotate(180deg);
}

form.woocommerce-form.woocommerce-form-login.login {
    display: flex;
    flex-direction: column;

}

#login-section input[type="text"],
#login-section input[type="email"],
#login-section input[type="password"],
#login-section input[type="button"],
#login-section textarea,
#login-section select,
#register-section input[type="email"],
button.woocommerce-button.button.woocommerce-form-login__submit,
button.woocommerce-Button.woocommerce-button.button.woocommerce-form-register__submit, 
#login-section p.form-row.form-row-first,
#login-section p.form-row.form-row-last {
    width: 100% !important;
}
button.woocommerce-button.button.woocommerce-form-login__submit {
    margin-top: 10px;
}
.woocommerce form .form-row label,
.woocommerce-page form .form-row label,
p.woocommerce-LostPassword.lost_password,
label.checkbox.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox {
    font-size: 0.8em;
    font-weight: 500;
}

/* Benefits Section */
.mot-log-benefits {
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 10px;
    margin: 20px;
    border: 1px solid #e9ecef;
}

.mot-log-benefits-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.mot-log-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mot-log-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.mot-log-benefit-item .benefit-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent, #5cb85c);
}

.mot-log-benefit-item span {
    flex: 1;
}

/* Social Media Section */
.mot-log-social {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.mot-log-social-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.mot-log-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mot-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    color: #333;
}

.mot-social-link:hover {
    background: var(--accent, #5cb85c);
    border-color: var(--accent, #5cb85c);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mot-social-link:hover svg {
    fill: #fff;
}

.mot-social-link svg {
    width: 20px;
    height: 20px;
    fill: #333;
    transition: fill 0.3s ease;
}

/* AJAX Messages */
.ggsolutions-ajax-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ggsolutions-ajax-message.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.ggsolutions-ajax-message.error p {
    margin: 0;
    padding: 0;
    font-weight: 500;
}

.ggsolutions-ajax-message.success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.ggsolutions-ajax-message.success p {
    margin: 0;
    padding: 0;
    font-weight: 500;
}

/* Loading state for buttons */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive adjustments for slideout */
@media (max-width: 768px) {
    .mot-log-slideout-logo {
        max-width: 120px;
    }

    .mot-log-slideout-title {
        font-size: 16px;
    }

    .mot-log-benefits {
        margin: 15px;
        padding: 20px 15px;
    }

    .mot-log-benefit-item {
        font-size: 13px;
    }

    .mot-log-social-links {
        gap: 10px;
    }

    .mot-social-link {
        width: 36px;
        height: 36px;
    }

    .mot-social-link svg {
        width: 18px;
        height: 18px;
    }

    .ggsolutions-ajax-message {
        font-size: 13px;
        padding: 10px 12px;
    }

    .checkbox-read-more {
        font-size: 0.85em;
    }

    #login-slideout .woocommerce form .form-row label.checkbox,
    #login-slideout .woocommerce-page form .form-row label.checkbox,
    #login-slideout label.checkbox {
        font-size: 0.65em !important;
        gap: 8px !important;
    }
}
