/*!
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-Dialog{
  --spectrum-dialog-fullscreen-header-text-size:28px;
  --spectrum-dialog-min-inline-size:288px;
  --spectrum-dialog-confirm-small-width:400px;
  --spectrum-dialog-confirm-medium-width:480px;
  --spectrum-dialog-confirm-large-width:640px;
  --spectrum-dialog-confirm-divider-block-spacing-start:var(--spectrum-spacing-300);
  --spectrum-dialog-confirm-divider-block-spacing-end:var(--spectrum-spacing-200);
  --spectrum-dialog-confirm-description-text-color:var(--spectrum-gray-800);
  --spectrum-dialog-confirm-title-text-color:var(--spectrum-gray-900);
  --spectrum-dialog-confirm-description-text-line-height:var(--spectrum-line-height-100);
  --spectrum-dialog-confirm-title-text-line-height:var(--spectrum-line-height-100);
  --spectrum-dialog-heading-font-weight:var(--spectrum-heading-sans-serif-font-weight);


  --spectrum-dialog-confirm-description-padding:var(--spectrum-spacing-50);
  --spectrum-dialog-confirm-description-margin:calc(var(--spectrum-spacing-50) * -1);
  --spectrum-dialog-confirm-footer-padding-top:var(--spectrum-spacing-600);
  --spectrum-dialog-confirm-gap-size:var(--spectrum-component-pill-edge-to-text-100);
  --spectrum-dialog-confirm-buttongroup-padding-top:var(--spectrum-spacing-600);
  --spectrum-dialog-confirm-close-button-size:var(--spectrum-component-height-100);
  --spectrum-dialog-confirm-close-button-padding:calc(26px - var(--spectrum-component-bottom-to-text-300));
  --spectrum-dialog-confirm-divider-height:var(--spectrum-spacing-50);
}

.spectrum-Dialog{
  display:flex;
  box-sizing:border-box;
  inline-size:-moz-fit-content;
  inline-size:fit-content;
  min-inline-size:var(--mod-dialog-min-inline-size, var(--spectrum-dialog-min-inline-size));
  max-inline-size:100%;

  max-block-size:inherit;

  outline:none;
}

.spectrum-Dialog--small{
  inline-size:var(--mod-dialog-confirm-small-width, var(--spectrum-dialog-confirm-small-width));
}

.spectrum-Dialog--medium{
  inline-size:var(--mod-dialog-confirm-medium-width, var(--spectrum-dialog-confirm-medium-width));
}

.spectrum-Dialog--large{
  inline-size:var(--mod-dialog-confirm-large-width, var(--spectrum-dialog-confirm-large-width));
}

.spectrum-Dialog-hero{
  grid-area:hero;
  block-size:var(--mod-dialog-confirm-hero-height, var(--spectrum-dialog-confirm-hero-height));

  border-start-start-radius:var(--mod-dialog-confirm-border-radius, var(--spectrum-dialog-confirm-border-radius));
  border-start-end-radius:var(--mod-dialog-confirm-border-radius, var(--spectrum-dialog-confirm-border-radius));

  background-size:cover;
  background-position:center center;
  overflow:hidden;
}

.spectrum-Dialog .spectrum-Dialog-grid{
  display:grid;
  grid-template-columns:var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto 1fr auto minmax(0,  auto) var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid));
  grid-template-rows:auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto auto 1fr auto var(
      --mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)
    );
  grid-template-areas:"hero hero    hero    hero        hero        hero" ".    .       .       .           .           ." ".    heading header  header      header      ." ".    divider divider divider     divider     ." ".    content content content     content     ." ".    footer  footer  buttonGroup buttonGroup ." ".    .       .       .           .           .";
  inline-size:100%;
}

.spectrum-Dialog-heading{
  grid-area:heading;

  margin:0;

  font-size:var(--mod-dialog-confirm-title-text-size, var(--spectrum-dialog-confirm-title-text-size));
  font-weight:var(--mod-dialog-heading-font-weight, var(--spectrum-dialog-heading-font-weight));
  line-height:var(--mod-dialog-confirm-title-text-line-height, var(--spectrum-dialog-confirm-title-text-line-height));
  color:var(--mod-dialog-confirm-title-text-color, var(--spectrum-dialog-confirm-title-text-color));
  outline:none;

  padding-inline-end:var(--mod-dialog-confirm-gap-size, var(--spectrum-dialog-confirm-gap-size));
}

.spectrum-Dialog-heading.spectrum-Dialog-heading--noHeader{
    grid-area:heading-start / heading-start / header-end / header-end;
    padding-inline-end:0;
  }

.spectrum-Dialog-header{
  grid-area:header;
  display:flex;
  align-items:center;
  justify-content:flex-end;

  box-sizing:border-box;

  outline:none;
}

.spectrum-Dialog .spectrum-Dialog-divider{
  grid-area:divider;
  inline-size:100%;
  margin-block-start:var(--mod-dialog-confirm-divider-block-spacing-end, var(--spectrum-dialog-confirm-divider-block-spacing-end));
  margin-block-end:var(--mod-dialog-confirm-divider-block-spacing-start, var(--spectrum-dialog-confirm-divider-block-spacing-start));
}

.spectrum-Dialog--fullscreen .spectrum-Dialog-heading + .spectrum-Dialog-divider{
  margin-block-end:calc(var(--mod-dialog-confirm-divider-block-spacing-start, var(--spectrum-dialog-confirm-divider-block-spacing-start)) - (var(--mod-dialog-confirm-description-padding, var(--spectrum-dialog-confirm-description-padding)) * 2));
}

.spectrum-Dialog--noDivider .spectrum-Dialog-divider{
    display:none;
  }

.spectrum-Dialog--noDivider .spectrum-Dialog-heading{
    padding-block-end:calc(
      var(--mod-dialog-confirm-divider-block-spacing-end, var(--spectrum-dialog-confirm-divider-block-spacing-end)) +
        var(--mod-dialog-confirm-divider-block-spacing-start, var(--spectrum-dialog-confirm-divider-block-spacing-start)) +
        var(--mod-dialog-confirm-divider-height, var(--spectrum-dialog-confirm-divider-height))
    );
  }

.spectrum-Dialog-content{
  grid-area:content;
  box-sizing:border-box;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;

  outline:none;

  font-size:var(--mod-dialog-confirm-description-text-size, var(--spectrum-dialog-confirm-description-text-size));
  font-weight:var(--mod-dialog-confirm-description-font-weight, var(--spectrum-regular-font-weight));
  line-height:var(--mod-dialog-confirm-description-text-line-height, var(--spectrum-dialog-confirm-description-text-line-height));
  color:var(--mod-dialog-confirm-description-text-color, var(--spectrum-dialog-confirm-description-text-color));
  padding:calc(var(--mod-dialog-confirm-description-padding, var(--spectrum-dialog-confirm-description-padding)) * 2);
  margin:0 var(--mod-dialog-confirm-description-margin, var(--spectrum-dialog-confirm-description-margin));
}

.spectrum-Dialog-footer{
  grid-area:footer;
  padding-block-start:var(--mod-dialog-confirm-footer-padding-top, var(--spectrum-dialog-confirm-footer-padding-top));

  display:flex;
  flex-wrap:wrap;

  outline:none;
}

.spectrum-Dialog-footer > *, .spectrum-Dialog-footer > .spectrum-Button + .spectrum-Button{
    margin-block-end:0;
  }

.spectrum-Dialog-buttonGroup{
  grid-area:buttonGroup;
  padding-block-start:var(--mod-dialog-confirm-buttongroup-padding-top, var(--spectrum-dialog-confirm-buttongroup-padding-top));
  display:flex;
  justify-content:flex-end;
  padding-inline-start:var(--mod-dialog-confirm-gap-size, var(--spectrum-dialog-confirm-gap-size));
}

.spectrum-Dialog-buttonGroup.spectrum-Dialog-buttonGroup--noFooter{
    grid-area:footer-start / footer-start / buttonGroup-end / buttonGroup-end;
  }

.spectrum-Dialog.spectrum-Dialog--dismissable .spectrum-Dialog-grid{
  grid-template-columns:var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto 1fr auto minmax(0,  auto) minmax(0,  var(--mod-dialog-confirm-close-button-size, var(--spectrum-dialog-confirm-close-button-size))) var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid));
  grid-template-rows:auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto auto 1fr auto var(
      --mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)
    );
  grid-template-areas:"hero hero    hero    hero        hero        hero        hero" ".    .       .       .           .           closeButton closeButton" ".    heading header  header      typeIcon    closeButton closeButton" ".    divider divider divider     divider     divider     ." ".    content content content     content     content     ." ".    footer  footer  buttonGroup buttonGroup buttonGroup ." ".    .       .       .           .           .           .";
}

.spectrum-Dialog.spectrum-Dialog--dismissable .spectrum-Dialog-grid .spectrum-Dialog-buttonGroup{
    display:none;
  }

.spectrum-Dialog.spectrum-Dialog--dismissable .spectrum-Dialog-grid .spectrum-Dialog-footer{
    grid-area:footer / footer/ buttonGroup / buttonGroup;
    color:var(--mod-dialog-confirm-description-text-color, var(--spectrum-dialog-confirm-description-text-color));
  }

.spectrum-Dialog-closeButton{
  grid-area:closeButton;
  align-self:start;
  justify-self:end;

  margin-inline-end:var(--mod-dialog-confirm-close-button-padding, var(--spectrum-dialog-confirm-close-button-padding));
  margin-block-start:var(--mod-dialog-confirm-close-button-padding, var(--spectrum-dialog-confirm-close-button-padding));
}

.spectrum-Dialog--fullscreen{
  inline-size:100%;
  block-size:100%;
}

.spectrum-Dialog--fullscreenTakeover{
  inline-size:100%;
  block-size:100%;

  border-radius:0;
}

.spectrum-Dialog--fullscreen, .spectrum-Dialog--fullscreenTakeover{
  max-block-size:none;
  max-inline-size:none;
}

.spectrum-Dialog--fullscreen.spectrum-Dialog .spectrum-Dialog-grid, .spectrum-Dialog--fullscreenTakeover.spectrum-Dialog .spectrum-Dialog-grid{
    display:grid;
    grid-template-columns:var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) 1fr auto auto var(
        --mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)
      );
    grid-template-rows:var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto auto 1fr var(
        --mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)
      );
    grid-template-areas:".    .       .       .            ." ".    heading header  buttonGroup  ." ".    divider divider divider      ." ".    content content content      ." ".    .       .       .            .";
  }

.spectrum-Dialog--fullscreen .spectrum-Dialog-heading, .spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-heading{
    font-size:var(--mod-dialog-fullscreen-header-text-size, var(--spectrum-dialog-fullscreen-header-text-size));
  }

.spectrum-Dialog--fullscreen .spectrum-Dialog-content, .spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-content{
    max-block-size:none;


  }

.spectrum-Dialog--fullscreen .spectrum-Dialog-footer, .spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-footer, .spectrum-Dialog--fullscreen .spectrum-Dialog-buttonGroup, .spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-buttonGroup{
    padding-block-start:0;
  }

.spectrum-Dialog--fullscreen .spectrum-Dialog-footer, .spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-footer{
    display:none;
  }

.spectrum-Dialog--fullscreen .spectrum-Dialog-buttonGroup, .spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-buttonGroup{
    grid-area:buttonGroup;
    align-self:start;
  }

@media screen and (width <= 700px){
  .spectrum-Dialog .spectrum-Dialog-grid{
    grid-template-columns:var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto 1fr auto minmax(0,  auto) var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid));
    grid-template-rows:auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto auto auto 1fr auto var(
        --mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)
      );
    grid-template-areas:"hero hero    hero    hero        hero        hero" ".    .       .       .           .           ." ".    heading heading heading     heading   ." ".    header  header  header      header      ." ".    divider divider divider     divider     ." ".    content content content     content     ." ".    footer  footer  buttonGroup buttonGroup ." ".    .       .       .           .           .";
  }

  .spectrum-Dialog.spectrum-Dialog--dismissable .spectrum-Dialog-grid{
    grid-template-columns:var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto 1fr auto minmax(0,  auto) minmax(0,  var(--mod-dialog-confirm-close-button-size, var(--spectrum-dialog-confirm-close-button-size))) var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid));
    grid-template-rows:auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto auto auto 1fr auto var(
        --mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)
      );
    grid-template-areas:"hero hero    hero    hero        hero        hero        hero" ".    .       .       .           .           closeButton closeButton" ".    heading heading heading     heading    closeButton closeButton" ".    header  header  header      header      header      ." ".    divider divider divider     divider     divider     ." ".    content content content     content     content     ." ".    footer  footer  buttonGroup buttonGroup buttonGroup ." ".    .       .       .           .           .           .";
  }

  .spectrum-Dialog .spectrum-Dialog-header{
    justify-content:flex-start;
  }
    .spectrum-Dialog--fullscreen.spectrum-Dialog .spectrum-Dialog-grid, .spectrum-Dialog--fullscreenTakeover.spectrum-Dialog .spectrum-Dialog-grid{
      display:grid;
      grid-template-columns:var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) 1fr var(
          --mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)
        );
      grid-template-rows:var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto auto auto 1fr auto var(
          --mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)
        );
      grid-template-areas:".    .            ." ".    heading      ." ".    header       ." ".    divider      ." ".    content      ." ".    buttonGroup  ." ".    .            .";
    }

    .spectrum-Dialog--fullscreen .spectrum-Dialog-buttonGroup, .spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-buttonGroup{
      padding-block-start:var(
        --mod-dialog-confirm-buttongroup-padding-top, var(--spectrum-dialog-confirm-buttongroup-padding-top)
      );
    }

    .spectrum-Dialog--fullscreen .spectrum-Dialog-heading, .spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-heading{
      font-size:var(--mod-dialog-confirm-title-text-size, var(--spectrum-dialog-confirm-title-text-size));
    }
}

@media (forced-colors: active){
  .spectrum-Dialog{
    border:solid;
  }
}
