* {
  font-family: "Nanum Gothic", Sans-serif;
}

:root {
  --text: #2f2c28;
  --link: #ffcc00;
  --button-text: #fff;
  --button-primary-background: #ffcc00;
  --button-primary-hover-background: #ffe680;
  --button-warn-background: #f9592c;
  --button-secondary-background: #bcb9b0;
  --ic-button-circle: #ffcc00;
  --input-background: #fff;
  --input-border: #cccac3;
  --input-placeholder: #bcb9b0;
  --input-focus-border: #ffcc00;
  --input-focus-background: #fffdf3;
  --input-error: #e6584e;
  --input-error-border: #e6584e;
  --chip-border: #e3e1dc;
  --chip-text: #2f2c28;
  --chip-green-background: #effaf9;
  --chip-green-text: #79c9c5;
  --chip-green-border: #06aea7;
  --avatar-placeholder: #e3e1dc;
  --stars: #ffcc00;
  --dialog-border: #e3e1dc;
  --dialog-background: #f6f5f3;
  --dialog-info: #e1811b;
  --box-border: #e3e1dc;
}

@font-face { font-family: 'NanumGothic'; }
src: url

* {
  box-sizing: border-box;
}

/* Texts */

body,
a,
a:hover {
  color: var(--text);
}

a {
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none;
}

.cp-link {
  color: var(--link);
  font-weight: 500;
}

/* Button */

