.bluthem_composer {
    /* padding: 4rem 1.5rem; */
    /* background: #f7f9fc; */
    margin: 40px auto;
}

/* .bluthem_composer-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(29, 52, 97, 0.08);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
} */

.bluthem_composer-header {
    text-align: center;
    margin-bottom: 15px;
}

.bluthem_composer-title {
    font-size: 28px;
    color: #1b2a4b;
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.bluthem_composer-subtitle {
    margin: 0;
    color: #4b5a75;
    font-size: 1rem;
}

.bluthem_step-indicator {
    display: flex;
    justify-content: center;
    /* gap: 1.5rem; */
    list-style: none;
    margin: 0;
    padding: 30px 0px;
    /* gap: 10rem; */
    --bluthem-step-indicator-size: 42px;
    --bluthem-step-indicator-line: 4px;
}

.bluthem_step-indicator-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: #8a96b1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    transition: color 0.3s ease;
    flex: 0 0 150px;
    position: relative;
}

.bluthem_step-indicator-item span:last-child {
    text-align: center;
}

.bluthem_step-indicator-item::after,
body.rtl .bluthem_step-indicator-item::before {
    content: "";
    position: absolute;
    top: 22px;
    left: calc(50% + (var(--bluthem-step-indicator-size) / 2) + 5px );
    width: calc(100% - (var(--bluthem-step-indicator-size) + 10px) );
    height: var(--bluthem-step-indicator-line);
    background: #f3f9ff;
    transform: translateY(-50%);
    z-index: 0;
}

.bluthem_step-indicator-item:last-child::after {
    display: none;
}

.bluthem_step-indicator-item.is-complete::after {
    background: #1b2a4b;
}

.bluthem_step-indicator-count {
    width: var(--bluthem-step-indicator-size);
    height: var(--bluthem-step-indicator-size);
    border-radius: 50%;
    background: #fef4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5a75;
    font-weight: 700;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.bluthem_step-indicator-item.is-active .bluthem_step-indicator-count{
    background: #1b2a4b;
    color: #ffffff;
    transform: scale(1.05);
}
.bluthem_step-indicator-item.is-complete .bluthem_step-indicator-count {
    background-color: #f3f9ff;
    color: #1b2a4b;
}

.bluthem_step-indicator-item.is-active,
.bluthem_step-indicator-item.is-complete {
    color: #1b2a4b;
}

.bluthem_steps {
    display: grid;
    max-width: 1000px;
    margin: auto;
}

.bluthem_step {
    display: none;
}

.bluthem_step.is-active {
    display: block;
}

.bluthem_step-title {
    font-size: 1.5rem;
    color: #1b2a4b;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.bluthem_card-grid {
    display: grid;
    gap: 1.5rem;
    /* grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); */
    grid-template-columns: repeat(3, 1fr);
}

.bluthem_selection-card {
    background: #ffffff;
    /* border: 3px solid transparent; */
    border-radius: 20px;
    overflow: hidden;
    /* box-shadow: 0 12px 24px rgba(27, 42, 75, 0.08); */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100%;
    border-radius: 16px;

    border: 2px solid #F4F4F4;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.bluthem_selection-card:focus-within {
    outline: 2px solid #2A395A;
    outline-offset: 4px;
}

.bluthem_selection-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
}

.bluthem_selection-card[hidden] {
    display: none !important;
}

.bluthem_selection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(27, 42, 75, 0.16);
}

.bluthem_selection-card.is-selected {
    border-color: #2A395A;
}

.bluthem_selection-media {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
}

.bluthem_selection-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bluthem_selection-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f2f4fa 0%, #e4e8f5 100%);
}

.bluthem_selection-content {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}
.bluthem_step[data-step="type"] .bluthem_selection-content {
    text-align: center;
}
.bluthem_step[data-step="review"] {
    border-radius: 12px;
    border: 1px solid #E9E9E9;
    max-width: 900px;
    margin: auto;
    width: 100%;
}

