/* Insurance and inspection modals (Korea car page) */
.modal-background {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: all 0.3s ease;
  overflow: auto;
}

.modal-background.active {
  opacity: 1;
  pointer-events: all;
  user-select: auto;
  z-index: 1050;
}

.modal-background-inner {
  position: relative;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.insurance-modal,
.inspection-modal {
  position: relative;
  background-color: white;
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  min-height: 200px;
  max-width: 1024px;
  margin: 10vh auto;
  overflow: hidden;
  display: none;
  flex-direction: column;
  gap: 20px;
  color: #333333;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.3s ease;
  max-height: 90vh;
  height: fit-content;
  scrollbar-width: thin;
}

.modal-background.active .inspection-modal.active,
.modal-background.active .insurance-modal.active {
  display: flex;
  opacity: 1;
  user-select: auto;
  pointer-events: all;
  z-index: 1000;
}

.insurance-modal {
  overflow: visible !important;
  height: fit-content !important;
  max-height: fit-content !important;
}

.inspection-modal {
  overflow: visible !important;
  height: fit-content !important;
  max-height: fit-content !important;
}

.modal-background p {
  margin-bottom: 0 !important;
}

.insurance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.insurance-header img {
  padding: 6px;
  cursor: pointer;
}

.insurance-header p {
  font-size: 20px;
  color: #1F1F1F;
  font-weight: 700;
}

.insurance-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Loader */
.insurance-inner .loader {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #282828;
  border-radius: 50%;
  animation: insurance-loader-spin 0.8s linear infinite;
  margin: 20px auto;
}

@keyframes insurance-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Korea special buttons */
.special-buttons-container {
  padding: 0;
  margin-top: 24px;
}

.special-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#insurance-button,
#inspection-button {
  padding: 14px;
  border-radius: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: white;
  outline: none !important;
  border: none !important;
  cursor: pointer;
  font-size: 16px;
}

#insurance-button p,
#inspection-button p {
  margin-bottom: 0 !important;
}

#insurance-button {
  background-color: #282828;
}

#inspection-button {
  background-color: #E42320;
}

#insurance-button img,
#inspection-button img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Modal content (insurance/inspection data) */
.insurance-info-columns {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.insurance-info-columns > div {
  width: 100%;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calculator-results-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.calculator-results-row p {
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  margin: 0;
}

.calculator-results-row small {
  font-size: 16px;
  color: #1F1F1F;
  text-align: right;
}

.insurance-notice {
  font-size: 12px;
  color: #757575;
}

.accidents-header {
  font-size: 18px;
  font-weight: 700;
  color: #1F1F1F;
}

.accident-row-outer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accident-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accident-date small,
.insurance-benefit small {
  font-size: 14px;
  color: #333333;
}

.accident-date p,
.insurance-benefit p {
  font-weight: 600;
  color: #1F1F1F;
  margin: 0;
}

.accident-row-upper {
  background-color: #F8F8F8;
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
}

.repair-cost {
  margin: 0;
  font-size: 16px;
}

.repair-cost span {
  font-weight: 600;
}

.notations-panel {
  padding: 16px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
}

.notation-mark-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.notation-mark {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 100px;
  font-size: 12px;
}

.notation-mark.x-mark {
  background-color: rgb(220, 38, 38);
}

.notation-mark.w-mark {
  background-color: rgb(37, 99, 235);
}

.inner-inspection {
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 12px;
}

.inner-inspection > p {
  font-size: 18px;
  font-weight: 700;
  color: #1F1F1F;
  margin-bottom: 16px;
}
