.kado-select-address {
  margin: 1.5em 0;
  text-align: left;
}

.kado-select-address .components-button {
  font-size: 1.1em;
  padding: 0.6em 1.5em;
  background: #21759b;
  color: #fff;
  border-radius: 4px;
  border: none;
  transition: background 0.2s;
}

.kado-select-address .components-button:hover,
.kado-select-address .components-button:focus {
  background: #14506b;
  color: #fff;
}

.kado-select-address-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(40, 40, 40, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kado-select-address-modal .components-modal__content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 340px;
  max-width: 800px;
  width: 90vw;
  padding: 2em 1.5em 1.5em 1.5em;
  z-index: 10010;
  font-size: 1em;
  color: #222;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.12);
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  margin: 0 auto;
}

.kado-select-address-modal .components-modal__header {
  border-bottom: 1px solid #eee;
  margin-bottom: 1em;
  position: static;
}

.kado-select-address-modal-container {
  max-height: 80vh;
  overflow-y: auto;
}

.kado-select-address .components-button[variant="secondary"] {
  margin-top: 1.5em;
  background: #f3f4f5;
  color: #444;
  border: 1px solid #ccc;
}

.kado-select-address .components-button[variant="secondary"]:hover {
  background: #e2e4e6;
  color: #222;
}

.kado-select-address-modal .components-modal__header button.components-button {
  display: flex !important;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  right: 0;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ccc;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  color: #444;
  z-index: 10020;
  padding: 0;
  line-height: 2.2em;
  font-size: 1.3em;
  cursor: pointer;
  transform: translate(50%, -50%);
  transition: background 0.2s, color 0.2s;
}
.kado-select-address-modal .components-modal__header button.components-button:hover {
  background: #e2e4e6;
  color: #222;
} 


.wc-blocks-components-select__select[disabled],
.wc-block-components-text-input input[type='text'][disabled] {
  opacity: 0.25;
  cursor: wait;
  animation: kado-loading-vlink 1.2s linear infinite;
}
@keyframes kado-loading-vlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.kado-search-postal-code-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed !important;
}



/* 郵便番号のバリデーションエラー表示 */
.wc-block-components-address-form__postcode.has-error {
  margin-bottom: 1em;
}
.wc-block-components-validation-error {
  position: absolute;
  bottom: -1.5em;
}

