.glasmo-contact-wrap {
    display: inline-flex;
    align-items: center;
}

.glasmo-contact-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #000;
    background: transparent;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0;
    margin: 0;
    line-height: 1;
    flex-shrink: 0;
}

.glasmo-contact-trigger:hover,
.glasmo-contact-trigger:focus-visible {
    background: #000;
    color: #fff;
    outline: none;
}

.glasmo-contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.glasmo-contact-overlay.active {
    opacity: 1;
    visibility: visible;
}

.glasmo-contact-popup {
    background: #fff;
    color: #000;
    max-width: 480px;
    width: calc(100% - 30px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.25s ease;
}

.glasmo-contact-overlay.active .glasmo-contact-popup {
    transform: translateY(0) scale(1);
}

.glasmo-contact-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #000;
    cursor: pointer;
    padding: 4px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.glasmo-contact-close:hover {
    opacity: 1;
}

.glasmo-contact-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 22px 0;
    padding-right: 30px;
    padding-bottom: 16px;
    line-height: 1.3;
    color: #000;
    border-bottom: 1px solid #e0e0e0;
}

.glasmo-contact-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.glasmo-contact-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.glasmo-contact-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.glasmo-contact-value {
    font-size: 14px;
    line-height: 1.6;
    color: #111;
}

.glasmo-contact-value a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.2s ease;
}

.glasmo-contact-value a:hover {
    border-color: #000;
}

@media (max-width: 480px) {
    .glasmo-contact-popup {
        padding: 24px 20px;
    }

    .glasmo-contact-title {
        font-size: 18px;
    }
}

@media (prefers-color-scheme: dark) {
    .glasmo-contact-trigger {
        border-color: #ddd;
        color: #ddd;
    }

    .glasmo-contact-trigger:hover,
    .glasmo-contact-trigger:focus-visible {
        background: #ddd;
        color: #111;
    }

    .glasmo-contact-overlay {
        background: rgba(0, 0, 0, 0.6);
    }

    .glasmo-contact-popup {
        background: #1a1a1a;
        color: #eee;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    }

    .glasmo-contact-close {
        color: #eee;
    }

    .glasmo-contact-title {
        color: #fff;
        border-bottom-color: #333;
    }

    .glasmo-contact-label {
        color: #777;
    }

    .glasmo-contact-value {
        color: #ddd;
    }

    .glasmo-contact-value a {
        color: #eee;
        border-bottom-color: #555;
    }

    .glasmo-contact-value a:hover {
        border-color: #eee;
    }
}

[data-theme="dark"] .glasmo-contact-trigger {
    border-color: #ddd;
    color: #ddd;
}

[data-theme="dark"] .glasmo-contact-trigger:hover,
[data-theme="dark"] .glasmo-contact-trigger:focus-visible {
    background: #ddd;
    color: #111;
}

[data-theme="dark"] .glasmo-contact-overlay {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .glasmo-contact-popup {
    background: #1a1a1a;
    color: #eee;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .glasmo-contact-close {
    color: #eee;
}

[data-theme="dark"] .glasmo-contact-title {
    color: #fff;
    border-bottom-color: #333;
}

[data-theme="dark"] .glasmo-contact-label {
    color: #777;
}

[data-theme="dark"] .glasmo-contact-value {
    color: #ddd;
}

[data-theme="dark"] .glasmo-contact-value a {
    color: #eee;
    border-bottom-color: #555;
}

[data-theme="dark"] .glasmo-contact-value a:hover {
    border-color: #eee;
}
