/* Instant Page Translation Styles */

.ipt-translate-wrapper {
  margin: 0.5em 0;
  padding: 0.5em;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5em;
}

.ipt-translate-label {
  font-weight: bold;
  color: #333;
  margin: 0;
}

.ipt-translate-select {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ipt-translate-select:focus {
  border-color: #999;
  outline: none;
}

.ipt-translate-btn {
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.ipt-translate-btn:hover {
  background-color: #f0f0f0;
  border-color: #999;
}

.ipt-translate-btn:disabled {
  background-color: #eee;
  color: #999;
  cursor: not-allowed;
}

.ipt-revert-btn {
  padding: 0.5em 1em;
  border: 1px solid #c00;
  border-radius: 3px;
  background-color: #fdd;
  color: #c00;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.ipt-revert-btn:hover {
  background-color: #fbb;
  border-color: #a00;
}

.ipt-translate-status {
  display: block;
  margin-top: 0.5em;
  font-style: italic;
  color: #666;
}

.ipt-translate-status.ipt-error {
  color: #d00;
  font-weight: bold;
}

.ipt-clear-actions {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.5em;
  flex-wrap: wrap;
}

.ipt-clear-sitewide-control {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.ipt-clear-cache-btn {
  border: 1px solid #333;
  padding: 0.4em 0.9em;
  border-radius: 4px;
  background-color: #fff;
  color: #111;
  cursor: pointer;
}

.ipt-clear-cache-btn:hover {
  background-color: #f2f2f2;
}

.ipt-progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5em;
  display: none;
}

.ipt-progress-fill {
  height: 100%;
  background-color: #007cba;
  width: 0%;
  transition: width 0.3s ease;
}

/* Responsive design */
@media (max-width: 600px) {
  .ipt-translate-select,
  .ipt-translate-btn {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5em;
  }
}