#orderSampleModal.sm-modal .modal-content
{
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

#orderSampleModal .sm-header
{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

#orderSampleModal .sm-header-ico
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--s-primary-color, #b71c1c);
    background: color-mix(in srgb, var(--s-primary-color, #b71c1c) 10%, #fff);
}

#orderSampleModal .sm-header-text
{
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

#orderSampleModal .sm-header .modal-title
{
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #222;
}

#orderSampleModal .sm-header-sub
{
    font-size: 13px;
    color: #777;
}

#orderSampleModal .sm-header .btn-close
{
    margin: 0 0 0 auto;
    align-self: flex-start;
}

#orderSampleModal .sm-body
{
    padding: 20px;
}

.sm-wrap
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.sm-photo
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    max-height: 260px;
    border-radius: 12px;
    background: #f5f5f6;
    overflow: hidden;
}

.sm-photo-img
{
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: opacity .2s ease;
}

.sm-photo-img.is-loading
{
    opacity: .35;
}

.sm-opts
{
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.sm-intro
{
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.sm-group[hidden]
{
    display: none;
}

.sm-label
{
    margin-bottom: 8px;
    font-size: 13px;
    color: #777;
}

.sm-label b
{
    margin-left: 4px;
    font-weight: 700;
    color: #222;
}

.sm-colors
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 172px;
    overflow-y: auto;
    padding: 3px;
    margin: -3px;
    scrollbar-width: thin;
}

.sm-color
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
}

.sm-color:hover
{
    transform: scale(1.06);
}

.sm-color:focus-visible,
.sm-size:focus-visible
{
    outline: 2px solid var(--s-primary-color, #b71c1c);
    outline-offset: 2px;
}

.sm-color.is-on
{
    border-color: var(--s-primary-color, #b71c1c);
}

.sm-swatch
{
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
}

.sm-swatch img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-swatch-a,
.sm-swatch-b
{
    position: absolute;
    inset: 0;
}

.sm-swatch-b
{
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.sm-sizes
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sm-size
{
    min-width: 48px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.sm-size[hidden]
{
    display: none;
}

.sm-size:hover
{
    border-color: #aaa;
}

.sm-size.is-on
{
    border-color: var(--s-primary-color, #b71c1c);
    background: var(--s-primary-color, #b71c1c);
    color: #fff;
}

.sm-native
{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

#orderSampleModal .sm-footer
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

#orderSampleModal .sm-footer > *
{
    margin: 0;
}

#orderSampleModal .sm-price .sample_price_tot_cont
{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 6px;
}

#orderSampleModal .sm-price-label
{
    flex-basis: 100%;
    font-size: 12px;
    color: #777;
}

#orderSampleModal .sm-price-val
{
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--s-primary-color, #b71c1c);
}

#orderSampleModal .sm-price-vat
{
    font-size: 13px;
    color: #777;
}

#orderSampleModal .sm-add
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 10px;
    font-weight: 700;
}

@media (min-width: 576px)
{
    #orderSampleModal .sm-add
    {
        width: auto;
        min-width: 260px;
    }
}

@media (min-width: 768px)
{
    .sm-wrap
    {
        grid-template-columns: 260px 1fr;
        gap: 24px;
        align-items: start;
    }

    .sm-photo
    {
        max-height: none;
    }
}
