.mvld-container {
    width: 100%;
}

#my-vinyl-designer {
    margin: 0 auto;
    background-color: #f4f4f4;
    padding: 20px;
    width: 997px;
    max-width: 100%;
}

.top-controls-container {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.control-box-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.control-box-wrapper > label {
    text-align: center;
    display: block;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.control-box {
    background-color: rgb(204, 204, 204);
    padding: 10px;
    flex: 1;
}

.text-sm {
    font-size: 12px;
}

.text-md {
    font-size: 14px;
}

#mvld-text-input {
    padding: 4px;
    font-size: 14px;
    border-radius: 0;
    border-color: #aeaeae;
}

.mvld-btn {
    background: #0b1547;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 12px;
    text-transform: uppercase;
    padding: 4px 8px;
}

.mvld-btn:hover, .mvld-btn:focus {
    background: #070d2a;
}

.mvld-select {
    padding: 4px;
    border-radius: 0;
    font-size: 14px;
}

.font-list-dropdown {
    position: relative;
}

.font-list-dropdown-content {
    display: none;
    overflow: auto;
    max-height: 200px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border: 1px solid #b3b3b3;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

.font-img-placeholder {
    display: flex;
    align-items: center;
    width: 206px;
    height: 30px;
    line-height: 30px;
    padding: 0 6px;
    font-size: 14px;
}

.font-list-dropdown.open .font-list-dropdown-content {
    display: block;
}

.font-list-dropdown-content .font-preview {
    border-bottom: 1px solid #b3b3b3;
    background: #fff;
    padding: 2px 0;
}

.font-list-dropdown-content .font-preview:hover {
    filter: brightness(0.9);
}

.font-list-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

.dropdown-icon {
    height: 30px;
    display: flex;
    align-items: center;
    padding: 6px;
    font-size: 12px;
    color: #636363;
    border-left: 1px solid #b3b3b3;
}

#mvld-lettering-width-input, #mvld-lettering-height-input {
    width: 50px;
    padding: 4px;
    font-size: 14px;
    border-radius: 0;
    border-color: #aeaeae;
}

.color-list-dropdown {
    position: relative;
}

.color-list-dropdown-content {
    display: none;
    overflow: auto;
    max-height: 360px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border: 1px solid #b3b3b3;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

.color-list-dropdown.open .color-list-dropdown-content {
    display: block;
}

.color-list-dropdown-content .color-preview {
    background: #fff;
    padding: 2px 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: default;
}

.color-list-dropdown .color-list-dropdown-header .selected-color {
    background: #fff;
    font-size: 14px;
    width: 130px;
    padding-left: 5px;
    padding-right: 5px;
}

.color-list-dropdown-content .color-preview:hover {
    filter: brightness(0.9);
}

.color-list-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

.mvld-quantity-btn {
    background-color: #ffffff;
    font-size: 10px;
    width: 34px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;  
    cursor: pointer;
}

.mvld-quantity-value {
    background-color: #ffffff;
    width: 81px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

#price-update {
    color: #222222;
    font-size: 32px;
    font-weight: bold;
}

#preview-container {
    width: 100%; /* Always take full width */
    border: 1px solid #ccc;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
    position: relative;
    min-height: 100px;
    margin-bottom: 10px;
}

#preview-image {
    border: 1px dashed #222;
    width: 100%;
}

#preview-container .loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f4f4;
    font-size: 36px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horizontal-line, .vertical-line {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    font-weight: 500;
}

.horizontal-line>span {
    margin-top: -28px;
    font-size: 14px;
}

.vertical-line>span {
    transform: rotate(270deg);
    margin-left: -28px;
    font-size: 14px;
}

#error-message-container {
    line-height: 50px;
    vertical-align: middle;
    background-color: #f8c8b8;
    color: #952800;
    text-align: center;
    font-size: 20px;
}

@media (max-width: 805px) {
    .top-controls-container {
        flex-direction: column;
    }
}

.surface-colour-container {
    background-color: #cccccc;
    padding: 10px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 805px) {
    .surface-colour-container {
        flex-direction: column;
        align-items: flex-start;
    }
}