.tsl-login-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tsl-btn-gap, 12px);
    justify-content: center;
    margin-bottom: 12px;
}
.tsl-login-page-wrapper {
    max-width: 320px;
    margin: 18px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
}
.tsl-login-page-wrapper .tsl-login-buttons {
    width: 100%;
    max-width: 292px;
    margin: 0 auto;
}

.tsl-login-buttons.tsl-equal {
    display: grid;
    grid-template-columns: repeat(var(--tsl-cols, 4), minmax(0, 1fr));
    align-items: stretch;
}

.tsl-style-icon {
    display: grid;
    grid-template-columns: repeat(var(--tsl-cols, 5), max-content);
    gap: var(--tsl-btn-gap, 12px);
    justify-content: center;
    justify-items: var(--tsl-btn-align, center);
    text-align: var(--tsl-btn-align, center);
}
.tsl-style-icon.tsl-align-left {
    justify-content: flex-start;
}
.tsl-style-icon.tsl-align-right {
    justify-content: flex-end;
}

.tsl-login-title {
    width: 100%;
    text-align: center;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0f172a;
}

.tsl-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: var(--tsl-btn-padding, 12px) 18px;
    border-radius: var(--tsl-btn-radius, 30px);
    background: var(--tsl-btn-bg, #111827);
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
    justify-content: var(--tsl-btn-justify, center);
    text-align: var(--tsl-btn-align, center);
}

    color: #fff;
    text-decoration: none;
}

.tsl-button-icon {
    width: var(--tsl-icon-size, 20px);
    height: var(--tsl-icon-size, 20px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tsl-button img {
    width: var(--tsl-icon-size, 20px) !important;
    height: var(--tsl-icon-size, 20px) !important;
    max-width: none;
    max-height: none;
}
.tsl-button img.tsl-custom-icon {
    height: auto !important;
    max-height: var(--tsl-icon-size, 20px) !important;
    width: var(--tsl-icon-size, 20px) !important;
    object-fit: contain;
}

.tsl-button-label {
    color: var(--tsl-label-color, #ffffff);
    font-size: var(--tsl-label-font-size, 15px);
    font-weight: 500;
    transition: color 0.18s ease;
}

.tsl-button:hover .tsl-button-label {
    color: var(--tsl-label-hover, var(--tsl-label-color, #ffffff));
}

.tsl-button-no-label .tsl-button-label {
    display: none;
}

.tsl-button-no-label {
    min-width: auto;
    padding: calc(var(--tsl-btn-padding, 12px));
    justify-content: center;
    gap: 0;
}
.tsl-style-icon .tsl-button,
.tsl-style-icons .tsl-button {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    width: var(--tsl-icon-size, 25px);
    height: var(--tsl-icon-size, 25px);
    text-align: var(--tsl-btn-align, center);
    justify-self: var(--tsl-btn-align, center);
}
.tsl-style-icon .tsl-button-no-label,
.tsl-style-icons .tsl-button-no-label {
    padding: 0;
}
.tsl-style-icon .tsl-button-no-label {
    padding: 0;
}

.tsl-button.small {
    padding: 6px 12px;
    font-size: 13px;
}

.tsl-button:hover,
.tsl-button:focus {
    opacity: 0.95;
    transform: translateY(-1px);    
}

.tsl-button[disabled],
.tsl-button[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.tsl-style-icons .tsl-button {
    padding: 0;
    border-radius: var(--tsl-btn-radius, 20px);
}

.tsl-style-icons .tsl-button .tsl-button-label {
    display: none;
}
.tsl-style-icon .tsl-button {
    padding: 0;
}

.tsl-style-buttons .tsl-button {
    background: linear-gradient(135deg, var(--tsl-btn-bg-start, #2563eb) 0%, var(--tsl-btn-bg-end, #1d4ed8) 100%);
    color: var(--tsl-btn-text, #ffffff);
    border: 2px solid var(--tsl-btn-border, rgba(255,255,255,0.12));
    box-shadow: none;
    text-align: var(--tsl-btn-align, center);
    min-width: unset;
    min-height: 44px;
    font-weight: 700;
    box-sizing: border-box;
    letter-spacing: 0.01em;
}
.tsl-style-buttons .tsl-btn-shape-square {
    border-radius: 0;
}
.tsl-style-buttons .tsl-btn-shape-rounded {
    border-radius: 14px;
}
.tsl-style-buttons .tsl-btn-shape-pill {
    border-radius: 999px;
}
.tsl-style-buttons .tsl-btn-preset:hover,
.tsl-style-buttons .tsl-button:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.tsl-style-text .tsl-button .tsl-button-icon {
    display: none;
}

.tsl-button-icon{
    width: var(--tsl-icon-size, 20px);
    height: var(--tsl-icon-size, 20px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    flex-shrink: 0;
}

.tsl-view-vertical {
    flex-direction: column;
    align-items: flex-start;
}

.tsl-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    width: 100%;
}

.tsl-align-left {
    justify-content: flex-start;
}

.tsl-align-center {
    justify-content: center;
}

.tsl-align-right {
    justify-content: flex-end;
}
.tsl-align-space-between {
    justify-content: space-between;
}
.tsl-align-space-around {
    justify-content: space-around;
}
.tsl-align-space-evenly {
    justify-content: space-evenly;
}

.tsl-more {
    position: relative;
}

.tsl-more-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
    z-index: 20;
}

.tsl-more-menu[hidden] {
    display: none;
}

.tsl-login-form {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.tsl-login-form-column {
    flex: 1 1 320px;
}

.tsl-linked-accounts {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.tsl-linked-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.tsl-linked-row:last-child {
    border-bottom: 0;
}

.tsl-linked-accounts .tsl-provider-actions {
    display: flex;
    justify-content: flex-end;
}

.tsl-linked-accounts .tsl-provider-actions .tsl-button {
    min-width: 160px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 999px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.tsl-linked-accounts .tsl-provider-actions .tsl-button.small {
    padding: 10px 18px;
    font-size: 14px;
}

.tsl-linked-accounts .tsl-provider-actions .tsl-connect {
    background: radial-gradient(circle at 30% 20%, #1f2937 0%, #0b1220 70%);
    border-color: #0b1220;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tsl-linked-accounts .tsl-provider-actions .tsl-connect:hover,
.tsl-linked-accounts .tsl-provider-actions .tsl-connect:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tsl-linked-accounts .tsl-provider-actions .tsl-disconnect {
    background: rgba(255, 241, 242, 0.9);
    border-color: rgba(239, 68, 68, 0.35);
    color: #b91c1c;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tsl-linked-accounts .tsl-provider-actions .tsl-disconnect:hover,
.tsl-linked-accounts .tsl-provider-actions .tsl-disconnect:focus {
    transform: translateY(-1px);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tsl-linked-accounts .tsl-provider-actions .tsl-disconnect[disabled] {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(148, 163, 184, 0.45);
    color: #64748b;
    box-shadow: none;
}

.tsl-provider-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tsl-provider-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.tsl-linked-status {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.tsl-flash {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #059669;
    color: #fff;
    padding: 12px 16px;
    border-radius: 4px;
    z-index: 9999;
}

.tsl-flash.tsl-error {
    background: #dc2626;
}

.tsl-woocommerce-links {
    margin-top: 24px;
}

.tsl-link-account-button {
    text-align: center;
}
