:root {
    --twg-hub-text: #000000;
    --twg-hub-muted: #9ca3af;
    --twg-hub-border: #e5e7eb;
    --twg-hub-accent: #000000;
    --twg-hub-error: #b42318;
    --twg-hub-success: #067647;
    --twg-hub-link: #000000;
    --twg-hub-white: #ffffff;
    --twg-hub-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.twg-hub-access-trigger{
    color: var(--twg-hub-link) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover{
    color: var(--twg-hub-link-hover);
}
a:focus{
    color: var(--twg-hub-link-active);
}
.twg-hub-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--twg-hub-font);
}

.twg-hub-modal[hidden] {
    display: none;
}

.twg-hub-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.twg-hub-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 720px);
    background: var(--twg-hub-white);
    padding: 0.5rem 0rem 3rem;
}

.twg-hub-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    background: transparent;
    color: var(--twg-hub-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
}

.twg-hub-modal__close:hover,
.twg-hub-modal__close:focus {
    color: var(--twg-hub-text);
}

.twg-hub-modal__tabs {
    display: flex;
    gap: 0rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--twg-hub-border);
    padding-bottom: 0;
}

.twg-hub-tab {
    flex: 0 0 auto;
    background: transparent;
    padding: 0.75rem 0 1rem;
    margin-bottom: -1px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--twg-hub-muted);
    width: 50%;
    text-align: center;
    opacity: 0.7;
}

.twg-hub-tab.is-active {
    color: var(--twg-hub-text);
    opacity: 1;
}

/* Elementor kit applies bottom-border-only styles to all buttons. */
.twg-hub-modal button.twg-hub-tab,
.twg-hub-modal button.twg-hub-tab:hover,
.twg-hub-modal button.twg-hub-tab:focus {
    border: 0 !important;
    border-style: none !important;
    border-width: 0 !important;
    border-bottom-width: 0 !important;
    border-color: transparent !important;
    padding: 1.5rem 0rem 2rem !important;
    text-decoration: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--twg-hub-muted) !important;
    opacity: 0.7;
    font-family: var(--twg-hub-font) !important;
}

.twg-hub-modal button.twg-hub-tab.is-active,
.twg-hub-modal button.twg-hub-tab.is-active:hover,
.twg-hub-modal button.twg-hub-tab.is-active:focus {
    border: 0 !important;
    border-bottom: 2px solid var(--twg-hub-text) !important;
    border-bottom-style: solid !important;
    border-bottom-width: 2px !important;
    border-bottom-color: var(--twg-hub-text) !important;
    padding: 0.75rem 0 1rem !important;
    text-decoration: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--twg-hub-text) !important;
    opacity: 1;
    font-family: var(--twg-hub-font) !important;
}

.twg-hub-modal button.twg-hub-tab:hover,
.twg-hub-modal button.twg-hub-tab:focus {
    background-color: var(--twg-hub-white) !important;
}

.twg-hub-tab-panel {
    display: none;
}

.twg-hub-tab-panel.is-active {
    display: block;
}

.twg-hub-panel__content {
    max-width: 520px;
    margin: 0 auto;
    padding-top: 3rem;
    text-align: center;
}

.twg-hub-panel__title {
    margin: 0 0 1rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--twg-hub-text);
}

.twg-hub-panel__intro {
    margin: 0 0 2.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--twg-hub-text);
}

.twg-hub-form {
    text-align: center;
}

.twg-hub-field {
    display: block;
    margin-bottom: 2rem;
    text-align: center;
}

.twg-hub-field__label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--twg-hub-text);
}

.twg-hub-input-underline {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: block;
    padding: 0.35rem 0 !important;
    border: 0;
    border-bottom: 1px solid var(--twg-hub-accent);
    border-radius: 0;
    background: transparent;
    font-size: 1rem;
    font-family: var(--twg-hub-font) !important;
    color: var(--twg-hub-text);
    text-align: left;
}

.twg-hub-input-underline:focus {
    outline: none;
    border-bottom-width: 2px;
}

.twg-hub-input-underline::placeholder {
    color: var(--twg-hub-text);
    opacity: 1;
}

.twg-hub-input-underline::-webkit-input-placeholder {
    color: var(--twg-hub-text);
    opacity: 1;
}

.twg-hub-input-underline::-moz-placeholder {
    color: var(--twg-hub-text);
    opacity: 1;
}

.twg-hub-checkbox {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.9rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.twg-hub-checkbox input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.twg-hub-form__actions {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.twg-hub-modal button.twg-hub-button-outline,
.twg-hub-modal button.twg-hub-button-outline:hover,
.twg-hub-modal button.twg-hub-button-outline:focus {
    display: inline-block;
    min-width: 140px;
    border: 1px solid var(--twg-hub-accent) !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-color: var(--twg-hub-accent) !important;
    padding: 0.65rem 2rem !important;
    text-decoration: none !important;
    background: var(--twg-hub-white) !important;
    color: var(--twg-hub-text) !important;
    font-size: 0.8rem;
    font-family: var(--twg-hub-font) !important;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    box-shadow: none !important;
    line-height: normal !important;
}

.twg-hub-button-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.twg-hub-lost-key {
    margin: 1.5rem 0 0;
}

.twg-hub-modal button.twg-hub-lost-key__link,
.twg-hub-modal button.twg-hub-lost-key__link:hover,
.twg-hub-modal button.twg-hub-lost-key__link:focus {
    border: 0 !important;
    border-width: 0 !important;
    border-bottom-width: 0 !important;
    padding: 0 !important;
    font-size: 0.95rem;
    text-decoration: underline !important;
    background: none !important;
    color: var(--twg-hub-text) !important;
    line-height: normal !important;
    cursor: pointer;
}

.twg-hub-form-message {
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.twg-hub-form-message.is-error {
    color: var(--twg-hub-error);
}

.twg-hub-form-message.is-success {
    color: var(--twg-hub-success);
}

.twg-hub-access-trigger {
    cursor: pointer;
    color: var(--twg-hub-text);
}

@media (max-width: 600px) {
    .twg-hub-modal__dialog {
        padding: 0.5rem 0rem 3rem;
    }

    .twg-hub-modal__tabs {
        gap: 0rem;
    }

    .twg-hub-tab {
        font-size: 0.65rem;
    }

    .twg-hub-panel__content {
        padding-top: 2rem;
    }

    .twg-hub-panel__title {
        font-size: 1.5rem;
    }
}