a.cp-button {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.cp-button {
  border: none;
  outline: none;
  padding: 1rem 1.75rem;
  border-radius: 624.9375rem;
  font-size: 1.1875rem;
  font-weight: 400;
  letter-spacing: -0.02rem;
  cursor: pointer;
  background-color: var(--button-primary-background);
  color: var(--button-text);
}

.cp-button.small {
  padding: 0.6875rem 1.75rem;
  font-size: 1.0625rem;
}

.cp-button:hover,
.cp-button:active {
  color: var(--button-text);
  background-color: var(--button-primary-hover-background);
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.cp-button.secondary {
  background-color: var(--button-secondary-background);
}

.cp-button.warn {
  background-color: var(--button-warn-background);
}

.cp-button.secondary:hover:not(:disabled),
.cp-button.secondary:active,
.cp-button.warn:hover,
.cp-button.warn:active {
  opacity: 0.6;
}

.cp-button.inverted {
  padding: 0.3125rem 1.0625rem;
  font-size: 1.0625rem;
  font-weight: 300;
  background-color: transparent;
  color: #e1811b;
  border: 0.0625rem solid #e1811b;
}

.cp-button:disabled {
  cursor: not-allowed;
}

/* Icon Button */

.cp-ic-button {
  display: inline-flex;
  outline: none;
  border: none;
  background: none;
  align-items: center;
}

.cp-ic-button:hover,
.cp-ic-button:active {
  text-decoration: underline;
  cursor: pointer;
}

.cp-ic-button:not(.after)::before {
  content: " ";
  margin-right: 0.4375rem;
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  background-position: center;
  background-size: 1.125rem 1.125rem;
  background-repeat: no-repeat;
}

.cp-ic-button.setting::before {
  background-image: url("../icons/ic-setting.svg");
}

.cp-ic-button.newreview::before {
  background-image: url("../icons/ic-newreview.svg");
}

.cp-ic-button.backbutton::before {
  background-image: url("../icons/ic-morereview.svg");
  transform: scaleX(-1);
}

.cp-ic-button.after::after {
  content: " ";
  margin-left: 0.4375rem;
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  background-position: center;
  background-size: 1.125rem 1.125rem;
  background-repeat: no-repeat;
}

.cp-ic-button.after.morereview::after {
  background-image: url("../icons/ic-morereview.svg");
}

.cp-ic-button.circle {
  font-size: 1.25rem;
  font-weight: bold;
}

.cp-ic-button.circle::before,
.cp-ic-button.circle::after {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background-color: var(--ic-button-circle);
}

/* Input */

div.cp-input {
  display: inline-block;
  position: relative;
}

input.cp-input,
textarea.cp-input,
.cp-input input {
  width: 100%;
  font-size: 1.0625rem;
  letter-spacing: -0.01875rem;
  padding: 1rem 1.75rem;
  border: 0.0625rem solid var(--input-border);
  background-color: var(--input-background);
  outline: none;
  border-radius: 0.4375rem;
}

.cp-input select {
    -webkit-appearance: menulist;
    width: 100%;
    font-size: 1.0625rem;
    letter-spacing: -0.01875rem;
    padding: 1rem 1.75rem;
    border: 0.0625rem solid var(--input-border);
    background-color: var(--input-background);
    outline: none;
    border-radius: 0.4375rem;

    align-items: center;
    white-space: pre;
    -webkit-rtl-ordering: logical;
    cursor: default;

}

input.cp-input:focus,
textarea.cp-input:focus,
.cp-input input:focus {
  background-color: var(--input-focus-background);
  border-color: var(--input-focus-border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

input.cp-input::placeholder,
textarea.cp-input::placeholder,
.cp-input input::placeholder {
  color: var(--input-placeholder);
}

textarea.cp-input {
  line-height: 1.82;
  resize: none;
}

.cp-input.error {
  padding-right: 2.875rem;
  border: 0.0625rem solid var(--input-error-border);
  background-position: top 0.8125rem right 0.8125rem;
  background-image: url("../icons/ic-error.svg");
  background-size: 1.8125rem;
  background-repeat: no-repeat;
}

.error-message {
  color: var(--input-error);
  font-size: 0.875rem;
  line-height: 1.7;
}

.cp-input:not(.error) ~ .error-message {
  display: none;
}

.cp-input.error ~ .error-message {
  display: block;
  width: 100%;
  text-align: right;
}

/* Star rating */

.cp-stars {
  color: var(--stars);
  font-size: 1.3125rem;
  line-height: 1.3125rem;
}

/* Chip */

.cp-chip {
  display: inline-block;
  padding: 0 1rem;
  font-size: 1rem;
  line-height: 2rem;
  color: var(--chip-text);
  border: 0.0625rem solid var(--chip-border);
  border-radius: 624.9375rem;
}

.cp-chip.green {
  padding: 0 0.8125rem;
  line-height: 1.6875rem;
  color: var(--chip-green-text);
  background-color: var(--chip-green-background);
  border-color: var(--chip-green-border);
  margin-bottom: 0.625rem;
}

/* Avatar */

.cp-avatar {
  display: inline-block;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.cp-avatar.large {
  width: 6.25rem;
  height: 6.25rem;
}

.cp-avatar.medium {
  width: 3.75rem;
  height: 3.75rem;
}

/* Card */

.cp-card {
  height: 100%;
  border-radius: 1.3125rem;
  box-shadow: 0 0.1875rem 1rem 0 #f1ece2;
  background-color: #ffffff;
  will-change: box-shadow;
}

/* Dialog */

.cp-dialog {
  display: flex;
  flex-direction: column;
  padding: 1.3125rem 3.4375rem 1.3125rem 2.5rem;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.021875rem;
  border-radius: 0.375rem;
  border: solid 0.0625rem var(--dialog-border);
  background-color: var(--dialog-background);
}

.cp-dialog.info {
  color: var(--dialog-info);
  border-color: transparent;
  background-color: transparent;
}

/* Box */

.cp-box {
  padding: 4.25rem 9.0625rem;
  border-radius: 0.375rem;
  border: solid 0.125rem var(--box-border);
}

/* Icon */

.cp-icon {
  display: inline-block;
  width: 1.5625rem;
  height: 1.5625rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.cp-icon.small {
  width: 1.125rem;
  height: 1.125rem;
}