.vs-pallet-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
}

.vs-pallet-modal.vs-pallet-modal--open {
  display: block;
}

.vs-pallet-modal__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.vs-pallet-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.vs-pallet-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.vs-pallet-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #292929;
}

.vs-pallet-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
}

.vs-pallet-modal__close:hover {
  color: #292929;
}

.vs-pallet-modal__body {
  padding: 20px;
  color: #292929;
  line-height: 1.5;
}

.vs-pallet-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid #eee;
}

.vs-pallet-modal__btn {
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  background: #fff;
  color: #292929;
}

.vs-pallet-modal__btn:hover {
  background: #f5f5f5;
}

.vs-pallet-modal__btn--proceed {
  background-color: #d6121f;
  border-color: #d6121f;
  color: #fff;
}

.vs-pallet-modal__btn--proceed:hover,
.vs-pallet-modal__btn--proceed:focus {
  background-color: #a93631;
  border-color: #a93631;
  color: #fff;
}

body.vs-pallet-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .vs-pallet-modal__dialog {
    margin: 5vh 16px 0;
  }
}
