/**
 * ++++++++++++++++++++++
 * Add-to-Calendar Button
 * ++++++++++++++++++++++
 *
 * Style: Default
 *
 * Version: 1.14.2
 * Creator: Jens Kuerschner (https://jenskuerschner.de)
 * Project: https://github.com/add2cal/add-to-calendar-button
 * License: MIT with “Commons Clause” License Condition v1.0
 * 
 */

.atcb {
  display: none;
}

/******************************
 * Global colors and shadows
 */

:root {
  --base-font-size: 16px;
  --atcb-keyboard-focus: #1e90ff;
  --atcb-background: #f5f5f5;
  --atcb-background-2: #fff;
  --atcb-border: #d2d2d2;
  --atcb-text: #333;
  --atcb-text-2: #000;
  --atcb-close-background: #e5e5e5;
  --atcb-close-text: #777;
  --atcb-overlay-background: rgba(20 20 20 / 25%);
  --atcb-modal-btn-background: #f5f5f5;
  --atcb-modal-btn-background-2: #fff;
  --atcb-modal-btn-border: #dfdfdf;
  --atcb-modal-btn-border-2: #d2d2d2;
  --atcb-modal-btn-text: #333;
  --atcb-modal-btn-text-2: #161616;
  --atcb-modal-btn-sec-text: #4f4f4f;


}

/* Dark mode */

.atcb-button-wrapper.atcb-dark,
body.atcb-dark .atcb-button-wrapper.atcb-bodyScheme,
.atcb-list.atcb-dark,
body.atcb-dark .atcb-list.atcb-bodyScheme,
.atcb-modal-box.atcb-dark,
body.atcb-dark .atcb-modal-box.atcb-bodyScheme {
  --atcb-background: #2e2e2e;
  --atcb-background-2: #373737;
  --atcb-border: #4d4d4d;
  --atcb-text: #bebebe;
  --atcb-text-2: #e8e8e8;
  --atcb-close-background: #282828;
  --atcb-overlay-background: rgba(20 20 20 / 60%);

}

/******************************
 * The triggering button
 */

.atcb-button-wrapper {
  display: inline-block;
  font-size: var(--base-font-size);
  padding: 0;
  position: relative;
}

.atcb-button {
  align-items: center;
  background-color: var(--atcb-background);
  border: 1px solid var(--atcb-border);
  border-radius: 0px;

  color: var(--atcb-text);
  cursor: pointer;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 600;
  justify-content: center;
  line-height: 1.2em;
  margin: .10em;

  max-width: 350px;
  padding: .60em .95em;
  position: relative;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  width: auto;
  z-index: 1;
}

.atcb-button:focus,
.atcb-button:hover {
  background-color: var(--atcb-background-2);

}

.atcb-button:focus-visible {
  outline: 0px solid var(--atcb-keyboard-focus);
}

.atcb-button.atcb-active:not(.atcb-modal-style, .atcb-dropoverlay),
.atcb-button.atcb-single:focus,
.atcb-button.atcb-single:hover {
  background-color: var(--atcb-background-2);


  z-index: 160;
}

.atcb-button.atcb-active.atcb-dropoverlay {
  min-width: 172px;
  z-index: 150;
}

/******************************
 * Button Icon (also base for list icons) & Text
 */

.atcb-icon {
  height: 1em;
  margin-bottom: .3em;
  margin-right: .65em;
}

.atcb-icon svg {
  height: 100%;
  fill: var(--atcb-text);
  width: auto;
}

.atcb-text {
  overflow-wrap: anywhere;
}

/******************************
 * Options List
 */

.atcb-dropdown-anchor {
  bottom: 4px;
  height: 1px;
  width: 100%;
  opacity: 0;
  position: absolute;
}

.atcb-list-wrapper {
  box-sizing: border-box;
  padding: 0 4px;
  position: absolute;
  z-index: 150;
}

.atcb-list-wrapper.atcb-dropoverlay {
  z-index: 160;
}

.atcb-list {
  border-radius: 0 0 6px 6px;
  box-sizing: border-box;
  box-shadow: var(--atcb-shadow-list);
  color: var(--atcb-text);
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--base-font-size);
  max-width: 100%;
  position: relative;
  user-select: none;
  width: 100%;
}

