@import url("./login-register.css");

.woocommerce-account .woocommerce-MyAccount-navigation ul a br {
    display: none;
}

.account-header {
    margin-bottom: 24px;
}

.service-card {
    background: #ffffff;
    box-shadow: var(--shadow-small);
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    transition: all 0.3s var(--easing-standard);
}

@media screen and (max-width: 768px) {
    .service-card {
        margin-bottom: 0;
        padding: 16px;
    }
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    margin: 5px 0;
}

.service-card strong {
    font-weight: bold;
}

.active-service-card {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #D8D9DA;
    margin-bottom: 20px;
}

.active-service-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.active-service-card p {
    margin: 5px 0;
    font-size: 1.1em;
}

.service-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on desktop/tablet */
    gap: 16px;
    /* Space between the cards */
}

.service-card:hover {
    border-color: #ff4500;
}

/* For mobile devices, display 1 column */
@media (max-width: 768px) {
    .service-cards-container {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
        gap: 16px;
    }
}

.service-name-plan {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-name-plan h4 {
    margin-bottom: 0;
}

.paslauga_name {
    font-size: 15px;
    line-height: 20px;
}

.planas-name {
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -0.23px;
    text-transform: uppercase;
    color: #000;
}

.plan-mobile-number {
    background-color: #ff4500;
    padding: 4px 8px;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
}

.plan-period {
    padding-top: 12px;
}

.plan-period-item {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.plan-period-item-label {
    font-size: 15px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.56);
}

.plan-info {
    padding-bottom: 2px;
}

.plan-price-wrap {
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-content: center;
}

.plan-price-label {
    font-size: var(--font-size-small);
    line-height: 24px;
    color: rgba(0, 0, 0, 0.64);
}

.plan-price-cost {
    display: flex;
    align-items: center;
    gap: 2px;
}

.plan-price-cost-eur-symbol {
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: #000
}

.plan-price-cost-total {
    font-weight: var(--font-weight-semibold);
    color: #000;
    font-size: var(--font-size-h3-medium);
    line-height: var(--line-height-h3-meidum);
    letter-spacing: -0.25px
}

 /**Invoices ***/

 .gp-invoice-container {
    margin-bottom: 40px;
 }
 

 .current-invoices{
    margin-bottom: 0;
 }

    .past-invoices {
        gap: 12px;
    }

.gp-invoice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-10);
    padding-bottom: var(--space-10);
}

@media (max-width: 768px) {
    .gp-invoice-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
.gp-invoice-scroll-container {
    display: flex;
    gap: var(--space-10);
    overflow-x: auto;
    padding-bottom: var(--space-10);
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap; /* Ensure items stay in one row */
    white-space: nowrap; /* Prevent wrapping */
    scrollbar-width: thin; /* Makes scrollbar visible */
    max-width: 100%; /* Ensures it doesn't expand beyond parent */
}

.gp-invoice-card {
    background: #fff;
    border-radius: var(--border-radius-medium);
    padding: var(--space-10);
    box-shadow: var(--shadow-small);
    min-width: var(--container-width-base);
    scroll-snap-align: start;
}

.gp-invoice-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.gp-invoice-card p {
    margin: 4px 0;
}

.gp-invoice-card .gp-invoice-number {
    font-size: 15px;
}

p span.gp-invoice-month {
    font-size: 24px;
    line-height: 34px;
    font-weight: 500;
    color: #000;
}

p.amount-due-label {
    font-size: var(--font-size-small);
}

/* Invoice header with title and buttons */
.gp-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    padding: 10px 0;
}

.gp-invoice-header h4 {
    margin: 0;
}

.gp-invoice-buttons {
    display: flex;
    gap: 4px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
}

.gp-scroll-btn {
    color: black;
    border: none;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 8px;
    background: transparent;
    transition: background 0.3s ease-in-out;
}

.gp-scroll-btn:hover {
    color: #ff4500;
}

.gp-scroll-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
    padding: 10px;
}

