/**
*  Converts a hex value into the rgb equivalent.
*
* @param {string} hex - the hexadecimal value to convert
* @return {string} comma separated rgb values
*/
/**
 * Colors
 */
/**
 * Breakpoints & Media Queries
 */
/**
 * SCSS Variables.
 *
 * Please use variables from this sheet to ensure consistency across the UI.
 * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
 */
/**
*  Converts a hex value into the rgb equivalent.
*
* @param {string} hex - the hexadecimal value to convert
* @return {string} comma separated rgb values
*/
/**
 * Colors
 */
/**
 * Fonts & basic variables.
 */
/**
 * Grid System.
 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
 */
/**
 * Dimensions.
 */
/**
 * Shadows.
 */
/**
 * Editor widths.
 */
/**
 * Block & Editor UI.
 */
/**
 * Block paddings.
 */
/**
 * React Native specific.
 * These variables do not appear to be used anywhere else.
 */
/**
*  Converts a hex value into the rgb equivalent.
*
* @param {string} hex - the hexadecimal value to convert
* @return {string} comma separated rgb values
*/
/**
 * Long content fade mixin
 *
 * Creates a fading overlay to signify that the content is longer
 * than the space allows.
 */
/**
 * Breakpoint mixins
 */
/**
 * Focus styles.
 */
/**
 * Applies editor left position to the selector passed as argument
 */
/**
 * Styles that are reused verbatim in a few places
 */
/**
 * Allows users to opt-out of animations via OS-level preferences.
 */
/**
 * Reset default styles for JavaScript UI based pages.
 * This is a WP-admin agnostic reset
 */
/**
 * Reset the WP Admin page styles for Gutenberg-like pages.
 */
.flag {
  width: 16px;
  height: 11px;
  display: inline-block;
}

.components-modal__frame.confirmBox {
  height: auto;
}
.components-modal__frame.confirmBox .buttons {
  display: block;
  text-align: right;
}
.components-modal__frame.confirmBox .buttons button:first-child {
  margin-right: 1rem;
}

.translations p {
  margin-top: 1em;
}
.translations td span {
  box-sizing: border-box;
}
.translations .pll-column-icon:not(.pll-delete-column) > a {
  color: var(--wp-admin-theme-color);
  width: 20px;
  padding: 2px 0 0;
}
.translations .pll-column-icon > button {
  padding: 0;
}
.translations .pll-column-icon.pll-delete-column > .pll-button:not(:disabled) {
  color: #cc1818;
}

body:not(.rtl) .translations .pll-translation-language {
  margin-left: 10px;
}

.rtl .translations .pll-translation-language {
  margin-right: 10px;
}

:not(.pll-delete-column) > .components-button.pll-button, :not(.pll-delete-column) > .components-button.pll-button:focus:enabled:not(.wp-ui-text-highlight),
:not(.pll-delete-column) > .components-button.pll-button,
:not(.pll-delete-column) > .components-button.pll-button:focus:enabled:not(.wp-ui-text-highlight) {
  color: #ccc;
}

:not(.pll-delete-column) > .components-button.pll-button.wp-ui-text-highlight, :not(.pll-delete-column) > .components-button.pll-button.wp-ui-text-highlight:focus:enabled,
:not(.pll-delete-column) > .components-button.pll-button.wp-ui-text-highlight,
:not(.pll-delete-column) > .components-button.pll-button.wp-ui-text-highlight:focus:enabled {
  color: var(--wp-admin-theme-color);
}

.pll-delete-column > .components-button.pll-button:disabled:hover {
  color: #1e1e1e;
}

#pll-duplicate {
  float: right;
  margin: 7px 0 0;
}

.rtl #pll-duplicate {
  float: left;
}

.pll-button {
  height: auto;
}
.pll-button.has-icon.has-text svg {
  margin: 0;
}

.pll-metabox-location .components-button.has-icon {
  min-width: auto;
}

.pll-metabox-error.components-notice {
  margin: 0;
}

.translation-input {
  position: relative;
}
.translation-input .components-spinner {
  position: absolute;
  top: 7px;
  right: 16px;
  margin: 0;
}
.translation-input input {
  width: 100%;
}
.translation-input input[dir=rtl] + .components-spinner {
  left: 5px;
  right: auto;
}

.rtl .translation-input .components-spinner {
  right: 8px;
}
.rtl .translation-input input[dir=rtl] + .components-spinner {
  left: 18px;
}

.translation-input__suggestions {
  max-height: 200px;
  transition: all 0.15s ease-in-out;
  padding: 4px 0;
  width: 302px;
  overflow-y: auto;
}

.translation-input__suggestion {
  padding: 4px 8px;
  color: #6c7781;
  display: block;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  width: 100%;
  border: none;
  text-align: left;
  border: none;
  box-shadow: none;
}
.translation-input__suggestion:hover {
  background: #e0e0e0;
}
.translation-input__suggestion:focus, .translation-input__suggestion.is-selected {
  background: color(theme(primary) shade(15%));
  color: #fff;
  outline: none;
}

.block-editor-block-inspector #select-post-language {
  margin: 10px auto 5px auto;
}
.block-editor-block-inspector #select-post-language .pll-translation-icon {
  margin-right: 10px;
  padding: 2px;
  display: inline-block;
  vertical-align: middle;
}

.pll-language-item {
  margin: 10px auto 5px auto;
}
.pll-language-item .pll-select-flag {
  margin-right: 10px;
  margin-left: 3px;
  padding: 2px;
  display: inline-block;
}
.pll-language-item .pll-language-name {
  font-size: 1.1em;
}

.pll-metabox-info {
  font-style: italic;
  color: #757575;
  font-size: 0.9em;
}

.pll-defaut-lang-icon {
  width: 15px;
  height: 15px;
}
.pll-defaut-lang-icon path {
  fill: var(--wp-admin-theme-color);
}

.pll-language-item .pll-defaut-lang-icon {
  vertical-align: text-top;
}

body:not(.rtl) .pll-language-item .pll-defaut-lang-icon {
  margin-left: 5px;
}

.rtl .pll-language-item .pll-defaut-lang-icon {
  margin-right: 5px;
}

.pll-default-lang-column .pll-defaut-lang-icon {
  margin-top: 2px;
}
