/**
 * Theme Switcher Styles
 */

/* Block Form Styles */
.oe-themes-block-switcher-form {
  padding: 0;
  margin: 0;
}

.oe-themes-block-switcher-form .form-item {
  margin-bottom: 10px;
}

.oe-themes-block-switcher-form .form-select,
.oe-themes-block-switcher-form .oe-themes-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  transition: border-color 0.2s ease;
}

.oe-themes-block-switcher-form .form-select:focus,
.oe-themes-block-switcher-form .oe-themes-select:focus {
  border-color: #0074bd;
  outline: 3px solid #0074bd;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(0, 116, 189, 0.25);
}

.oe-themes-block-switcher-form .form-actions {
  margin-top: 10px;
}

.oe-themes-block-switcher-form .form-submit,
.oe-themes-block-switcher-form .oe-themes-submit {
  width: 100%;
  padding: 10px 15px;
  background-color: #0074bd;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.oe-themes-block-switcher-form .form-submit:hover,
.oe-themes-block-switcher-form .oe-themes-submit:hover {
  background-color: #005a9c;
}

.oe-themes-block-switcher-form .form-submit:focus,
.oe-themes-block-switcher-form .oe-themes-submit:focus {
  outline: 3px solid #0074bd;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 116, 189, 0.25);
}

.oe-themes-block-switcher-form .form-submit:active,
.oe-themes-block-switcher-form .oe-themes-submit:active {
  background-color: #004a7f;
}

/* Raw HTML theme switcher styles */
.theme-switcher-block {
  padding-left: 0;
}

.theme-switcher-block label {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
  color: #000;
}

/* Ensure visually-hidden class doesn't remove from accessibility tree */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-switcher-block .oe-themes-select {
  color: #000 !important;
  width: auto;
  max-width: 100%;
  font-size: 16px;
  padding: 8px 42px 8px 12px;
  min-width: 200px;
}

/* Legacy link-based styles (for backward compatibility) */
.theme-switcher-block-legacy {
  padding: 15px;
  margin: 10px 0;
}

.theme-switcher-block__title {
  font-weight: bold;
  margin-bottom: 10px;
}

.theme-switcher-block__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.theme-switcher-block__item {
  margin: 5px 0;
}

.theme-switcher-block__link {
  display: inline-block;
  padding: 8px 15px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: all 0.3s ease;
  color: #0074bd;
}

.theme-switcher-block__link:hover {
  background-color: #f5f5f5;
  border-color: #999;
  text-decoration: underline;
}

.theme-switcher-block__link:focus {
  outline: 3px solid #0074bd;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(0, 116, 189, 0.25);
}

.theme-switcher-block__link--active {
  background-color: #0074bd;
  color: white;
  border-color: #0074bd;
}

.theme-switcher-block__link--active:hover {
  background-color: #005a9c;
  border-color: #005a9c;
}

/* Form styles */
.oe-themes-theme-switcher-form {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.oe-themes-theme-switcher-form .form-item {
  margin-bottom: 15px;
}

.oe-themes-theme-switcher-form .form-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.oe-themes-theme-switcher-form .form-actions {
  margin-top: 20px;
}

