/* Create-a-Bouquet wizard */

.ff-cab {
    --ff-cab-green: #81ab49;
    --ff-cab-green-dark: #6e913f;
    --ff-cab-border: #e5e7eb;
    --ff-cab-text: #1f2937;
    --ff-cab-muted: #6b7280;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--ff-cab-text);
}

.ff-cab-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--ff-cab-border);
    padding-bottom: 0.75rem;
}

.ff-cab-progress-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 0;
    padding: 0.5rem 0.75rem;
    color: var(--ff-cab-muted);
    cursor: pointer;
    font-size: 0.875rem;
}

.ff-cab-progress-item:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.ff-cab-progress-item.is-active,
.ff-cab-progress-item.is-done {
    color: var(--ff-cab-green-dark);
    font-weight: 600;
}

.ff-cab-progress-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.75rem;
}

.ff-cab-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 960px) {
    .ff-cab-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
    }

    .ff-cab-summary {
        position: sticky;
        top: 1rem;
    }
}

.ff-cab-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.ff-cab-step-lead {
    color: var(--ff-cab-muted);
    margin: 0 0 1.25rem;
}

.ff-cab-presentation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    max-width: 666px;
    margin-inline: auto;
    justify-items: center;
}

.ff-cab-presentation-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    max-width: 206px;
    min-height: 200px;
    padding: 0.5rem;
    border: 1px solid #e6e6e6;
    background: #fff;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ff-cab-presentation-card:hover,
.ff-cab-presentation-card[aria-pressed="true"] {
    border-color: var(--ff-cab-green);
    box-shadow: 0 0 0 1px var(--ff-cab-green);
}

.ff-cab-presentation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 110px;
    background: none;
}

.ff-cab-presentation-svg {
    display: block;
    width: 100px;
    height: 100px;
}

.ff-cab-presentation-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: auto;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--ff-cab-green-dark);
    border-radius: 0.25rem;
    color: var(--ff-cab-green-dark);
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.2;
}

.ff-cab-presentation-check {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
    stroke: transparent;
}

.ff-cab-presentation-card[aria-pressed="true"] .ff-cab-presentation-label {
    background: var(--ff-cab-green);
    border-color: var(--ff-cab-green);
    color: #fff;
}

.ff-cab-presentation-card[aria-pressed="true"] .ff-cab-presentation-check {
    stroke: #fff;
}

@media (min-width: 640px) {
    .ff-cab-presentation-card {
        min-height: 250px;
        padding: 1rem;
    }

    .ff-cab-presentation-icon {
        height: 150px;
    }

    .ff-cab-presentation-svg {
        width: 140px;
        height: 140px;
    }

    .ff-cab-presentation-label {
        gap: 0.75rem;
        padding: 0.75rem 0.5rem;
        font-size: 1.15rem;
    }

    .ff-cab-presentation-check {
        width: 1rem;
        height: 1rem;
    }
}

@media (max-width: 520px) {
    .ff-cab-presentation-grid {
        grid-template-columns: 1fr;
        max-width: 220px;
    }
}

.ff-cab-flower-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.ff-cab-flower-card {
    position: relative;
    border: 1px solid var(--ff-cab-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ff-cab-flower-card.is-selected {
    border-color: var(--ff-cab-green);
    box-shadow: 0 0 0 1px var(--ff-cab-green);
}

.ff-cab-flower-card.is-recommended {
    border-color: #9bc561;
}

.ff-cab-flower-media {
    aspect-ratio: 1;
    background: #f3f4f6;
    overflow: hidden;
}

.ff-cab-flower-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ff-cab-flower-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eef6e4, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14%;
    box-sizing: border-box;
}

.ff-cab-flower-placeholder .ff-cab-flower-svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.ff-cab-flower-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.ff-cab-flower-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.ff-cab-flower-desc {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ff-cab-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ff-cab-flower-toggle {
    margin-top: auto;
    border: 0;
    background: var(--ff-cab-green);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.ff-cab-flower-card.is-selected .ff-cab-flower-toggle {
    background: var(--ff-cab-green-dark);
}

.ff-cab-recommend-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #fff;
    color: var(--ff-cab-green-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--ff-cab-green);
}

.ff-cab-recommend-badge.hidden {
    display: none;
}

.ff-cab-finalise-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ff-cab-block {
    border-top: 1px solid var(--ff-cab-border);
    padding-top: 1.25rem;
}

.ff-cab-block-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.ff-cab-block-title span {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ff-cab-green);
    color: #fff;
    font-size: 0.75rem;
}

.ff-cab-block-text {
    color: var(--ff-cab-muted);
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.ff-cab-foliage-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ff-cab-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--ff-cab-border);
    border-radius: 0.35rem;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
}

.ff-cab-field-label {
    display: block;
    font-weight: 600;
    margin: 0.75rem 0 0.35rem;
    font-size: 0.9rem;
}

.ff-cab-select,
.ff-cab-input {
    width: 100%;
    border: 1px solid var(--ff-cab-border);
    border-radius: 0.35rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
}

.ff-cab-or {
    text-align: center;
    color: var(--ff-cab-muted);
    margin: 0.75rem 0;
    font-size: 0.8rem;
}

.ff-cab-nav-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.ff-cab-btn {
    border: 0;
    border-radius: 0.35rem;
    padding: 0.75rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.ff-cab-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ff-cab-btn-primary {
    background: var(--ff-cab-green);
    color: #fff;
}

.ff-cab-btn-primary:hover:not(:disabled) {
    background: var(--ff-cab-green-dark);
}

.ff-cab-btn-secondary {
    background: #f3f4f6;
    color: var(--ff-cab-text);
}

.ff-cab-btn.hidden,
.ff-cab-panel[hidden] {
    display: none !important;
}

.ff-cab-error {
    margin-top: 1rem;
    color: #b91c1c;
    font-size: 0.9rem;
}

.ff-cab-error.hidden {
    display: none;
}

.ff-cab-summary {
    border: 1px solid var(--ff-cab-border);
    border-radius: 0.5rem;
    padding: 1rem;
    background: #fafafa;
}

.ff-cab-summary-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.ff-cab-summary-mood {
    display: block;
    font-size: 0.85rem;
    color: var(--ff-cab-green-dark);
    font-weight: 600;
}

.ff-cab-summary-preview {
    margin-bottom: 1rem;
    text-align: center;
}

.ff-cab-summary-preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    border-radius: 0.35rem;
    background: linear-gradient(135deg, #eef6e4, #f3f4f6);
    margin-bottom: 0.5rem;
}

.ff-cab-summary-preview-placeholder.is-filled {
    background: #fff;
    border: 1px solid var(--ff-cab-border);
}

.ff-cab-summary-preview-svg {
    display: block;
    width: 120px;
    height: 120px;
}

.ff-cab-summary-presentation-text {
    margin: 0;
    font-weight: 600;
    text-transform: capitalize;
}

.ff-cab-summary-list {
    margin: 0 0 1rem;
}

.ff-cab-summary-list > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--ff-cab-border);
    font-size: 0.85rem;
}

.ff-cab-summary-list dt {
    margin: 0;
    color: var(--ff-cab-muted);
    font-weight: 500;
}

.ff-cab-summary-list dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
}

.ff-cab-checkout-btn {
    width: 100%;
}

.ff-cab-date-info.hidden {
    display: none;
}

.ff-cab-empty {
    color: var(--ff-cab-muted);
}
