/* Public CSS (Rebuild Skeleton) */

.gcidr-wrap{
  max-width: 760px;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  padding: 16px;
  position: relative;
}

.gcidr-form{
  display: grid;
  gap: 12px;
}

.gcidr-row{
  display: flex;
  gap: 10px;
  align-items: center;
}

.gcidr-row--header{
  justify-content: space-between;
}

.gcidr-row--input input,
.gcidr-row--result input{
  flex: 1 1 auto;
  height: 44px;
  padding: 10px 12px;
  border: 2px solid #d7d7d7;
  border-radius: 8px;
  box-sizing: border-box;
}

.gcidr-btn{
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: #79797f;
  color: #fff;
  white-space: nowrap;
}

.gcidr-btn--secondary{
  background: #5e5e63;
}

.gcidr-error{
  color: #b00020;
  font-size: 14px;
  min-height: 18px;
}

.gcidr-loader{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.65);
  border-radius: 10px;
}

.gcidr-spinner{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 4px solid #eee;
  border-top-color: #000;
  display: inline-block;
  animation: gcidr-spin 1s linear infinite;
}

@keyframes gcidr-spin{
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Responsive: stack buttons under inputs on small screens */
@media (max-width: 520px){
  .gcidr-row{
    flex-direction: column;
    align-items: stretch;
  }
  .gcidr-row--header{
    flex-direction: row;
    align-items: baseline;
  }
  .gcidr-btn{
    width: 100%;
  }
}