.gp-scroll-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease-in-out;
}

/* When buttons are at limits, make them semi-transparent and disable pointer events */
.gp-scroll-btn[style*="pointer-events: none"] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Adding a hover effect when the button is active */
.gp-scroll-btn:not([style*="pointer-events: none"]) {
    transform: scale(1.1);
}

.gp-scroll-btn[style*="pointer-events: none"]:hover {
    transform: none;
}

/* Payment Buttons */
.gp-invoice-container-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.gp-invoice-container-title {
    flex: 1;
}

.gp-invoice-container-payments {
    flex-shrink: 0;
}

.gp-payment-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.gp-payment-amount {
    font-size: 18px;
    line-height: 26px;
    color: #000;
    margin-bottom: 8px;
    text-align: right;
}

.gp-payment-amount strong {
    font-weight: 700;
    font-size: 24px;
    color: #ff4500;
}

.gp-payment-buttons-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gp-payment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: #ff4500;
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-size: 17px;
    font-weight: 600;
    line-height: 23px;
    letter-spacing: -0.23px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.gp-payment-button:hover {
    background-color: #cc3700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 69, 0, 0.3);
    color: white;
}

.gp-payment-button:active {
    transform: translateY(0);
}

.gp-payment-tooltip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.gp-tooltip-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gp-tooltip-text {
    font-style: italic;
}

/* Account page payment section */
.gp-account-payment-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.gp-account-payment-section .gp-payment-buttons-container {
    align-items: flex-start;
}

.gp-account-payment-section .gp-payment-amount {
    text-align: left;
}

.gp-account-payment-section .gp-payment-buttons-wrapper {
    justify-content: flex-start;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gp-invoice-container-header {
        flex-direction: column;
        gap: 16px;
    }

    .gp-invoice-container-payments {
        width: 100%;
    }

    .gp-payment-buttons-container {
        align-items: flex-start;
        width: 100%;
    }

    .gp-payment-amount {
        font-size: 17px;
        line-height: 24px;
        text-align: left;
    }

    .gp-payment-amount strong {
        font-size: 22px;
    }

    .gp-payment-buttons-wrapper {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;
        justify-content: flex-start;
    }

    .gp-payment-button {
        flex: 1;
        min-width: 0;
        padding: 10px 16px;
        font-size: 15px;
        justify-content: center;
    }

    .gp-payment-tooltip {
        font-size: 12px;
    }
}

/* General Layout for larger screens (Desktop & Tablet) */
.login-register-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns layout for larger screens */
    gap: 30px; /* Adjust space between columns */
    width: 100%;
}

.login-register-page-banner {
    order: 1;
}

/* Tabs Layout */
#login-register-tabs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    align-items: center;
    order: 2;
}

.tabs {
    display: flex;
    width: fit-content;
    margin-bottom: 20px;
    overflow: hidden;
    border: 2px solid #ff4500;
    border-radius: 12px;
    transition: all 0.3s ease-in;
    padding: 2.5px;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    cursor: pointer;
    background-color: #f0f0f0;
    border-radius: 8px;
    font-size: 17px;
    line-height: 23px;
    letter-spacing: 0;
    font-weight: 500;
}

.tab-button.active {
    background-color: #ff4500;
    color: white;
}

.forms-container {
    width: 100%;
}

.form {
    display: none;  /* Hide both forms by default */
}

.form.active {
    display: block;  /* Show active form */
}

