.dm-package-wrapper {
    margin: 20px 0;
}

.dm-package {
    border-radius: 12px;
    background: var(--Surface-base, #FBF8F6);
    display: flex;
    padding: 32px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
}

.dm-package h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.dm-package-products {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dm-package-count{
    display: flex;
    width: 136px;
    padding: 4px 0;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    border-radius: 1000px;
    background: var(--Surface-invert, #FFFFFE);
    color: var(--Text-secondary, #456DE7);
}
.dm-package-products li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dm-package-products label {
    display: flex;

    align-items: center;
    width: 100%;
    gap: 16px;
}

.dm-product-name {
    font-weight: 600;
}

.dm-package-empty {
    color: #8b8b8b;
    font-style: italic;
}
.dm-package-image{
    aspect-ratio: 4 / 3;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.dm-package-image img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-width: 100%;
}
.dm-package-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.dm-package-detail-image{
    aspect-ratio: 1;
    border-radius: var(--Radius-l, 24px);
    background: var(--Surface-base, #FBF8F6);
    position: relative;
    display: flex;
    align-items: center;
}
.dm-package-detail-image>img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    padding: 48px;
}
.dm-package-detail-info{
    display: flex;
    flex-direction: column;
    padding: var(--Spacing-m, 24px);
    gap: var(--Spacing-m, 24px);
    border-radius: var(--Radius-l, 24px);
    background: var(--surface-page, #FFF);
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10), 0 66px 18px 0 rgba(85, 134, 155, 0.00), 0 42px 17px 0 rgba(85, 134, 155, 0.01), 0 24px 14px 0 rgba(85, 134, 155, 0.05), 0 11px 11px 0 rgba(85, 134, 155, 0.09), 0 3px 6px 0 rgba(85, 134, 155, 0.10);
}

.is-hidden{
    display: none !important;
}

.dm-package-step {
    margin-bottom: 8px;
}

.dm-package-step-details {
    border-radius: 12px;
    background: var(--Surface-base, #FBF8F6);
    overflow: hidden;
    transition: 0.3s ease;
}

.dm-package-step-summary {
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dm-package-step-summary::-webkit-details-marker {
    display: none;
}

.dm-package-step-summary::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2px solid #343955;
    border-bottom: 2px solid #343955;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-right: 16px;
}
.dm-package-detail-edit{
    border-radius: var(--radius-round, 1000px);
    background: rgba(0, 0, 0, 0.10);
    box-shadow: 0 0 32px 0 #FFF, 0 0 8px 0 #FFF, 0 0 16px 0 #FFF;
    backdrop-filter: blur(2px);
    display: inline-flex;
    padding: var(--gap-xs, 8px);
    justify-content: center;
    align-items: center;
    gap: var(--Spacing-spacing-none, 0);
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    z-index: 99;
    cursor: pointer; 
    transition: 0.3s ease;
}
.dm-package-template-item{
    position:relative;
}
.dm-package-detail-edit-icon{
    border-radius: 1000px;
    background: var(--surface-page, #FFF);
    display: flex;
    padding: var(--size-xs, 8px);
    justify-content: center;
    align-items: center;
    gap: var(--size-xs, 8px);
    transition: 0.3s ease;
    
}
.dm-product-card input[type="radio"]:checked + label,
.dm-product-card:has(input[type="radio"]:checked) {
      border: 5px solid #eef0f3;
}
.dm-package-detail-edit:hover{
    box-shadow: 0 0 27px 0 #FFF, 0 0 24px 0 #FFF, 0 0 31px 0 #FFF;
}
.dm-package-detail-edit:hover .dm-package-detail-edit-icon {
    background: var(--Icon-secondary, #456DE7);
}
.dm-package-detail-edit:hover .dm-package-detail-edit-icon svg path{
    fill: #fff;
}
.dm-package-step-details[open] .dm-package-step-summary {
    border-bottom: 1px solid #e3e5ea;
}

.dm-package-step-details[open] .dm-package-step-summary::after {
    transform: rotate(-135deg);
}

.dm-package-products.--list {
    display: flex;
    flex-direction: column;
    padding: 8px 16px 16px;
    gap: 8px;
}
.blink-bg {
  animation: blink-bg 1s infinite alternate ease-in-out;
}

@keyframes blink-bg {
  from {
    background: var(--Surface-base, #fbf8f6);
  }
  to {
    background: var(--Surface-base, #f3e8e1);
  }
}
.dm-product-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eef0f3;
}

.dm-product-card input[type="radio"] {
    margin: 0;
    display:none;
}

.dm-product-card.--summary {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    
}
.dm-package-step-details:hover{
    box-shadow: 0 18px 5px 0 rgba(110, 134, 191, 0.00), 0 12px 5px 0 rgba(110, 134, 191, 0.01), 0 7px 4px 0 rgba(110, 134, 191, 0.05), 0 3px 3px 0 rgba(110, 134, 191, 0.09), 0 1px 2px 0 rgba(110, 134, 191, 0.10);
}
.dm-product-media {
    width: 124px;
    height: 124px;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dm-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-product-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #dcdfe6 0%, #f2f3f7 100%);
    border-radius: 8px;
}

.dm-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--Text-primary, #1B3580);
}


.dm-package-detail-image-template.--2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    position: relative;
        height: 100%;
}
.dm-package-detail-image-template.--3{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    position: relative;

}
.dm-package-detail-image-template img{
    object-fit: contain;
    height: 100%;
    width: 100%;
}
.dm-package-detail-image-wrapper{
    aspect-ratio: 1062 / 745;
    padding: 48px;
    width: 100%;
}
.dm-package-detail-image-template .template-2.cover{
    position: absolute;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10), 0 66px 18px 0 rgba(85, 134, 155, 0.00), 0 42px 17px 0 rgba(85, 134, 155, 0.01), 0 24px 14px 0 rgba(85, 134, 155, 0.05), 0 11px 11px 0 rgba(85, 134, 155, 0.09), 0 3px 6px 0 rgba(85, 134, 155, 0.10);
    height: 100%;
    width: 100%;
}
.dm-package-detail-image-template .template-2.cover img{
    object-fit: fill;
}