.pp-ai-prompt {
    margin: 0 0 24px;
    padding: 20px;
    background: #fef9f3;
    border-radius: 16px;
    box-shadow: 0 0 0 1px #f0d9b5;
}

.pp-ai-prompt__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #5a3e1b;
    margin: 0 0 6px;
}

.pp-ai-prompt__intro {
    font-size: 14px;
    line-height: 1.5;
    color: #7a5028;
    margin: 0 0 12px;
    text-wrap: pretty;
}

.pp-ai-prompt__text {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #0d2642;
    background: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 0 0 1px #f0d9b5;
    resize: none;
    overflow-y: auto;
}

.pp-ai-prompt__text:focus {
    outline: none;
    box-shadow: 0 0 0 2px #e8760a;
}

.pp-ai-prompt__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 148px;
    margin-top: 12px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #e8760a;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition-property: background-color, transform;
    transition-duration: 150ms;
}

.pp-ai-prompt__copy:hover,
.pp-ai-prompt__copy:focus-visible {
    background: #c96308;
}

.pp-ai-prompt__copy:active {
    transform: scale(0.97);
}

.pp-ai-prompt--home-bottom {
    margin-top: 32px;
}

.pp-ai-prompt-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
}

.pp-ai-prompt-entry__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #7a5028;
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition-property: color, text-decoration-color;
    transition-duration: 150ms;
}

.pp-ai-prompt-entry__toggle:hover {
    color: #c96308;
    text-decoration-color: currentColor;
}

.pp-ai-prompt-entry__toggle:focus-visible {
    outline: 2px solid #e8760a;
    outline-offset: 2px;
}

.pp-ai-prompt-entry__icon {
    flex-shrink: 0;
}

.pp-ai-prompt--hero {
    width: 100%;
    max-width: 720px;
    margin: 8px auto 0;
    text-align: left;
}

@media (max-width: 767px) {
    .pp-ai-prompt {
        padding: 16px;
    }

    .pp-ai-prompt__text {
        font-size: 16px;
    }

    .pp-ai-prompt__copy {
        width: 100%;
    }
}

/* #358: the box the hero card grows in, the sparkles from the wand and the light that sweeps over the card */
.pp-ai-prompt-entry {
    position: relative;
}

.pp-ai-prompt-reveal {
    width: 100%;
    max-width: 720px;
    overflow: hidden;
}

.pp-ai-prompt-reveal > .pp-ai-prompt--hero {
    box-sizing: border-box;
}

.pp-ai-sparkle {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    background: currentColor;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    will-change: transform, opacity;
}

.pp-ai-sparkle--dot {
    clip-path: none;
    border-radius: 50%;
    scale: 0.55;
    box-shadow: 0 0 8px 2px currentColor;
}

.pp-ai-prompt--hero {
    position: relative;
    overflow: hidden;
}

.pp-ai-prompt--hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 236, 190, 0.85) 48%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 236, 190, 0.85) 52%, transparent 70%);
    transform: translateX(-110%);
    opacity: 0;
}

.pp-ai-prompt--hero.is-shimmering::after {
    animation: pp-ai-shimmer 900ms 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes pp-ai-shimmer {
    0% {
        transform: translateX(-110%);
        opacity: 1;
    }

    100% {
        transform: translateX(110%);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-ai-prompt--hero.is-shimmering::after {
        animation: none;
    }
}
