@charset "UTF-8";

.common-popup-dim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
    opacity: 0.2;
    display: none;
}

body:has(.common-popup-dim) .common-popup-dim {
    overflow: hidden;
}

.common-popup {
    display: none;
    box-sizing: border-box;
    border:1px solid #ddd;
    padding: 30px 30px 40px 30px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2);
}

body.window-popup{
    margin: 0;
    padding: 0;
}

body.window-popup .common-popup{
    position: static;
    display: block;
    box-shadow: none;
}

.common-popup .popup-head {
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 24px;
    font-weight: bold;
    letter-spacing: -1.2px;
    text-align: center;
}

.common-popup .popup-foot {
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    padding: 10px 20px;
    color: #fff;
}

.common-popup > .popup-foot > label {
    box-sizing: border-box;
    position: relative;
    display: flex;
    padding-left: 28px;
}

.common-popup > .popup-foot > label > input {
    position: absolute;
    left: -9999px;
}

.common-popup > .popup-foot > label > input + span {
    font-size: 15px;
    line-height: 20px;
    letter-spacing: -0.75px;
}

.common-popup > .popup-foot > label > input + span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 2px;
  border: 1px solid #ccc;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: cover;
  box-sizing: border-box;
}

.common-popup > .popup-foot > label > input + span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 3px;
}

.common-popup > .popup-foot > label > input:checked + span::before {
    background-image: url(./ico-check-on.png);
}

.common-popup > .popup-foot > button {
    background-color: transparent;
    text-decoration: none;
    border: 0;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #eee;
    font-size: 13px;
    letter-spacing: -0.65px;
    text-align: right;
    gap: 5px;
}

.common-popup > .popup-foot > button::before {
    content: '';
    width: 9px;
    height: 9px;
    background-image: url(./ico-popup-close-white.png);
    display: inline-block;
    background-size: cover;
    background-repeat: no-repeat;
}
