/* 「スマホでシェア」(共通)のモーダルと、スマホ側の専用ページ。pt_share.js とセットで使う。 */

.pt-share-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
}

.pt-share-overlay[hidden] {
    display: none;
}

.pt-share-modal {
    position: relative;
    width: 100%;
    max-width: 24rem;
    max-height: 92vh;
    overflow-y: auto;
    padding: 2rem 1.4rem 1.4rem;
    border-radius: 1rem;
    background: #fff;
    text-align: center;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.25);
}

.pt-share-modal h2 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
}

.pt-share-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

.pt-share-steps {
    margin: 0 0 0.6rem;
    padding-left: 1.3rem;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.7;
}

.pt-share-where {
    margin: 0.9rem 0 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pt-blue);
}

.pt-share-note {
    margin: 0.3rem 0;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #555;
}

.pt-share-note--small {
    margin-top: 0.8rem;
    font-size: 0.74rem;
    color: #777;
}

.pt-share-qr {
    display: block;
    width: 100%;
    max-width: 14rem;
    height: auto;
    margin: 0.5rem auto 0;
}

.pt-share-btn {
    display: inline-block;
    padding: 0.6rem 1.3rem;
    border: none;
    border-radius: 62.5rem;
    background: linear-gradient(90deg, var(--pt-blue-light), var(--pt-teal));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}

.pt-share-btn:hover {
    filter: brightness(1.08);
}

.pt-share-open {
    margin: 0.3rem 0;
}

/* スマホ側の専用ページ */
.pt-share-view__text {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid #d5dde6;
    border-radius: 0.8rem;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.pt-share-modal__label {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
}

.pt-share-view__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.pt-share-btn--big {
    padding: 1rem 1.4rem;
    font-size: 1.1rem;
}

.pt-share-btn--sub {
    background: #fff;
    border: 1px solid var(--pt-blue);
    color: var(--pt-blue);
    font-size: 0.9rem;
}

.pt-share-status {
    margin: 0.4rem 0;
    padding: 0.6rem 0.8rem;
    border-radius: 0.6rem;
    background: #fff8e1;
    border: 1px solid #f0d78c;
    color: #6b4a00;
    font-size: 0.85rem;
    line-height: 1.6;
}

.pt-share-status[hidden] {
    display: none;
}

.pt-share-error {
    padding: 0.9rem 1rem;
    border-radius: 0.6rem;
    background: #fff5f5;
    border: 1px solid #a1272a;
    color: #a1272a;
    line-height: 1.7;
}
