.svg-edit-btn {
    width: 40%;
    display: inline-block;
}
.svg-history-btn {
    width: 40%;
    display: inline-block;
}
.svg-btns {
    text-align: center;
}
.modal-dialog {
    max-width: 100%;
}
.modal-content {
    height: 100%;
}
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}
.toolbar button, .toolbar input[type="file"] {
    font-size: 1.1em;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
}
.svg-container {
    /*width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    overflow: auto;
    touch-action: none;
    position: relative;*/
}
#svgArea {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
#svgArea svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    preserveAspectRatio: xMidYMid meet;
}
.btn-op {
    font-size: 1.2em;
    padding: 8px 12px;
    border: 1px solid #ccc;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius: 6px;
    cursor: pointer;
}
@media (max-width: 600px) {
    .toolbar button, .toolbar input[type="file"] {
        font-size: 1em;
        padding: 12px 10px;
    }
    /*.svg-container {
        height: 60vh;
        min-height: 200px;
    }*/
    #svgArea {
        padding-bottom: 100%;
    }
    #svgArea svg {
        min-width: 60px;
        min-height: 120px;
    }
    .modal-dialog {
        max-width: 100%;
    }
    .modal-content {
        height: 90%;
    }
    .svg-edit-btn {
        width: 100%;
    }
    .ec-cartRow .ec-cartRow__img {
        width: 100px;
        display: block;
        padding-right: 0;
    }
    .svg-history-btn {
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}
.layer-group {
    display: inline-flex;
    gap: 2px;
    margin-left: 10px;
    vertical-align: middle;
}
.layerBtn {
    font-size: 1.2em;
    padding: 4px 8px;
    border: 1px solid #bbb;
    background: #f8f8f8;
    border-radius: 4px;
    cursor: pointer;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.layerBtn:disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
}
@media (max-width: 600px) {
    .layerBtn {
        font-size: 1.5em;
        min-width: 40px;
        min-height: 40px;
    }
}