.omgsEditor-container * {
    margin: 0;
    padding: 0;
}

.omgsEditor-container {
    position: relative;
    display: block;
    /* flex-direction: column; */
    gap: 8px;
    padding-bottom: 60px;
    position: relative;
    margin: auto;
}

.omgsEditor-container canvas {
    max-width: 100%;
    height: auto;
}

.editor-toolbar {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toolbar-group {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-group .toolbar-text {
    width: 146px;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: all 0.2s;
}

label.toolbar-btn {
    background: #ff5831;
    color: #fffdfd;
}

.toolbar-btn:hover {
    background: #f94921;
}

.toolbar-select {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 120px;
}

.toolbar-input {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 60px;
}

.toolbar-color {
    padding: 0;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.editor-toolbar .active {
    background: #000;
    color: #fff;
}

.OMGsEditToolBar {
    min-height: 52px;
}

/* swatches border */
.border-palette {
    padding: 0 8px;
    position: relative;
}

.toolbar-label {
    font-size: 14px;
    margin-bottom: 8px;
}

.border-swatches-container {
    position: relative;
}

#addNewText {
    font-size: 10px;
}

.toolbar-text {
    width: 49%;
    padding: 5px;
    font-size: 16px;
    display: inline-block;
    line-height: 18px;
}

.common-tools {
    display: flex;
    gap: 10px;
}

.common-tools svg {
    border: 1px solid #ccc;
    padding: 5px;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.common-tools .activesvg {
    border: 2px solid #0b27ff;
    padding: 3px;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.selected-swatch {
    display: flex;
    align-items: center;
    /* gap: 8px; */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    width: 100%;
}

.border-swatches-dropdown {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    z-index: 1000;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.border-swatches-dropdown.show {
    display: grid;
}

.color-swatch,
.selected-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
}

.color-swatch:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.swatch-color {
    width: 32px;
    height: 32px;
    border: 2px solid #ccc;
    border-radius: 4px;
    /* margin-bottom: 4px; */
}

#fontSelect {
    z-index: 1000;
    background: white;
    border: 1px solid rgb(204, 204, 204);
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    top: 50px;
    left: 210px;
}

#fontSelect .font-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px;
    border: none;
    background: none;
    font-family: AudioWide;
    cursor: pointer;
}

/* Special styling for transparent swatch */
.swatch-color[style*="00000000"],
.swatch-color-transparent {
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

.swatch-label {
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    position: absolute;
    top: -7px;
}

/* Add arrow to selected swatch */
.selected-swatch::after {
    content: '';
    border: solid #666;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: auto;
    display: none;
}

/* end swatches border */

/* clock */
.clock-container {
    padding: 0;
}

.selected-clockno-style {
    font-family: 'Audiowide', cursive;
    color: #ffffff;
    border: 1px solid #ddd;
    -webkit-text-stroke: 1px #000000;
    background: transparent;
    padding: 2px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 20px;
}

.clock-text-label {
    display: inline-block;
}

#NewClockStyles {
    position: absolute;
    max-height: 500px;
    overflow: auto;
    -ms-overflow-style: none;
    /* For Internet Explorer and Edge */
    scrollbar-width: none;
    margin-top: 7px;
}

/* end clock */

#saveDesignCn {
    background: #cc0100;
    padding: 15px;
    border: 0;
    color: #fcfcfc;
    font-size: 30px;
    cursor: pointer;
    width: 100%;
    line-height: 1em;
}



.unique-error-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    /* Ensure it appears on top */
    padding: 20px;
    border-radius: 12px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    font-family: Arial, sans-serif;
}

.unique-error-popup .unique-popup-content {
    font-size: 16px;
    color: #444;
}

.unique-error-popup .unique-close-popup {
    margin-top: 15px;
    padding: 10px 20px;
    background: #ff4d4d;
    /* Unique red color */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.unique-error-popup .unique-close-popup:hover {
    background: #e60000;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .toolbar-btn span {
        /* display: none; */
    }

    .toolbar-select {
        /* min-width: 90px; */
    }
}