.bluthem_step[data-step="review"]  .bluthem_step-title {
    text-align: left;
  background-color: #fef4f4;
  padding: 10px 15px;
  margin-top:0px;
}
.bluthem_selection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.bluthem_selection-title {
    margin: 0;
    font-size: 1.1rem;
    color: #1b2a4b;
    font-weight: 700;
}

.bluthem_selection-description {
    margin: 0;
    color: #4b5a75;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bluthem_selection-price {
    margin: 0;
    font-weight: 700;
    color: #1f4b9a;
}

.bluthem_selection-badge {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    background: #fef4f4;
    color: #1b2a4b;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    display: none;
}

.bluthem_selection-card.is-selected .bluthem_selection-badge {
    display: inline-flex;
}

.bluthem_flower-colors {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.bluthem_flower-color {
    display: flex;
    align-items: center;
    border-radius: 14px;
    justify-content: space-between;
}

.bluthem_color-media {
    width: 56px;
    /* height: 56px; */
    border-radius: 16px;
    overflow: hidden;
    /* background: #e0e6f3; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bluthem_color-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bluthem_color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d9dce6;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    display: inline-block;
    border: 1px solid #1b2a4b;
}

.bluthem_color-name {
    font-weight: 600;
   color: #1b2a4b;
}

.bluthem_flower-quantity {
    display: block;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    position: relative;
    width: 110px;
}

.bluthem_flower-quantity-button {
    /* width: 28px;
    height: 28px; */
    border-radius: 999px;
    border: 0px solid #dce2f2;
    background: transparent;
    color: #1b2a4b;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    display: block;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: absolute;
    margin: 5px;
    top: 0px;
    padding: 7px;
}
.bluthem_flower-quantity-button:first-of-type{
    left:0;
}
.bluthem_flower-quantity-button:last-of-type{
    right:0;
}

.bluthem_flower-quantity-button:focus-visible {
    outline: 2px solid #2a395a;
    outline-offset: 1px;
}

.bluthem_flower-quantity-input {
    width: 56px;
    padding: 0.3rem;
    border: 1px solid #e1e6f1;
    border-radius: 6px;
    background: #ffffff;
    text-align: center;
    font-weight: 600;
    color: #1b2a4b;
}

.bluthem_flower-quantity-input:focus {
    outline: 2px solid #2A395A;
    outline-offset: 1px;
}

.bluthem_flower-quantity-input::-webkit-inner-spin-button,
.bluthem_flower-quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bluthem_flower-quantity-input[type='number'] {
    -moz-appearance: textfield;
}

.bluthem_review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
    padding: 0px 0.75rem;
    padding-bottom: 1.5rem;
}

.bluthem_review-media p{
    text-align: center;
    font-size: 12px;
    color: gray;
}

.bluthem_review-image {
    background: #eef2fb;
    border-radius: 24px;
    min-height: 320px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bluthem_review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bluthem_review-image .bluthem_image-loader {
    display: none;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 6px solid rgba(31, 75, 154, 0.15);
    border-top-color: #1f4b9a;
    animation: bluthem_spin 1s linear infinite;
}

.bluthem_review-image[data-state="loading"] .bluthem_image-loader {
    display: flex;
}

.bluthem_review-image[data-state="loading"] img {
    display: none !important;
}

.bluthem_review-image[data-state="error"]::after {
    content: attr(data-error-text);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    color: #4b5a75;
    font-weight: 600;
}

.bluthem_review-image[data-state="loaded"] .bluthem_image-loader {
    display: none;
}

.bluthem_review-details {
    /* background: #f9faff; */
    /* border-radius: 24px; */
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bluthem_review-heading {
    margin: 0;
    color: #1b2a4b;
    font-size: 1.35rem;
    font-weight: 700;
}

.bluthem_summary-section h4 {
    margin: 0 0 0.75rem;
    color: #1b2a4b;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.11);
}
.bluthem_summary-section h4:first-of-type {
    padding-top: 0px;
    margin-top: 0px;
    border-top: none;   
}

.bluthem_summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.bluthem_summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #1b2a4b;
}

.bluthem_summary-empty {
    justify-content: center;
    color: #8a96b1;
    text-align: center;
}

.bluthem_summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    color: #1b2a4b;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 1px solid #dce2f2;
}