.atcb-list-item {
  align-items: center;
  background-color: var(--atcb-background);
  border: 1px solid var(--atcb-border);
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  font-size: 1em;
  left: 50%;
  line-height: 1.75em;
  padding: .8em .9em;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.atcb-list-item:hover {
  background-color: var(--atcb-background-2);
  color: var(--atcb-text-2);
}

.atcb-list-item:focus-visible {
  background-color: var(--atcb-background-2);
  color: var(--atcb-keyboard-focus);
  font-size: .95em;
  font-weight: 600;
  outline: none;
}

.atcb-list-item:last-child {
  border-radius: 0 0 6px 6px;
}

.atcb-list .atcb-list-item:not(:first-child) {
  border-top-style: none;
}

.atcb-dropup .atcb-list-item:last-child {
  border-radius: 0;
  padding-bottom: 1.25em;
}

.atcb-dropup .atcb-list-item:first-child,
.atcb-dropoverlay .atcb-list .atcb-list-item:first-child,
.atcb-list.atcb-modal .atcb-list-item:first-child {
  border-radius: 6px 6px 0 0;
}

.atcb-dropoverlay .atcb-list .atcb-list-item:only-child,
.atcb-list.atcb-modal .atcb-list-item:only-child {
  border-radius: 6px;
}

.atcb-list.atcb-generated-button:not(.atcb-modal) .atcb-list-item:first-child {
  padding-top: 1.25em;
}

.atcb-dropup .atcb-list.atcb-generated-button:not(.atcb-modal) .atcb-list-item:first-child,
.atcb-dropoverlay .atcb-list.atcb-generated-button:not(.atcb-modal) .atcb-list-item:first-child {
  padding-top: .8em;
}

.atcb-dropoverlay .atcb-list,
.atcb-list.atcb-modal {
  border-radius: 6px;
}

.atcb-list.atcb-modal {
  box-shadow: var(--atcb-shadow-list-modal);
}

.atcb-list-item .atcb-icon {
  margin-bottom: .44em;
  margin-right: .5em;
  width: 1.125em;
}

.atcb-list-item-close {
  background-color: var(--atcb-close-background);
}

.atcb-list-item.atcb-list-item-close {
  color: var(--atcb-close-text);
}

.atcb-list-item-close svg {
  fill: var(--atcb-close-text);
}

/******************************
 * Modal
 */

/* we disable scrolling only on small screens - only there, the case is relevant and at the same time, they have no scrollbars and therefore no "jumping" */
@media only screen and (max-width: 575px) {
  .atcb-modal-no-scroll {
    overflow-y: hidden;
  }
}

.atcb-modal {
  display: block;
  margin: auto;
  min-width: 250px;
  width: auto;
  position: relative;
  z-index: 150;
}

.atcb-modal-box {
  background-color: var(--atcb-background-2);
  box-shadow: var(--atcb-shadow-modal);
  color: var(--atcb-text-2);
  cursor: default;
  border-radius: 6px;
  border: 1px solid var(--atcb-border);
  box-sizing: border-box;  
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--base-font-size);
  line-height: 1.5em;
  padding: 1.25em 1.5em;
  text-align: left;
  user-select: none;
  touch-action: manipulation;
  width: 100%;
  max-width: 32em;
  -webkit-tap-highlight-color: transparent;
}

.atcb-modal-close {
  cursor: pointer;
  display: inline-block;
  height: 1.125em;
  position: absolute;
  right: 1.25em;
}

.atcb-modal-close svg {
  height: 100%;
  fill: var(--atcb-close-text);
  width: auto;
}

.atcb-modal-close:hover {
  opacity: .6;
}

.atcb-modal-close:focus-visible {
  outline: 2px solid var(--atcb-keyboard-focus);
}

.atcb-modal-headline {
  align-items: center;
  display: flex;
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.5em;
  margin: 1.25em .9em;
  text-transform: uppercase;
}

.atcb-modal-headline-icon {
  height: 1.625em;
  margin-bottom: .125em;
  margin-right: .9em;
}

.atcb-modal-headline-icon svg {
  height: 100%;
  fill: var(--atcb-text-2);
  width: auto;
}

.atcb-modal-content {  
  margin: 30px 15px;
}

.atcb-modal-buttons {
  padding: .9em 0;
  text-align: center;
  width: 100%;
}

button.atcb-modal-btn,
a.atcb-modal-btn {
  background-color: var(--atcb-modal-btn-background);
  border: 1px solid var(--atcb-modal-btn-border);
  border-radius: 6px;
  box-shadow: var(--atcb-shadow-modal-button);
  color: var(--atcb-modal-btn-sec-text);
  cursor: pointer;
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.5em;
  margin: .625em;
  padding: .625em 1.25em;
  position: relative;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button.atcb-modal-btn.atcb-modal-btn-primary,
a.atcb-modal-btn.atcb-modal-btn-primary {
  border: 1px solid var(--atcb-modal-btn-border-2);
  box-shadow: var(--atcb-shadow-modal-button-primary);
  color: var(--atcb-modal-btn-text);
}

button.atcb-modal-btn:hover,
a.atcb-modal-btn:hover {
  background-color: var(--atcb-modal-btn-background-2);
  box-shadow: var(--atcb-shadow-modal-button-hover);
  color: var(--atcb-modal-btn-text-2);
  text-decoration: none;
}

button.atcb-modal-btn:focus-visible,
a.atcb-modal-btn:focus-visible {
  background-color: var(--atcb-modal-btn-background-2);
  outline: 2px solid var(--atcb-keyboard-focus);
}

/******************************
 * Background Overlay
 */

#atcb-bgoverlay {
  animation: atcb-bgoverlay-animate 0.1s ease 0s 1 normal forwards;
  backdrop-filter: blur(2px);
  background-color: var(--atcb-overlay-background);
  box-sizing: border-box;
  display: flex;

  /* could become simply 100dvh in the future - with regular padding then */
  height: calc(100vh + 100px);
  left: 0;
  right: 0;
  top: 0;
  min-height: 100%;
  min-width: 100%;
  opacity: 0;
  overflow-y: auto;
  padding: 30px 20px 130px;
  position: fixed;
  width: 100vw;
  z-index: 120;
}

#atcb-bgoverlay.atcb-animate-bg {
  animation: atcb-bgoverlay-animate 0.3s ease 0s 1 normal forwards;
}

#atcb-bgoverlay.atcb-no-bg {
  animation: none;
  background-color: var(--atcb-text-2);
  backdrop-filter: none;
  opacity: 0;
}

@keyframes atcb-bgoverlay-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#atcb-bgoverlay.atcb-click:hover {
  cursor: var(--bg-cursor);
}
