@charset "utf-8";

/* デザインプレビュー モーダル（共通） */
.design_modal {
    width: 100%;
    max-width: 1200px !important;
    margin: 0 auto;
    height: 96%;
    padding: 0;
    overflow: hidden;
    position: relative;
}
.design_modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 20;
}
.design_modal__close-line {
    position: absolute;
    width: 18px;
    height: 2px;
    background: rgba(0,0,0,0.6);
    border-radius: 1px;
}
.design_modal__close-line--1 {
    transform: rotate(45deg);
}
.design_modal__close-line--2 {
    transform: rotate(-45deg);
}
.design_modal__close:hover {
    background: #000;
}
.design_modal__close:hover .design_modal__close-line {
    background: #fff;
}
.design_modal .spinner-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: #f1f1f1;
    z-index: 10;
}
.design_modal .spinner {
    margin: -40px 0 0;
}
.design_modal .spinner .bounce1,
.design_modal .spinner .bounce2,
.design_modal .spinner .bounce3 {
    width: 18px;
    height: 18px;
    background-color: #333;
    border-radius: 100%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}
.design_modal .spinner .bounce1 {
    animation-delay: -0.32s;
}
.design_modal .spinner .bounce2 {
    animation-delay: -0.16s;
}
@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}
.design_modal .iframe-parent-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.design_modal .iframe-parent {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.design_modal .iframe-parent iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
}
.design_modal .variant-picker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}
.design_modal .variant-actions {
    margin-top: 8px;
    padding-top: 6px;
}
.design_modal .variant-actions__create {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    border-radius: 5px;
    border: none;
    background-color: #FF6C52;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 7px 15px;
}
.design_modal .variant-actions__create:hover {
    background-color: #e45f47;
}
.design_modal .variant-actions__create span {
    display: inline-block;
}
.design_modal .variant-actions__create span:first-child {
    width: 16px;
}
.design_modal .variant-actions__create span:last-child {
    width: 16px;
    text-align: right;
}
.design_modal .variant-list {
    display: flex;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
}
.design_modal .variant-list::-webkit-scrollbar {
    display: none;
}
.design_modal .variant-inner {
    display: inline-flex;
    gap: 4px;
    margin: 0 auto;
    min-width: max-content;
}
.design_modal .variant-item {
    background: transparent;
    border: 0;
    padding: 6px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.design_modal .variant-item .thumb {
    width: 45px;
    padding-top: 177.78%;
    background-size: cover;
    background-position: center;
    border: 3px solid transparent;
    position: relative;
}
.design_modal .variant-item .label {
    margin-top: 4px;
    font-size: 10px;
    color: #555;
}
.design_modal .variant-item.active .thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.5);
    border-radius: inherit;
    z-index: 1;
}
.design_modal .variant-item.active .thumb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-image: url('../images/designs/check.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}
