/*!
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/
.spectrum-ColorArea{
  --spectrum-colorarea-border-radius:var(--spectrum-color-area-border-rounding);
  --spectrum-colorarea-border-color:rgba(0, 0, 0, 0.1);
  --spectrum-colorarea-disabled-background-color:var(--spectrum-disabled-background-color);
  --spectrum-colorarea-border-width:var(--spectrum-color-area-border-width);
  --spectrum-colorarea-height:var(--spectrum-color-area-height);
  --spectrum-colorarea-width:var(--spectrum-color-area-width);
  --spectrum-colorarea-min-width:var(--spectrum-color-area-minimum-width);
  --spectrum-colorarea-min-height:var(--spectrum-color-area-minimum-height);
}
@media (forced-colors: active){
  .spectrum-ColorArea{
    --highcontrast-colorarea-border-color-disabled:GrayText;
    --highcontrast-colorarea-border-color:Canvas;
    --highcontrast-colorarea-fill-color-disabled:Canvas;
  }
    .spectrum-ColorArea.is-disabled{
      forced-color-adjust:none;
    }

  .spectrum-ColorArea-gradient, .spectrum-ColorHandle-color{
    forced-color-adjust:none;
  }
}
.spectrum-ColorArea{
  position:relative;
  display:inline-block;
  cursor:default;
  -webkit-user-select:none;
          user-select:none;
  min-inline-size:var(--mod-colorarea-min-width, var(--spectrum-colorarea-min-width));
  min-block-size:var(--mod-colorarea-min-height, var(--spectrum-colorarea-min-height));
  inline-size:var(--mod-colorarea-width, var(--spectrum-colorarea-width));
  block-size:var(--mod-colorarea-height, var(--spectrum-colorarea-height));
  box-sizing:border-box;
  border-radius:var(--mod-colorarea-border-radius, var(--spectrum-colorarea-border-radius));
  border:var(--mod-colorarea-border-width, var(--spectrum-colorarea-border-width)) solid var(--highcontrast-colorarea-border-color, var(--mod-colorarea-border-color, var(--spectrum-colorarea-border-color)));
}
.spectrum-ColorArea.is-focused{
    z-index:2;
  }
.spectrum-ColorArea.is-disabled{
    pointer-events:none;
    background:var(--highcontrast-colorarea-fill-color-disabled, var(--mod-colorarea-disabled-background-color, var(--spectrum-colorarea-disabled-background-color)));
    border:var(--mod-colorarea-border-width, var(--spectrum-colorarea-border-width)) solid var(--highcontrast-colorarea-border-color-disabled);
  }
.spectrum-ColorArea.is-disabled .spectrum-ColorArea-gradient{
      display:none;
    }
.spectrum-ColorArea-handle{
  transform:translate(calc(var(--mod-colorarea-width, var(--spectrum-colorarea-width)) - var(--spectrum-colorarea-border-width)), 0);
  inset-block-start:0;
}
[dir="rtl"] .spectrum-ColorArea-handle{
    inset-inline-end:0;
  }
.spectrum-ColorArea-handle:dir(rtl){
    inset-inline-end:0;
  }
.spectrum-ColorArea-gradient{
  inline-size:100%;
  block-size:100%;
  border-radius:var(--mod-colorarea-border-radius, var(--spectrum-colorarea-border-radius));
}
.spectrum-ColorArea-slider{
  opacity:0;
  position:absolute;
  inset-block-start:0;
  inset-inline-start:0;
  inline-size:100%;
  block-size:100%;
  z-index:0;
  margin:0;
  pointer-events:none;
}