.bluthem_step-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 20px 0px;
}

/* .bluthem_button {
    border: none;
    border-radius: 999px;
    padding: 0.9rem 2.2rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
} */

.bluthem_button {
    min-width: 10%;
}

.bluthem_button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* .bluthem_button-primary {
    background: linear-gradient(135deg, #1f4b9a, #2c6dd5);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(47, 104, 196, 0.35);
} */
.bluthem_button-primary{
    margin: 5px 0px;
}
.bluthem_button-primary:not(:disabled):hover {
    transform: translateY(-2px);
}

/* .bluthem_button-secondary {
    background: #e7ecf7;
    color: #1b2a4b;
} */

.bluthem_empty-state {
    text-align: center;
    color: #4b5a75;
    grid-column: 1 / -1;
}

.bluthem_visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.variation p {
    margin: 2px;
}

.bluthem_step-note {
    text-align: center;
    color: red;
    font-weight: bold;
}

@keyframes bluthem_spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .bluthem_review-grid {
        grid-template-columns: 1fr;
    }
    /* .bluthem_flower-color {
        gap: 0px;
    } */
    .bluthem_step[data-step="flowers"] .bluthem_selection-description,
    .bluthem_color-name {
        display: none;
    }
}

@media (max-width: 768px) {
    /* .bluthem_composer-wrapper {
        padding: 2rem;
    } */
    .bluthem_card-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .bluthem_step[data-step="flowers"] .bluthem_card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap:0.5rem;
    }
    .bluthem_step-indicator-item {
        flex-basis: 100px;
    }
    .bluthem_step-indicator {
        /* flex-direction: column; */
        /* align-items: center; */
    }
    /* .bluthem_step-indicator-item::after {
        display: none;
    } */
    .bluthem_step-indicator-item .bluthem_step-indicator-label {
        display: none;
    }
    /* .bluthem_step[data-step="flowers"] .bluthem_selection-description,
    .bluthem_color-name {
        display: none;
    } */

    .bluthem_button {
        width: 100%;
    }
    .bluthem_color-media {
        width: auto;
    }
    /* .bluthem_flower-color {
        gap: 10px;
    } */
}

@media (max-width: 480px) {
    .bluthem_composer {
        padding: 2rem 1rem;
    }

    .bluthem_selection-content {
        padding: 0.5rem;
    }

    /* .bluthem_flower-color {
        grid-template-columns: 1fr;
        text-align: center;
    } */

    .bluthem_color-media {
        margin: 0 auto;
    }

    .bluthem_counter {
        justify-content: center;
    }
}

body.rtl .bluthem_step-indicator {
    flex-direction: row;
}

body.rtl .bluthem_selection-header {
    flex-direction: row;
}

body.rtl .bluthem_selection-content {
    text-align: right;
}

body.rtl .bluthem_summary-list li {
    flex-direction: row;
}

body.rtl .bluthem_summary-total {
    flex-direction: row;
}

body.rtl .bluthem_summary-section {
    text-align: right;
}

body.rtl .bluthem_step-controls {
    flex-direction: row;
}
body.rtl .bluthem_summary-list li span:last-child,
body.rtl .bluthem_summary-amount {
    direction: ltr;
}
body.rtl .bluthem_step[data-step="review"] .bluthem_step-title {
    text-align: right;
}
body.rtl .bluthem_summary-section h4 {
    letter-spacing: 0px;
}
body.rtl .bluthem_step-indicator-item::after,
body.rtl .bluthem_step-indicator-item:first-of-type::before {
    display: none;
}

body.rtl .bluthem_flower-quantity-button:first-of-type{
    left:auto;
    right:0;
}
body.rtl .bluthem_flower-quantity-button:last-of-type{
    right:auto;
    left:0;
}

body.rtl .bluthem_step-indicator-item,
body.rtl .bluthem_selection-badge {
    letter-spacing: normal;
}