/* Mobile Layout (Single Column) */
@media (max-width: 768px) {
    /* Change grid layout to single column */
    .login-register-wrapper {
        grid-template-columns: 1fr; /* Switch to single column */
    }

    /* Stack the .login-register-container and .login-register-page-banner in different order */
    .login-register-container {
        order: 1; /* Move container below the banner */
    }

    .login-register-page-banner {
        order: 4; /* Move banner above the container */
        grid-column: 1 / -1; /* Ensure the banner spans the full width */
        min-height: auto; /* Allow the banner to adjust height */
    }

    /* Optional: Make the tabs fit better on mobile */
    .tabs {
        flex-direction: row; /* Stack tabs vertically */
        width: fit-content;
        margin-bottom: 15px; /* Reduced margin for mobile */
    }

    /* Form container width */
    .forms-container {
        width: 100%;
        max-width: 400px; /* Ensure forms don't stretch too wide */
        margin: 0 auto; /* Center the form */
    }

    /* Adjust tab button width */
    .tab-button {
        width: 100%; /* Make buttons take full width on mobile */
    }

    /* Optional: Adjust form padding for mobile */
    .woocommerce-form {
        padding: 15px;
    }
}

/* Remove white background from edit account forms */
.woocommerce-account .woocommerce form {
    background: transparent !important;
    background-color: transparent !important;
}

/* Style h2 tags on edit-address pages to be smaller like h3 */
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-EditAccountForm h2,
.woocommerce-account .u-column1.col-1 h2,
.woocommerce-account .u-column2.col-2 h2 {
    font-size: 1.17em !important;
    margin-bottom: var(--mb-base, 1rem) !important;
    font-weight: 600;
}

.form-row-big {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    /* Change grid layout to single column */
    .form-row-big {
        flex-direction: column;
        gap: 12px;
    }
}

.gp-empty-state-message {
    padding: 24px;
    border-radius: 12px;
    margin: 16px 0;
    background: #ffffff;
    box-shadow: var(--shadow-small);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.gp-empty-state-message p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.8);
}

/* GP Selfservice Login/Register Form Styles */

.gp-login-register-wrapper {
    display: block;
    width: 100%;
    max-width: 1410px;
    margin: 0 auto;
    padding: 0;
}

.gp-login-register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: var(--shadow-small);
}

.gp-login-register-grid > * {
    min-width: 0;
}

/* Remove empty paragraphs from grid */
.gp-login-register-grid > p:empty {
    display: none;
}

.gp-login-register-grid > p:not(:has(*)):not(:has(:not(br))) {
    display: none;
}

.gp-login-register-container {
    background: #ffffff;
    padding: 32px;
    width: 100%;
}

.gp-login-register-tabs {
    display: flex;
    width: fit-content;
    margin-bottom: 20px;
    overflow: hidden;
    border: 2px solid #ff4500;
    border-radius: 999px;
    padding: 2.5px;
}

.gp-login-register-tabs .tab-button {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
    border: none;
    border-radius: 999px;
    font-size: 17px;
    line-height: 23px;
    letter-spacing: 0;
    font-weight: 500;
    min-width: 120px;
    transition: all var(--duration-enter) var(--easing-standard);
}

.gp-login-register-tabs button br {
    display: none;
}

.gp-login-register-tabs .tab-button.active {
    background-color: #ff4500;
    color: white;
}

.gp-forms-container {
    width: 100%;
}

.gp-login-register-form {
    display: none;
}

.gp-login-register-form br {
    display: none;
}

.gp-login-register-form.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

.gp-login-register-form h2 {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 24px;
    color: #000;
}

.gp-form-row {
    margin-bottom: 20px;
}

.gp-form-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.gp-form-row input[type="text"],
.gp-form-row input[type="email"],
.gp-form-row input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    line-height: 24px;
    transition: all 0.3s ease;
}

.gp-form-row input[type="text"]:focus,
.gp-form-row input[type="email"]:focus,
.gp-form-row input[type="password"]:focus {
    border-color: #ff4500;
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.1);
    outline: none;
}

