.glasmo-returns {
    margin: 12px 0;
}

.glasmo-returns-trigger {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.glasmo-returns-trigger:hover {
    opacity: 0.6;
}

.glasmo-returns-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-returns-overlay.active {
    opacity: 1;
    visibility: visible;
}

.glasmo-returns-popup {
    background: #fff;
    color: #000;
    max-width: 560px;
    width: calc(100% - 30px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 36px;
    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-returns-overlay.active .glasmo-returns-popup {
    transform: translateY(0) scale(1);
}

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

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

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

.glasmo-returns-content {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.glasmo-returns-content p { margin: 0 0 12px 0; }
.glasmo-returns-content p:last-child { margin-bottom: 0; }
.glasmo-returns-content ul,
.glasmo-returns-content ol { margin: 0 0 12px 0; padding-left: 20px; }
.glasmo-returns-content a { color: #000; text-decoration: underline; }
.glasmo-returns-content h3,
.glasmo-returns-content h4 { margin: 18px 0 8px 0; font-weight: 600; }

@media (max-width: 480px) {
    .glasmo-returns-popup { padding: 24px 20px; }
    .glasmo-returns-title { font-size: 18px; }
}

@media (prefers-color-scheme: dark) {
    .glasmo-returns-trigger { color: #ddd; }
    .glasmo-returns-overlay { background: rgba(0, 0, 0, 0.6); }
    .glasmo-returns-popup { background: #1a1a1a; color: #eee; box-shadow: 0 12px 48px rgba(0,0,0,0.4); }
    .glasmo-returns-close { color: #eee; }
    .glasmo-returns-title { color: #fff; border-bottom-color: #333; }
    .glasmo-returns-content { color: #ccc; }
    .glasmo-returns-content a { color: #eee; }
}

[data-theme="dark"] .glasmo-returns-trigger { color: #ddd; }
[data-theme="dark"] .glasmo-returns-overlay { background: rgba(0, 0, 0, 0.6); }
[data-theme="dark"] .glasmo-returns-popup { background: #1a1a1a; color: #eee; box-shadow: 0 12px 48px rgba(0,0,0,0.4); }
[data-theme="dark"] .glasmo-returns-close { color: #eee; }
[data-theme="dark"] .glasmo-returns-title { color: #fff; border-bottom-color: #333; }
[data-theme="dark"] .glasmo-returns-content { color: #ccc; }
[data-theme="dark"] .glasmo-returns-content a { color: #eee; }
