/*
 * Copyright (c) 2026 Logan Medical Group, LLC. All rights reserved.
 *
 * Contributors
 * Tyler Morgan <git@tylerjm.org>
 */

.phone-platter::backdrop {
  background-color: transparent;
}

.close-phone-platter {
  display: flex;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5px;
  color: var(--dimmed-color);
  width: fit-content;
  transition: all 0.2s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.close-phone-platter-text {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  color: var(--dimmed-color);
  border-style: none;
  padding: 3px 20px;
  border-radius: 25px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .close-phone-platter-text:hover {
    color: light-dark(var(--skin-pink), var(--skin-pink-lighter));
  }
}

@media (hover: none) {
  .close-phone-platter-text:active {
    color: light-dark(var(--skin-pink), var(--skin-pink-lighter));
  }
}

.call-phone-platter, .text-phone-platter {
  display: flex;
  justify-content: center;
  border: solid 1px light-dark(var(--skin-pink), var(--skin-pink-lighter));
  border-radius: 25px;
  padding-top: 12px;
  padding-bottom: 12px;
  max-width: 350px;
  width: 100%;
  fill: var(--text-color);
  margin: auto;
}

@media (hover: hover) {
  .call-phone-platter:hover, .text-phone-platter:hover {
    background-color: light-dark(var(--skin-pink-lightest-10), var(--skin-pink-lightest-5));
  }
}

@media (hover: none) {
  .call-phone-platter:active, .text-phone-platter:active {
    background-color: light-dark(var(--skin-pink-lightest-10), var(--skin-pink-lightest-5));
  }
}

@media (hover: hover) {
  .close-phone-platter:hover {
    color: light-dark(var(--skin-pink), var(--skin-pink-lighter));
  }

  .text-phone-platter:hover .icon-platter-img {
    fill: light-dark(var(--skin-pink), var(--skin-pink-lighter));
  }
}

@media (hover: none) {
  .close-phone-platter:active {
    color: light-dark(var(--skin-pink), var(--skin-pink-lighter));
  }

  .text-phone-platter:active .icon-platter-img {
    fill: light-dark(var(--skin-pink), var(--skin-pink-lighter));
  }
}

.close-phone-platter-text:focus-visible {
  outline: solid 2px var(--ice-black);
}

[data-phone-platter] {
  bottom: 0;
  transition: bottom 0.5s ease-out;
}

[data-phone-platter].visible {
  bottom: 0;
  display: flex;
}

[data-email-platter] {
  bottom: 0;
  transition: bottom 0.5s ease-out;
}

[data-email-platter].visible {
  bottom: 0;
  display: flex;
}

.icon-platter-img {
  vertical-align: bottom;
  margin-top: 3px;
  margin-right: 4px;
  fill: var(--text-color);
  transition: all 0.2s ease;
}

[data-phone-platter], [data-email-platter] {
  all: unset; /* strips dialog default styles */
  position: fixed;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 64px);
  list-style: none;
  max-width: 500px;
  height: fit-content;
  display: none;
  flex-direction: column;
  background-color: light-dark(var(--strawberry-white-50), var(--ice-black-40));
  backdrop-filter: blur(20px);
  border: 2px solid var(--skin-pink-lightest-30);
  border-radius: 35px;
  padding-top: 10px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  box-shadow: 0 0 8px var(--skin-pink-dark-30);
  overflow-x: hidden;
  overflow-y: auto;
  fill: var(--text-color);
  z-index: 20;
}

[data-phone-platter][open] {
  display: flex; /* shown only when dialog is open */
}

[data-email-platter][open] {
  display: flex; /* shown only when dialog is open */
}

.phone-platter-actions {
  display: flex;
  justify-content: center;
  flex-direction: column;
  row-gap: 10px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

dialog[data-phone-platter] {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  transition: bottom 0.4s cubic-bezier(0.47,1.64,0.41,0.8);
}

dialog[data-email-platter] {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  transition: bottom 0.4s cubic-bezier(0.47,1.64,0.41,0.8);
}

dialog[data-phone-platter].visible {
  bottom: 10px;
}

dialog[data-email-platter].visible {
  bottom: 10px;
}
.phone-share-options-flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  max-width: 350px;
  width: 100% !important;
  height: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.share-phone-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  column-gap: 5px;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  border: solid 1px light-dark(var(--skin-pink), var(--skin-pink-lighter));
  background-color: transparent;
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

@media (hover: hover) {
  .share-phone-buttons:hover {
    background-color: light-dark(var(--skin-pink-lightest-10), var(--skin-pink-lightest-5));
    color: light-dark(var(--skin-pink), var(--skin-pink-lighter));
  }
  .share-phone-buttons:hover .share-phone-img {
    fill: light-dark(var(--skin-pink), var(--skin-pink-lighter));
  }
}

@media (hover: none) {
  .share-phone-buttons:active {
    background-color: light-dark(var(--skin-pink-lightest-10), var(--skin-pink-lightest-5));
    color: light-dark(var(--skin-pink), var(--skin-pink-lighter));
  }
  .share-phone-buttons:active .share-phone-img {
    fill: light-dark(var(--skin-pink), var(--skin-pink-lighter));
  }
}

.share-phone-img {
  min-width: 16px;
  transition: all 0.2s ease;
}

.phone-platter-button-text {
  display: inline-block;
  margin-top: 2px;
  text-align: center;
  width: fit-content;
}

@media (max-width: 421px) {
  .phone-platter-button-text {
    width: min-content;
    text-align: left;
  }
}

#copyBtn {
  transition: all 0.2s ease;
}

.phone-platter-mini-bar {
  margin: 0 auto;
  max-width: 150px;
  width: 100%;
  background-color: light-dark(var(--skin-pink), var(--skin-pink-lighter));
  border-radius: 3px;
  height: 1px;
  margin-bottom: 20px;
}

.phone-platter-number-text {
  color: light-dark(var(--skin-pink-darkest-60), var(--skin-pink-lighter));
}

.phone-platter-contacts:hover {
  color: light-dark(var(--skin-pink), var(--skin-pink-lighter));
}