/*******************************************************************************
 * NORMALIZE
 *******************************************************************************/

button,
input,
select,
textarea {
  font-size: 100%;
  margin: 0;
  vertical-align: baseline;
  -webkit-appearance: none;
  appearance: none;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

textarea {
  overflow: auto;
  vertical-align: top;
  width: 100%;
}

/*******************************************************************************
 * BUTTON AND COMMAND LINK: COMMON
 *******************************************************************************/

button,
input[type=button],
input[type=reset],
input[type=submit],
a.elementor-button,
a.aero-button,
.aero-command-link {
  padding: 7px 15px;
  cursor: default;
  line-height: inherit;
  color: inherit;
  
  border-radius: 4px;
  border: 1px solid transparent;

  background-color: transparent;
  background-clip: padding-box;
}

a.aero-button,
a.aero-command-link {
  display: inline-block;
}

a.elementor-button:hover,
a.elementor-button:visited,
a.elementor-button:focus,
a.elementor-button:active,
a.aero-button:hover,
a.aero-button:visited,
a.aero-button:focus,
a.aero-button:active,
a.aero-command-link:hover,
a.aero-command-link:visited,
a.aero-command-link:focus,
a.aero-command-link:active {
  color: inherit;
}

/* Flat icon */

button i,
input[type=button] i,
input[type=reset] i,
input[type=submit] i,
a.elementor-button i,
a.aero-button i,
.aero-command-link i {
  font-size: 16px;
}

.aero--flat-icon {
  position: relative;
}

.aero--flat-icon > i {
  position: absolute;
  top: 0;
  left: 0;
  color: transparent !important;

  text-shadow: none !important;

  background-image: var(--aero-g-button-icon);
  background-clip: text;
}

/* Icon-only button */

button:has(> i):not(:has(> :not(i))),
input[type=button]:has(> i):not(:has(> :not(i))),
input[type=reset]:has(> i):not(:has(> :not(i))),
input[type=submit]:has(> i):not(:has(> :not(i))),
a.elementor-button:has(> i):not(:has(> :not(i))),
a.aero-button:has(> i):not(:has(> :not(i))),
.aero-command-link:has(> i):not(:has(> :not(i))) {
  padding: 7px 10px;
  /* padding-left: 0;
  padding-right: 0;
  width: 37px;
  text-align: center; */
}

/* Icon in the Elementor button with a custom line-height */

.elementor-button-icon {
  align-items: center;
}

/*******************************************************************************
 * FRAME BUTTON AND COMMAND LINK: COMMON
 *******************************************************************************/

/* Flat icon */

button i,
input[type=button] i,
input[type=reset] i,
input[type=submit] i,
a.elementor-button i,
a.aero-button i,
.aero-command-link i {
  text-shadow:
    0 0 2px var(--aero-c-frame-button-icon-stroke),
    0 0 2px var(--aero-c-frame-button-icon-stroke),
    0 0 2px var(--aero-c-frame-button-icon-stroke);
}

/*******************************************************************************
 * FRAME BUTTON
 *******************************************************************************/

button,
input[type=button],
input[type=reset],
input[type=submit],
a.elementor-button,
.elementor a.elementor-button,
a.aero-button,
.elementor a.aero-button {
  border-color: var(--aero-c-frame-button-border);
  box-shadow:
    inset 0 0 0 1px var(--aero-c-frame-button-light),
    0 0 0 1px var(--aero-c-frame-control-light);

  background-image: var(--aero-g-frame-button);
}

/* Hover */

button:hover,
input[type=button]:hover,
input[type=reset]:hover,
input[type=submit]:hover,
a.elementor-button:hover,
a.aero-button:hover {
  box-shadow:
    inset 0 0 0 1px var(--aero-c-frame-button-light-hover),
    0 0 0 1px var(--aero-c-frame-control-light);

  background-image:
    var(--aero-g-frame-button-hover-overlay),
    var(--aero-g-frame-button);
}

/* Active */

button:active,
input[type=button]:active,
input[type=reset]:active,
input[type=submit]:active,
a.elementor-button:active,
a.aero-button:active,
button.active,
input[type=button].active,
input[type=reset].active,
input[type=submit].active,
a.elementor-button.active,
a.aero-button.active {
  box-shadow:
    inset 0 0 0 1px var(--aero-c-frame-button-lowlight-active),
    0 0 0 1px var(--aero-c-frame-control-light);

  background-image:
    var(--aero-g-frame-button-active-overlay),
    var(--aero-g-frame-button);
}

/*******************************************************************************
 * FRAME COMMAND LINK
 *******************************************************************************/

.aero-command-link:not(.elementor-widget),
.aero-command-link.elementor-widget > a.elementor-button {
  border-color: transparent;
  box-shadow: none;

  background-image: none;
}

/* Hover */

.aero-command-link:not(.elementor-widget):hover,
.aero-command-link.elementor-widget > a.elementor-button:hover {
  border-color: var(--aero-c-frame-button-border);
  box-shadow:
    inset 0 0 0 1px var(--aero-c-frame-button-light-hover),
    0 0 0 1px var(--aero-c-frame-control-light);

  background-image:
    var(--aero-g-frame-button-hover-overlay),
    var(--aero-g-frame-button);
}

/* Active */

.aero-command-link:not(.elementor-widget):active,
.aero-command-link.elementor-widget > a.elementor-button:active,
.aero-command-link:not(.elementor-widget).active,
.aero-command-link.elementor-widget > a.elementor-button.active {
  border-color: var(--aero-c-frame-button-border);
  box-shadow:
    inset 0 0 0 1px var(--aero-c-frame-button-lowlight-active),
    0 0 0 1px var(--aero-c-frame-control-light);

  background-image:
    var(--aero-g-frame-button-active-overlay),
    var(--aero-g-frame-button);
}

/*******************************************************************************
 * AGGREGATOR BUTTON AND COMMAND LINK
 *******************************************************************************/

.aero-aggregator button,
.aero-aggregator input[type=button],
.aero-aggregator input[type=reset],
.aero-aggregator input[type=submit],
.aero-aggregator a.elementor-button,
.aero-aggregator a.aero-button,
.aero-aggregator .aero-command-link {
  color: var(--aero-c-aggregator-button-text);
}

/*******************************************************************************
 * NAVIGATION CLUSTER BUTTON
 *******************************************************************************/

.aero-nav-cluster button,
.aero-nav-cluster input[type=button],
.aero-nav-cluster input[type=reset],
.aero-nav-cluster input[type=submit],
.aero-nav-cluster a.elementor-button,
.aero-nav-cluster a.aero-button {
  padding-left: 20px;
  padding-right: 20px;
}

/* Rounding */

.aero-nav-cluster .aero-cluster-button-left {
  border-top-left-radius: 18px 100%;
  border-bottom-left-radius: 18px 100%;
}

.aero-nav-cluster .aero-cluster-button-right {
  border-top-right-radius: 18px 100%;
  border-bottom-right-radius: 18px 100%;
}

/*******************************************************************************
 * HEADER BUTTON
 *******************************************************************************/

header button,
header input[type=button],
header input[type=reset],
header input[type=submit],
header a.elementor-button,
header a.aero-button {
  background-image: none;
}

/* Hover */

header button:hover,
header input[type=button]:hover,
header input[type=reset]:hover,
header input[type=submit]:hover,
header a.elementor-button:hover,
header a.aero-button:hover {
  background-image: var(--aero-g-frame-button-hover-overlay);
}

/* Active */

header button:active,
header input[type=button]:active,
header input[type=reset]:active,
header input[type=submit]:active,
header a.elementor-button:active,
header a.aero-button:active,
header button.active,
header input[type=button].active,
header input[type=reset].active,
header input[type=submit].active,
header a.elementor-button.active,
header a.aero-button.active {
  background-image: var(--aero-g-frame-button-active-overlay);
}

/*******************************************************************************
 * HEADER COMMAND LINK
 *******************************************************************************/

/* Hover */

header .aero-command-link:not(.elementor-widget):hover,
header .aero-command-link.elementor-widget > a.elementor-button:hover {
  background-image: var(--aero-g-frame-button-hover-overlay);
}

/* Active */

header .aero-command-link:not(.elementor-widget):active,
header .aero-command-link.elementor-widget > a.elementor-button:active,
header .aero-command-link:not(.elementor-widget).active,
header .aero-command-link.elementor-widget > a.elementor-button.active {
  background-image: var(--aero-g-frame-button-active-overlay);
}

/*******************************************************************************
 * STANDARD BUTTON AND COMMAND LINK: COMMON
 *******************************************************************************/

/* Flat icon */

.aero-window-content button i,
.aero-window-content input[type=button] i,
.aero-window-content input[type=reset] i,
.aero-window-content input[type=submit] i,
.aero-window-content a.elementor-button i,
.aero-window-content a.aero-button i,
.aero-window-content .aero-command-link i {
  text-shadow:
    0 0 2px var(--aero-c-button-icon-stroke),
    0 0 2px var(--aero-c-button-icon-stroke),
    0 0 2px var(--aero-c-button-icon-stroke);
}

/*******************************************************************************
 * STANDARD BUTTON
 *******************************************************************************/

.aero-window-content button,
.aero-window-content input[type=button],
.aero-window-content input[type=reset],
.aero-window-content input[type=submit],
.aero-window-content a.elementor-button,
.aero-window-content a.aero-button {
  border-color: var(--aero-c-button-border);
  box-shadow: inset 0 0 0 1px var(--aero-c-button-light);
  
  background-color: var(--aero-c-button-bg);
  background-image: var(--aero-g-button);
}

/* Hover */

.aero-window-content button:hover,
.aero-window-content input[type=button]:hover,
.aero-window-content input[type=reset]:hover,
.aero-window-content input[type=submit]:hover,
.aero-window-content a.elementor-button:hover,
.aero-window-content a.aero-button:hover {
  border-color: var(--aero-c-control-border-hover);
  box-shadow: inset 0 0 0 1px var(--aero-c-button-light);
  
  background-image:
    linear-gradient(
      var(--aero-c-control-hover-overlay),
      var(--aero-c-control-hover-overlay)
    ),
    var(--aero-g-button);
}

/* Active */

.aero-window-content button:active,
.aero-window-content input[type=button]:active,
.aero-window-content input[type=reset]:active,
.aero-window-content input[type=submit]:active,
.aero-window-content a.elementor-button:active,
.aero-window-content a.aero-button:active,
.aero-window-content button.active,
.aero-window-content input[type=button].active,
.aero-window-content input[type=reset].active,
.aero-window-content input[type=submit].active,
.aero-window-content a.elementor-button.active,
.aero-window-content a.aero-button.active {
  border-color: var(--aero-c-control-border-active);
  box-shadow: 
    inset 1px 0 0 0 var(--aero-c-control-lowlight-active),
    inset 0 1px 0 0 var(--aero-c-control-lowlight-active);
  
  background-image:
    linear-gradient(
      var(--aero-c-control-active-overlay),
      var(--aero-c-control-active-overlay)
    ),
    var(--aero-g-button);
}

/*******************************************************************************
 * TITLE BAR BUTTON
 *******************************************************************************/

/* Wrapper */

.aero-title-bar-buttons {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  gap: 0;

  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.aero-title-bar-buttons::before {
  content: "";
  position: absolute;
  top: 1px;
  left: -1px;
  right: -1px;
  bottom: -1px;

  border-radius: inherit;
  border: 1px solid var(--aero-c-frame-control-light);
  border-top-width: 0;
}

/* Button */

.aero-title-bar-buttons > a,
.aero-title-bar-buttons > button {
  --aero-c-frame-control-light: transparent;
  padding: 0 10px;

  border-top-width: 0;
  border-right-width: 0;
  border-radius: 0;
}

.aero-title-bar-buttons > a:first-child,
.aero-title-bar-buttons > button:first-child {
  border-bottom-left-radius: 4px;
}

.aero-title-bar-buttons > a:last-child,
.aero-title-bar-buttons > button:last-child {
  border-right-width: 1px;
  border-bottom-right-radius: 4px;
}


/*******************************************************************************
 * TEXT INPUT: COMMON
 *******************************************************************************/

input[type=text],
input[type=number],
input[type=email],
input[type=tel],
input[type=url],
input[type=password],
input[type=search],
textarea {
  padding: 7px;
  line-height: inherit;

  border-radius: 0;
  border: 1px solid;

  background-clip: padding-box;
}

/*******************************************************************************
 * FRAME TEXT INPUT
 *******************************************************************************/

input[type=text],
input[type=number],
input[type=email],
input[type=tel],
input[type=url],
input[type=password],
input[type=search],
textarea {
  border-image-slice: 1;
  border-image-source: linear-gradient(
    var(--aero-c-frame-button-border),
    var(--aero-c-frame-control-border)
  );
  box-shadow:
    inset 0 0 0 1px var(--aero-c-frame-button-light),
    0 0 0 1px var(--aero-c-frame-control-light);

  background-color: var(--aero-c-frame-control-bg);
}

/* Focus */

input[type=text]:focus,
input[type=number]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=url]:focus,
input[type=password]:focus,
input[type=search]:focus,
textarea:focus {
  background-color: var(--aero-c-frame-control-bg-focus);
}

/* Placeholder */

input[type=text]::placeholder,
input[type=number]::placeholder,
input[type=email]::placeholder,
input[type=tel]::placeholder,
input[type=url]::placeholder,
input[type=password]::placeholder,
input[type=search]::placeholder,
textarea::placeholder {
  color: var(--aero-c-text-muted);
}

/*******************************************************************************
 * STANDARD TEXT INPUT
 *******************************************************************************/

.aero-window-content input[type=text],
.aero-window-content input[type=number],
.aero-window-content input[type=email],
.aero-window-content input[type=tel],
.aero-window-content input[type=url],
.aero-window-content input[type=password],
.aero-window-content input[type=search],
.aero-window-content textarea {
  border-color: var(--aero-c-control-border);
  border-top-color: var(--aero-c-button-border);
  border-image-slice: initial;
  border-image-source: none;
  box-shadow: none;

  background-color: var(--aero-c-control-bg);
}

/* Focus */

.aero-window-content input[type=text]:focus,
.aero-window-content input[type=number]:focus,
.aero-window-content input[type=email]:focus,
.aero-window-content input[type=tel]:focus,
.aero-window-content input[type=url]:focus,
.aero-window-content input[type=password]:focus,
.aero-window-content input[type=search]:focus,
.aero-window-content textarea:focus {
  border-color: var(--aero-c-control-border-focus-lo);
  border-top-color: var(--aero-c-control-border-focus-hi);

  background-color: inherit;
}
