.view-modal,
.export-modal {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    border: none;
    display: none!important;
}

@media only screen and (max-width: 575px) {
    .view-modal {
        height: 100vh;
        width: 100vw;
        right: 0;
    }
}

.export-modal {
    overflow-y: hidden;
}

.export-modal {
    width: 400px;
    height: 300px;
}

.view-modal[open],
.export-modal[open] {
    display: block !important;
}

.view-modal-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.view-modal::backdrop,
.export-modal::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.view-modal .modal-header,
.export-modal .modal-header {
    position: relative;
    display: flex;
    background: #fff;
    height: 10%;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.view-modal .modal-header h3,
.export-modal .modal-header h3 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.view-modal .modal-header button,
.export-modal .modal-header button {
    outline: none;
    border: none;
    background: transparent;
    font-size: 1.3rem;
    color: #000;
    cursor: pointer;
    position: absolute;
    left: 20px;
}

.view-modal .modal-body {
    width: 100%;
    height: 75%;
    position: relative;
    overflow-y: scroll;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    padding: 20px 0;
}

.export-modal-container {
    height: 100%;
}

.export-modal .modal-body {
    width: 100%;
    height: 90%!important;
    padding: 20px;
}

.export-modal .modal-body .export-type-list {
    height: 100%;
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.export-type-item {
    width: 40%;
    height: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-type-item button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px;
    border-radius: 10px;
    background: transparent;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
}

.export-type-item button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.view-modal .view-color-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
}

.view-modal .view-color-info .copy,
.view-modal, .view-color-info p {
    color: #777;
}

.view-modal, .view-color-info .info {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.view-modal, .view-color-info .info p:not(.color-info) {
    font-size: 1rem;
}

.view-modal, .view-color-info .info p.color-info {
    font-size: 1.5rem;
}

.view-modal .modal-footer {
    background: #fff;
    height: 15%;
    padding: 15px 30px;
}

.view-modal .modal-footer .selected-colors {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.view-modal .modal-footer .selected-colors .selected-color {
    height: 100%;
    flex-grow: 1;
    position: relative;
}

.view-modal .modal-footer .selected-colors .selected-color:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.view-modal .modal-footer .selected-colors .selected-color:hover:before,
.view-modal .modal-footer .selected-colors .selected-color.active:before {
    content: '•';
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    align-items: center;
    cursor: pointer;
}