/* Shared "share this map" modal (see share-modal.js) - loaded on both the map page and
   the main site, so it must not depend on either page's own theme. */
#orm-share-modal .modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

#orm-share-modal .btn-close {
    font-size: 12px;
}

/* Fixed box, centering the placeholder/QR inside it - the QR's actual rendered size varies
   by a few pixels (see share-modal.js), so a fixed container avoids a layout shift on swap. */
.share-qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    margin: 0 auto 10px;
}

.share-qr-container svg {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 6px;
    background: #fff;
    shape-rendering: crispEdges;
}

@keyframes share-qr-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.share-qr-placeholder {
    background: #f4f4f4;
    border: 1px solid #eee;
    border-radius: 4px;
    animation: share-qr-pulse 1.2s ease-in-out infinite;
}

.share-hint {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.share-url-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px 8px;
    margin-bottom: 10px;
    text-align: center;
}

.share-btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.share-btn-copy,
.share-btn-native {
    font-size: 13px;
    padding: 6px 18px;
    border-radius: 3px;
    cursor: pointer;
}

.share-btn-copy {
    background-color: #72b026;
    color: white;
    border: none;
}

.share-btn-native {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}
