/* Overlay for darkening the background */
.google-address-validation-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
}
.google-address-validation-popup-overlay:hover {
  cursor: pointer;
}

/* Main pop-up window */
.google-address-validation-popup {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 600px;
  margin: 20px;
  padding: 25px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10000;
}
.google-address-validation-popup:hover{
  cursor: initial;
}

/* Stylization of the proposed address */
.suggested-address {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px;
  margin: 15px 0;
  font-size: 16px;
  line-height: 1.4;
  color: #212529;
  word-wrap: break-word;
}

.corrected-address,
.original-address {
  font-weight: 600;
}
.corrected-address{
  color: #d9534f;
}

/* Group of radio buttons */
.address-options {
  margin: 20px 0;
}

.address-options label {
  display: block;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}
form .address-options .form-type-radio label{
    display: block!important;
    width: 100%;
}
body:not(.edit-layout) form .address-options .form-type-radio label:before{
    border: 1px solid #ddd;
}
.address-options label:hover {
  background-color: #f5f5f5;
}

.address-options input[type="radio"] {
  margin-right: 10px;
  position: relative;
  top: 2px;
}

/* Button styling */
.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.popup-submit,
.popup-cancel {
    background-color: transparent;
    background-color: #132048;
    border: 1px solid transparent !important;
    border-radius: 0;
    color: #fff;
    display: inline-block;
    display: block;
    font-family: Termina, "sans-serif";
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.4px;
    line-height: 13px;
    padding: 14px 35px 12px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.popup-submit {
    background-color: #d6001c;
    color: #fff;
}

.popup-submit:hover {
  background-color: #132048 !important
}

.popup-cancel {
  background-color: #e9ecef;
  color: #495057;
}

.popup-cancel:hover {
  background-color: #d4d4d4;
}

/* Loading indicator */
.google-address-validation-loader {
  border: 0.2em solid transparent;
  border-top-color: currentcolor;
  border-radius: 50%;
  -webkit-animation: 1s loader-spin linear infinite;
          animation: 1s loader-spin linear infinite;
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-block;
  /* margin-left: 50%; */
  position: absolute;
  margin-left: 50%;
  left: -15px;
  margin-top: -5px;
}
.google-address-validation-loader:before {
  content: "";
  display: block;
  width: inherit;
  height: inherit;
  position: absolute;
  top: -0.2em;
  left: -0.2em;
  border: 0.2em solid currentcolor;
  border-radius: 50%;
  opacity: 0.5;
}

@-webkit-keyframes loader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes loader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}