/* Copyright Phuture Me limited 2026 */

.phuture-picker-method-bar {
    align-items: center;
    background: rgba(255, 255, 250, 0.94);
    border: 1px solid rgba(70, 55, 45, 0.18);
    border-radius: 999px;
    color: #2d2723;
    display: none;
    gap: 0.45rem;
    justify-content: center;
    margin: 0.8rem auto;
    max-width: 390px;
    padding: 0.45rem 0.65rem 0.45rem 1rem;
    position: relative;
    z-index: 100;
}

.phuture-picker-method-bar strong {
    margin-right: auto;
}

.phuture-picker-change {
    background: #5c3c71;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    padding: 0.5rem 0.9rem;
}

.phuture-picker-change:disabled {
    cursor: default;
    opacity: 0.5;
}

.phuture-picker-progress {
    font-size: 0.85rem;
    opacity: 0.76;
}

.phuture-picker-notice {
    background: #fff4d6;
    border: 1px solid #d8b86d;
    border-radius: 8px;
    color: #4b3b1b;
    display: none;
    margin: 0.7rem auto;
    max-width: 580px;
    padding: 0.7rem 1rem;
}

.phuture-picker-dialog {
    align-items: center;
    background: rgba(27, 22, 30, 0.52);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 1rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100000;
}

.phuture-picker-sheet {
    background: #f6f5fa;
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(30, 22, 35, 0.3);
    color: #1b171e;
    max-width: 560px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.phuture-picker-sheet h2 {
    font-size: 1.45rem;
    margin: 0;
    padding: 1.3rem 4rem 1.1rem;
    text-align: center;
}

.phuture-picker-sheet-intro {
    color: #68626b;
    margin: -0.45rem 1.4rem 1rem;
    text-align: center;
}

.phuture-picker-close {
    background: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.7rem;
    height: 2.7rem;
    line-height: 1;
    position: absolute;
    right: 0.9rem;
    top: 0.8rem;
    width: 2.7rem;
    z-index: 2;
}

.phuture-picker-options {
    background: #fff;
    border-radius: 18px;
    margin: 0 1.2rem 1.3rem;
    overflow: hidden;
}

.phuture-picker-option {
    align-items: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e5e2e6;
    color: inherit;
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 1rem;
    padding: 1rem;
    text-align: left;
    width: 100%;
}

.phuture-picker-option:last-child {
    border-bottom: 0;
}

.phuture-picker-option:hover,
.phuture-picker-option:focus,
.phuture-picker-option.is-selected {
    background: #f5eff9;
    outline: 0;
}

.phuture-picker-option.is-selected {
    box-shadow: inset 4px 0 #6f4a87;
}

.phuture-picker-option img {
    border-radius: 12px;
    flex: 0 0 112px;
    height: 86px;
    object-fit: cover;
    width: 112px;
}

.phuture-picker-option-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.phuture-picker-option-description {
    color: #777079;
    display: block;
    line-height: 1.35;
}

body.phuture-picker-open {
    overflow: hidden;
}

.phuture-spread-preview {
    box-sizing: border-box;
    display: none;
    margin: 1rem auto 0;
    max-width: 740px;
    padding: 0 1rem;
    width: 100%;
}

.phuture-spread-preview h3 {
    color: inherit;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.45rem;
    text-align: center;
}

.phuture-spread-preview-canvas {
    aspect-ratio: 703 / 800;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: auto;
    margin: 0 auto;
    max-width: 703px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.phuture-spread-slot {
    background: transparent;
    border: 0;
    box-sizing: border-box;
    position: absolute;
    transform-origin: center;
}

.phuture-preview-card {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

#deckcontainer.phuture-fanned-deck {
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

#deckcontainer.phuture-fanned-deck > div {
    cursor: pointer;
    transform-origin: 50% 100%;
    transition: transform 220ms ease;
    user-select: none;
    will-change: left, top, transform;
}

#deckcontainer.phuture-fanned-deck a,
#deckcontainer.phuture-fanned-deck img {
    display: block;
    height: 100%;
    width: 100%;
}

.phuture-flying-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    padding: 0;
    pointer-events: none;
    position: fixed;
    transition: left 450ms ease-in-out, top 450ms ease-in-out, width 450ms ease-in-out, height 450ms ease-in-out, transform 450ms ease-in-out;
    z-index: 100001;
}

@media (max-width: 520px) {
    .phuture-picker-option img {
        flex-basis: 88px;
        height: 74px;
        width: 88px;
    }

    .phuture-picker-option-title {
        font-size: 1.05rem;
    }

    .phuture-picker-option-description {
        font-size: 0.9rem;
    }

    .phuture-picker-method-bar {
        border-radius: 16px;
        flex-wrap: wrap;
        margin-left: 0.6rem;
        margin-right: 0.6rem;
    }

    .phuture-picker-progress {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .phuture-flying-card,
    #deckcontainer.phuture-fanned-deck > div {
        transition-duration: 1ms !important;
    }
}