.gp-form-row .form-hint {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

.gp-form-submit {
    margin-top: 32px;
}

.gp-form-submit button {
    width: 100%;
    padding: 14px 24px;
    background-color: #ff4500;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gp-form-submit button:hover {
    background-color: #cc3700;
}

.gp-form-submit button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.gp-password-input-wrapper {
    position: relative;
}

.gp-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.gp-password-toggle:hover {
    color: #333;
}

.gp-password-requirements {
    margin-top: 16px;
    padding: 10px;
    background: #F9F3F0;
    border-radius: 8px;
}

.gp-requirement {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 13px;
    color: #666;
}

.gp-requirement.valid {
    color: #4CAF50;
}

.gp-requirement .dashicons {
    margin-right: 8px;
    font-size: 16px;
}

.gp-form-error {
    background: #fff2f2;
    border-left: 4px solid #dc3232;
    color: #721c24;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.gp-remember-me {
    display: flex;
    align-items: center;
    margin: 16px 0;
}

.gp-remember-me label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

/* Custom checkbox styling */
.gp-remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #333;
    border-radius: 4px;
    margin-right: 8px;
    padding: 0;
    cursor: pointer;
    position: relative;
    background-color: #ffffff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gp-remember-me input[type="checkbox"]:hover {
    border-color: #ff4500;
}

.gp-remember-me input[type="checkbox"]:checked {
    background-color: #000000;
    border-color: #000000;
}

.gp-remember-me input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gp-remember-me label span {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.gp-lost-password {
    text-align: center;
    margin-top: 16px;
}

.gp-lost-password a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.gp-lost-password a:hover {
    color: #ff4500;
}

/* Password strength and hint styling */
.gp-password-input-wrapper {
    display: block !important;
    width: 100%;
}

.gp-password-input-wrapper .password-input {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.woocommerce-password-strength {
    display: block !important;
    width: 100% !important;
    margin-top: 8px !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
}

.woocommerce-password-strength.short {
    background-color: #fee !important;
    border: 1px solid #fcc !important;
    color: #c33 !important;
}

.woocommerce-password-strength.bad {
    background-color: #fee !important;
    border: 1px solid #fcc !important;
    color: #c33 !important;
}

.woocommerce-password-strength.good {
    background-color: #ffffaa !important;
    border: 1px solid #ffec8b !important;
    color: #8b8000 !important;
}

.woocommerce-password-strength.strong {
    background-color: #c1e1b1 !important;
    border: 1px solid #83c373 !important;
    color: #0f5f0f !important;
}

.woocommerce-password-hint {
    display: block !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.5 !important;
}

/* Password Reset Confirmation */
/* Hide WooCommerce default notices on confirmation page */
.gp-login-register-wrapper + .woocommerce,
.gp-login-register-wrapper ~ .woocommerce {
    display: none;
}

.gp-password-reset-confirmation {
    text-align: center;
    padding: 40px 30px;
}

.gp-success-icon {
    margin: 0 auto 24px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-password-reset-confirmation h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.gp-password-reset-confirmation .confirmation-message {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 32px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.gp-password-reset-confirmation .gp-form-submit {
    margin-top: 32px;
}

.gp-password-reset-confirmation .gp-form-submit a {
    display: inline-block;
    padding: 12px 32px;
    background: #ff4500;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gp-password-reset-confirmation .gp-form-submit a:hover {
    background: #e63e00;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .gp-login-register-wrapper {
        padding: 20px;
    }

    .gp-login-register-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gp-login-register-container {
        padding: 24px;
        max-width: 100%;
    }

    .gp-form-row-big {
        flex-direction: column;
    }

    .gp-form-row-big > div {
        width: 100%;
    }

    .gp-login-register-tabs {
        width: 100%;
        margin-bottom: 24px;
    }

    .gp-login-register-tabs .tab-button {
        flex: 1;
        min-width: unset;
        padding: 10px 16px;
    }

    .gp-forms-container {
        width: 100%;
    }
}





/* Loading Spinner */
.gp-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: gp-spin 1s ease-in-out infinite;
}

@keyframes gp-spin {
    to { transform: rotate(360deg); }
}

.gp-form-notification {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

.gp-form-notification svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.gp-form-notification-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.gp-form-notification-success svg {
    color: #16a34a;
}

.gp-form-notification-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.gp-form-notification-error svg {
    color: #dc2626;
}

.gp-form-notification-info {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #075985;
}

.gp-form-notification-info svg {
    color: #0284c7;
}

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


