.randomizer-card {
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.randomizer-top {
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 95, 95, 0.12), rgba(255, 201, 120, 0.22));
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.randomizer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #8b2f2f;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.randomizer-title {
    margin: 14px 0 6px;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 900;
    color: #111827;
}

.randomizer-copy {
    color: #4b5563;
    line-height: 1.65;
    font-size: 0.96rem;
}

.randomizer-body {
    padding: 20px;
    display: grid;
    gap: 16px;
}

.randomizer-form {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.randomizer-field {
    display: grid;
    gap: 8px;
}

.randomizer-field label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.randomizer-field select {
    appearance: none;
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
}

.randomizer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.randomizer-button {
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff5f5f, #ff9270);
    color: white;
    padding: 13px 18px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.98rem;
    font-weight: 900;
    cursor: pointer;
}

.randomizer-note {
    font-size: 0.82rem;
    color: #6b7280;
}

.randomizer-result {
    display: grid;
    gap: 14px;
}

.randomizer-empty {
    border: 1px dashed #d1d5db;
    border-radius: 18px;
    padding: 18px;
    color: #6b7280;
    background: #f9fafb;
}

.randomizer-plan {
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #fff6f3);
    border: 1px solid #f1d7d2;
    display: grid;
    gap: 12px;
}

.randomizer-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.randomizer-plan-header h3 {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: #111827;
}

.randomizer-plan-area {
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.88rem;
}

.randomizer-plan-badge {
    flex-shrink: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #f2c9c0;
    color: #8b2f2f;
    font-size: 0.75rem;
    font-weight: 800;
}

.randomizer-plan-summary {
    color: #374151;
    font-size: 0.96rem;
    line-height: 1.65;
}

.randomizer-plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.randomizer-plan-chip {
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 700;
}

.randomizer-plan-why {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #f2dfd7;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9rem;
}

.randomizer-plan-why strong {
    color: #111827;
}

.randomizer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.randomizer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
}

.randomizer-fallback {
    color: #9a3412;
    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .randomizer-plan-header {
        flex-direction: column;
    }

    .randomizer-button {
        width: 100%;
    }
}

/* Home widget variant: let the photo header behave like the other media widgets */
.home-randomizer-widget .randomizer-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.home-randomizer-widget .randomizer-body {
    padding: 18px 0 0;
}
