@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

:root 
{
  --ultraviolet: #4b5fd8;
  --jacaranda: #ab9dff;
  --buttercream: #fffeec;
  --sailboat: #4d86c1;
  --ballet: #edb4f8;
  --tangerine: #ff681d;
  --sky: #7ab8ff;
  --mint: #b0e7ec;
  --banana-cake: #e9fc88;
  --sorbet: #ffb985;
  --sorbet-light: #ffead9;
  --translucent-black: #00000011;
  --medium-gray: #707070;
  --border: #000;
  --dev: #f00;
  --text-light: #fff;
  --text-dark: #000;
  --table-hdr-text: #4F60D1;
  --table-cell: #D8E7FB;
  --form-label: #707070;
  --light-blue: #BFDDFF;
  --light-gray: #D9D7D7;
}

html
{
  font-size: 20px;
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  background-color: var(--buttercream);
  overflow-x: hidden;
}
body
{
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-x: hidden;
}
h1
{
  font-size: 4rem;
  font-family: "Source Serif 4", serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}
h2
{
  font-family: "Source Serif 4", serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}
h3
{
  font-size: 1.4rem;
  font-family: "Source Serif 4", serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}
footer
{
  text-align: center;
}
a
{
  cursor: pointer;
  text-decoration: underline;

  img
  {
    font-size: 0;
  }
}
button, .button
{
  background-color: var(--sailboat);
  border: 1px solid #000;
  color: #fff;
  border-radius: 20px;
  font-family: inherit;
  font-size: inherit;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  padding: 14px 14px 10px 14px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  xwidth: 100%;

  .text
  {
    xpadding: 5px 0 0 0;
  }
  &.primary
  {
    background: var(--banana-cake);
    color: #000;
  }
  &.fixed
  {
    width: 240px;
  }
  &#menu-icon
  {
    text-transform: uppercase;
    width: 18vw;
    xborder-radius: 10em;
    xpadding: 16px 14px 14px 14px;
    xfont-family: inherit;
    font-weight: 700;
  }

  .waiting
  {
    width: 26px; 
    height: 26px; 
    animation: spin 1s linear infinite;
    xstroke-width: 5;
  }
}
svg.hidden
{
  display: none;
}
#link_btn,
#back_btn
{
  padding: 10px 14px 8px 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}
input[type="checkbox"], input[type="radio"]
{
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}
input:not([type="range"]), textarea, select, de-select-img
{
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 15px;
  padding: 14px;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  display: inline-block;
  xalign-self: start;
  box-sizing: border-box;
  xwidth: 300px;
}
/* Disabled form controls visual state */
input[disabled], textarea[disabled], select[disabled]
{
  background-color: var(--translucent-black);
  color: var(--medium-gray);
  border-color: var(--light-gray);
  cursor: not-allowed;
}
input:focus, input:focus-visible
{
  outline: none;
  border: 1px solid var(--sorbet);
}
de-text
{
  word-break: break-all;
}
textarea
{
  height: 100%;
}
main
{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-grow: 1;

  nav
  {
    width: 100%;
  }

  table
  {
    width: 100%;
    border-spacing: 8px;

    thead
    {
      th
      {
        color: var(--table-hdr-text);
        text-align: center;
        font-weight: 700;
        font-size: 1rem;
        text-transform: uppercase;
      }
    }
    tbody
    {
      tr
      {
        background-color: var(--table-cell);
      }
      td
      {
        vertical-align: middle;
        text-align: center;
        border-radius: 10px;
        padding: 8px 16px;
        min-height: 20px;
      }
      xtd:nth-child(1)
      {
        text-align: center;
      }
      .actions-img
      {
        font-size: 0;
        line-height: 0;

        img
        {
          width: 24px;
          height: 24px;
          margin: 0 6px;
        }
      }
    }
    tfoot
    {
      font-weight: bold;
      
      td:nth-child(1)
      {
        text-align: right;
      }  
    }

    .actions
    {
      padding: 6px;
      background-color: var(--buttercream);

      div
      {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
      }
    }
  }

  .xmainbuttons
  {
    display: flex;
    gap: 3vw;
    max-width: 80vw;
  }
  h4  
  {
    text-align: center;
  }
}
div[popover] /* menu */
{
  border: none;
  padding: 0;
  border: 1px solid #000;
  background-color: var(--jacaranda);
  position: relative;

  .close, button
  {
    background-color: transparent;
    padding: 0;
    border: none;
    width: fit-content;
  }

  .close
  {
    font-size: 1rem;
    position: absolute;
    top: 0;
    right: 0;
    margin: 20px;
  }
  .menu
  {
    display: flex;
    flex-direction: column;
    font-size: 40px;
    font-weight: bold;
    gap: 40px;
    align-items: center;

    a
    {
      text-decoration: none;
      color: #fff;
    }
  }
}

.btn-bar
{
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}
de-sort
{
  display: flex;
  gap: 4px;
  align-items: center;

  .field_list
  {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    flex-direction: column;
  }

  .field_btns, .field_item
  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .sort_list
  {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;

    .sort_item
    {
      display: flex;
      font-size: .8rem;
      font-weight: 400;
      align-items: center;
      gap: 6px;
      background-color: var(--table-cell);
      border-radius: 10px;
      padding: 5px 5px 5px 10px;

      .remove_btn
      {
        width: 24px;
        height: 24px;
        padding: 0 6px 2px 6px;
        min-height: 0;
      }
    }
  }
}
de-filter
{
  .filter_list
  {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;

    .filter_item
    {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
  }

  [cid=min_view_div]
  {
    display: flex;
    gap: 4px;
    align-items: center;
  }

  [cid=min_summ_div]
  {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;

    .fb_summ
    {
      display: flex;
      font-size: .8rem;
      font-weight: 400;
      align-items: center;
      gap: 6px;
      background-color: var(--table-cell);
      border-radius: 10px;
      padding: 5px 5px 5px 10px;

      .fb_del_btn
      {
        width: 24px;
        height: 24px;
        padding: 0 6px 2px 6px;
        min-height: 0;
      }
    }
  }
}
de-range
{
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 100%;
  margin: 1rem 0 0 0;

  input
  {
    flex-grow: 1;
    margin: 0;
  }
  .value-display
  {
    position: absolute;
    top: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  .range-row
  {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.5rem;
  }
  .range-label
  {
    width: 2rem;
    text-align: center;
    font-size: 0.9rem;
  }
}
de-select-img
{
  position: relative;
  padding-right: 40px;
  font-size: 0;

  .bk
  {
    width: 100%;
  }

  .edit
  {
    width: 24px;
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    padding: 0;
    font-size: 0;
    background: transparent;

    img
    {
      width: 100%;
    }
  }

  .img-panel
  {
    height: 80%;
    width: 80%;
    padding: 20px;
    border: 5px solid #000;
    
    ul
    {
      display: flex;
      flex-direction: row;
      list-style: none;
      margin: 0;
      padding: 0;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;

      li
      {
        img
        {
          width: 300px;
          height: 100%;
          object-fit: cover;
        }
      }
    }
  }
}
de-input-image
{
  img 
  {
    display: block;
    width: 28vw;
    max-width: 300px;
    background-color: #fff;
    border: 1px solid #000;
    margin-top: 10px;
  }

  input
  {
    width: 100%;
  }

  img:not([src]), img[src=""]
  {
    display: none;
  }
}
de-input-pdf
{
  input
  {
    width: 100%;
  }
}
de-input-password
{
  position: relative;
  display: flex;
  align-items: center;

  input
  {
    width: 100%;
  }
  svg
  {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
  }
}
p4p-header
{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;

  [cid=user_name]
  {
    color: var(--text-light);
    font-size: 0.8rem;
    opacity: 0.8;
    text-align: right;
  }
  [cid=dev_warning]
  {
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    margin: 6px 0 0 0;
  }
  .banner
  {
    padding: 4vw 0 4.5vw 0;
    background-color: var(--jacaranda);
    width: 100%;
  }
  .banner-content
  {
    padding: 0 3.5vw;
    width: 100%;
    max-width: 1710px;
    display: flex;
    justify-content: space-between;
    align-items: top;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .logo
  {
    width: 25vw;
  }
  .title
  {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 0;
    margin-top: 20px;
    color: #fff;
    text-align: center;

    h2
    {
      margin: 0 auto;
      font-size: clamp(28px, 5.5vw, 5.5vw);
    }
  }
  nav
  {
    align-self: baseline;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;

    .menu {
      button
      {
        color: #fff;
      }
    }
  }
  .triangle
  {
    fill: var(--jacaranda);
    transform: translate(0, -1px);
  }
  #mob-triangle
  {
    display: none;
  }
  .badge
  {
    transform: translate(0, -50%);
  }
  &.dev 
  {
    .banner
    {
      background-color: var(--dev);
    }
    .triangle
    {
      fill: var(--dev);
      stroke: var(--dev);
    }
  }

  .xmenu_button 
  {
    background-color: transparent;
    border: none;
    padding: none;
    height: 3vw;
    width: 3vw;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .xmenu_button img 
  {
    height: 8vw;
    max-height: 100px;
  }
  xh2 
  {
    font-size: clamp(1.5em, 5vw, 4em); 
  }
  #mob-menu-icon
  {
    padding: 20px 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #000;
  }
}
p4p-invite
{
  width: clamp(650px, 45vw, 45vw);
  background-size: 100% 100%;
  background-position: center;

  main
  {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 30px 40px 40px 40px;
    margin: 3.5vw;
    gap: 0;
    background-color: #fffb;

    h2
    {
      font-family: inherit;
      text-transform: uppercase;
      font-size: 23px;
      font-weight: 600;
    }
    #help_sentence {
      font-family: inherit;
      font-size: 25px;
      font-weight: 500;
      color: var(--ultraviolet);
    }
  }

  .logo
  {
    width: 345px;
    margin-top: 10px;
  }
  [cid=party_address]
  {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    /*color: var(--ultraviolet);*/
  }
  [cid=additional_details]
  {
    font-size: 22px;
    font-style: italic;
    margin: 30px 0 24px 0;
    font-weight: 600;
    color: var(--ultraviolet);
  }
  [cid=rsvp_by]
  {
    font-size: 26px;
    font-weight: 600;
  }
  .host
  {
    margin: 10px 0 20px 0;
    font-size: 22px;
    font-weight: 600;
  }
  .bottom
  {
    display: flex;
    margin: 0 0 70px 0;
    gap: 5vw;
  }
  .charity,.gift
  {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .charity img
  {
    width: 200px;
  }

  h1
  {
    font-family: inherit;
    font-size: 2.5rem;
    text-align: center;
    margin: 40px 0;
    font-weight: bold;
  }
  h2
  {
    margin: 0;
  }
  h3
  {
    margin: 20px 0 0 0;
    text-align: center;
  }
  h4
  {
    text-align: center;
    margin: 0;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
  }
  h5
  {
    font-family: inherit;
    font-size: 20px;
    margin: 20px;
    font-weight: 600;
    color: var(--ultraviolet);
  }
  #gift_info
  {
    font-size: 28px;
  }
}
de-form
{
  button
  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 10px 0;

    img[cid=prog_img]
    {
      margin: -4px 0 0 0;
      animation: spin 1s linear infinite;
    }
  }

  .hint 
  {
    color: grey;
    margin: 4px 0 0 0;
  }

  footer
  {
    button
    {
      text-transform: uppercase;
      color: var(--text-light);
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
  }
}
de-form.plain
{
  width: 100%;

  main, p4p-acc-fields
  {
    display: flex;
    padding: 0 0 40px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  h3
  {
    margin: 60px 0 0 0;
    color: var(--ultraviolet);
    font-family: inherit;
    font-size: 40px;
  }
  label 
  {
    margin-top: 20px;
    align-content: end;
    font-weight: 600;
  }
  p4p-acc-fields, p4p-party-fields
  {
    width: 100%;
  }
  p4p-party-fields
  {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px 20px;
  }
  input
  {
    width: 100%;
  }
  button[cid="ok_btn"]
  {
    background-color: var(--ballet);
    color: var(--text-dark);
  }
  [cid="clr_btn"] button
  {
    background-color: var(--mint);
    color: var(--text-dark);
  }
  [cid="cancel_btn"] button
  {
    background-color: var(--tangerine);
  }
}
de-dialog-confirm,
de-dialog-alert,
de-dialog-form,
de-dialog-login,
de-dialog-new-account,
de-dialog-new-charity-account,
de-dialog-recover-account,
p4p-account,
de-filter,
de-sort
{
  dialog
  {
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #0004;
    padding: 56px 64px 48px 64px;
    box-shadow: 4px 4px 10px 1px #0003;
    position: relative;
    xmin-width: 50%;
  }
  header
  {
    font-family: inherit;
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 40px 0;
    color: var(--ultraviolet);
    display: flex;
    flex-direction: column;

    h2
    {
      font-family: "Josefin Sans", sans-serif;
      font-size: 1.4rem;
      padding: 0;
      margin: 0;
    }
  }
  main
  {
    margin: 0 0 20px 0;
    align-items: flex-start;
    gap: 5px;
    align-items: center;
  }
  label
  {
    color: var(--form-label);
  }
  field
  {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    width: 100%;

    label
    {
      font-size: 1rem;
      margin: 0 0 8px 0;
      display: inline-block;

      &[for="p4p_new_acc_dlg_tnc"]
      {
        margin-left: 20px;
      }
    }

    [cid="forgot_password"]
    {
      text-align: right;
      font-style: italic;
      font-size: 0.9rem;
      color: var(--medium-gray);
      cursor: pointer;
    }
  }
  footer
  {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    justify-content: center;

    a
    {
      cursor: pointer;
      text-decoration: underline;
      line-height: 1.5rem;
    }
  }
  input
  {
    width: 100%;
    margin: 0 0 10px 0;
  }
  button, span[cid="cancel_btn"], span[cid="clr_btn"]
  {
    text-transform: uppercase;
  }

  .output
  {
    color: #000;
    border: 1px solid #000;
    border-radius: 20px;
    padding: 14px;
    display: inline-block;
    align-self: start;
    box-sizing: border-box;  
  }
  .close-btn
  {
    fill: #4F60D1;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
  }

  [cid="error_span"] 
  {
    color: var(--tangerine);
    font-size: 0.9rem;
    background: rgba(255, 104, 29, 0.1);
    border: 1px solid var(--tangerine);
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  button[cid=ok_btn]
  {
    background-color: var(--ballet);
    color: var(--text-dark);
  }
  button[cid="cancel_btn"], span[cid="cancel_btn"] button
  {
    background-color: var(--sorbet);
    color: var(--text-dark);
  }
  button[cid="login_btn"],
  button[cid="new_btn"],
  button[cid="cancel_btn"],
  button[cid="create_btn"],
  button[cid="save_btn"]
  {
    color: var(--text-dark);
  }
  button[cid="login_btn"],
  button[cid="create_btn"]
  {
    background-color: var(--ballet);
  }
  button[cid="new_btn"]
  {
    background-color: var(--mint);
  }
  button img {
    margin: -4px 0 0 0;
    animation: spin 1s linear infinite;
  }
}
de-dialog-form.readonly
{
  dialog
  {
    background-color: var(--light-blue);
  }
  main
  {
    display: grid;
    grid-template-columns: 1fr 5fr;
    align-items: center;
    justify-items: start;
    gap: 12px 20px;

    img 
    {
      background-color: #fff;
      border-radius: 15px;
      padding: 14px;

      width: 30vw;
      height: 30vw;
      overflow: hidden;
      object-fit: cover;
    }
    de-text, de-currency, de-link
    {
      background-color: #fff;
      color: #000;
      border-radius: 15px;
      padding: 14px;
      font-family: inherit;
      font-weight: inherit;
      font-size: inherit;
      display: inline-block;
      box-sizing: border-box;
      width: 100%;
    }
    label
    {
      color: var(--table-hdr-text);
      font-weight: 700;
      font-size: 1rem;
      text-transform: uppercase;
      width: 100%;
    }
    de-table
    {
      width: 100%;
    }
  }
}
de-dialog-alert main
{
  text-align: center;
  align-items: center;
}
p4p-footer
{
  width: 100%;
  background-color: var(--ultraviolet);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  padding: 6vw 0 10vw 0;
  margin-top: 140px;

  .logo{
    width: 33vw;
    filter: brightness(2);
  }
  .social
  {
    margin-top: 20px;
    display: flex;
    gap: 0.7vw
  }
  .social .icon
  {
    width: 1vw;
    height: 1vw;
    background-color: var(--ultraviolet);

    &.facebook
    {
      -webkit-mask: url("/image/facebook-white.svg") no-repeat center / contain;
      mask: url("/image/facebook-white.svg") no-repeat center / contain;
      image-rendering: pixelated;
    }
    &.instagram
    {
      -webkit-mask: url("/image/instagram-white.svg") no-repeat center / contain;
      mask: url("/image/instagram-white.svg") no-repeat center / contain;
      image-rendering: pixelated;
    }
    &.linkedin
    {
      -webkit-mask: url("/image/linkedin-white.svg") no-repeat center / contain;
      mask: url("/image/linkedin-white.svg") no-repeat center / contain;
      image-rendering: pixelated;
    }
  }
  .social a.img
  {
    background-color: var(--banana-cake);
    border-radius: 10em;
    width: 2vw;
    height: 2vw;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  a
  {
    color: #fff;
    text-decoration: none;
  }
  a.email
  {
    font-size: 2.5vw;
    font-weight: 300;
  }
  .copyright
  {
    font-weight: lighter;
    font-size: 14px;
  }
}
p4p-link-dlg
{
  [cid="link_dlg"]
  {
    dialog
    {
      width: 900px;
    }
    [cid="link_anchor"]
    {
      color: var(--tangerine);
      width: 640px;
      text-align: center;
      margin: 0 auto 20px auto;
      line-height: 1.4;
    }
    button[cid="ok_btn"],
    button[cid="copy_btn"]
    {
      text-transform: uppercase;
      color: #000;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 398px;
      gap: 6px;
      border-radius: 10em;
      background-color: var(--ballet);
    }
    #copy_btn
    {
      background-color: var(--ballet);
    }
  }
  [cid="bank_dlg"]
  {
    input
    {
      width: 100%;
    }
    main
    {
      align-items: flex-start;
    }
    p4p-acc-fields
    {
      display: contents;
    }
  }
}
.tnc
{
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

img.thumbnail
{
  display: block;
  background-color: #fff;
  border: 1px solid #ccc;
  overflow: hidden;
  margin-top: 10px;
}
img.charity, .charity img
{
  object-fit: contain;
}

div[popover] button[disabled]
{
    opacity: 0.5;
    cursor: not-allowed;
}

/* desktop screens LARGER than 768px */
@media screen and (min-width: 768px)
{
  button, .button
  {
    max-width: 280px;
  }
  h2
  {
    font-size: 2rem;
  }
  main
  {
    margin: 0 40px 20px 40px;
  }
  div[popover] /* menu */
  {
    .menu
    {
      padding: 100px 80px;

      .logo
      {
        width: 27vw;
      }
    }
  }
  de-form
  {
    .hint 
    {
      font-size: smaller;
    }
  }
  p4p-header
  {
    .badge
    {
      width: 8.6vw;
      height: 8.6vw;
    }
  }
  p4p-footer
  {
    .logo
    {
    }
    .copyright
    {
    }
  }
  de-table
  {
    .cell-label
    {
      display: none;
    }
  }

  img.thumbnail
  {
    width: 200px;
    xheight: 200px;
  }
  #menu-icon
  {
    display: block;
  }
  #mob-menu-icon
  {
    display: none;
  }
}
/* mobile screens SMALLER than 768px */
@media screen and (max-width: 768px)
{
  h2
  {
    font-size: 1.5rem;
  }
  main
  {
    margin: 0 20px 20px 20px;
  }
  div[popover] /* menu */
  {
    .menu
    {
      padding: 7vh 10vw;
      gap: 2vh;
      font-size: 1.5rem;

      .logo
      {
        width: 70vw;
      }
    }
  }
  de-form
  {
    .hint 
    {
      font-size: 0.9em;
    }
    footer
    {
      button
      {
        width: 80vw;
        margin: 1vh;
      }
    }
  }
  de-form.plain
  {
    main p4p-party-fields
    {
      grid-template-columns: 1fr 1fr;
      gap: 3px 10px;

      h3
      {
        font-size: 24px;
      }
      label
      {
        font-size: 14px;
      }
      .hint
      {
        font-size: 12px;
      }
      input:not([type="range"]),
      textarea,
      select
      {
        font-size: 14px;
        padding: 10px;
        border-radius: 6px;
      }
    }
  }
  de-dialog-confirm,
  de-dialog-alert,
  de-dialog-form,
  de-dialog-login,
  de-dialog-new-account,
  de-dialog-new-charity-account,
  de-dialog-recover-account,
  de-filter,
  de-sort
  {
    dialog
    {
      padding: 56px 16px 32px 16px;
    }
    header
    {
      margin: 0 0 20px 0;
    }
    a
    {
      width: 80vw;
      word-wrap: break-word;
      font-size: 0.8rem;
    }
    footer
    {
      flex-direction: column;
    }
  }
  p4p-header
  {
    nav
    {
      gap: 0;
    }
    h2
    {
      width: clamp(194px, 194px, 100%);
    }
    .banner
    {
      padding-top: 3vw;
      padding-left: 2vw;
      padding-bottom: 7vw;
      padding-right: 2vw;
    }
    .logo
    {
      width: clamp(194px, 194px, 60vw);
    }
    .badge
    {
      width: 15vw;
      height: 15vw;
    }
    #menu-icon
    {
      display: none;
    }
    #mob-menu-icon
    {
      display: block;
      padding: 0;
    }
    #triangle
    {
      display: none;
    }
    #mob-triangle
    {
      display: block;
    }
  }
  p4p-footer
  {
    padding-top: 32px;
    margin-top: 30px;

    .logo
    {
      width: clamp(205px, 205px, 70vw);
    }
    .copyright
    {
      font-size: 0.8rem;
      text-align: center;
      padding: 0 20px;
    }
    .social
    {
      margin-top: 0;
      gap: clamp(7px, 7px, 15px);
    }
    .social .icon
    {
      width: clamp(12px, 12px, 1vw);
      height: clamp(12px, 12px, 1vw);
    }
    a.email
    {
      font-size: clamp(18px, 18px, 2.5vw);
    }
  }
  p4p-link-dlg
  {
    [cid="link_dlg"]
    {
      [cid="link_anchor"]
      {
        width: 70vw;
      }
      button[cid="ok_btn"],
      button[cid="copy_btn"]
      {
        width: 70vw;
      }
    }
  }
  p4p-invite
  {
    width: 90vw;
    main
    {
      padding: 20px;
      margin: 0;
    }
    .logo
    {
      width: clamp(220px, 220px, 80vw);
    }
    h1
    {
      font-size: 2rem;
      margin: 40px 0 0 0;
    }
    h3#help_sentence
    {
      margin-top: 2vw;
      font-size: 1.3rem;
    }
    h4
    {
      /*margin-top: 20px;*/
    }
    h5
    {
      margin: 2vw 0 1vw 0;
    }
    .host
    {
      text-align: center;
    }
    [cid=party_address]
    {
      /*margin: 10px 0 0 0;*/
      text-align: center;
    }
    [cid=additional_details]
    {
      margin-top: 20px;
      text-align: center;
    }
    [cid=start_date],
    [cid=start_time],
    [cid=end_time]
    {
      font-size: 0.8rem;
    }
    .bottom
    {
      flex-direction: column;
      margin: 0 0 2vw 0;
    }
  }
  de-table
  {
    [cid=colsRow]
    {
      display: none;
    }
    [cid=tableBody] tr
    {
      display: grid;
      grid-template-columns: 1fr 2fr;
      column-gap: 13px;
      row-gap: 8px;
      margin: 0 0 30px 0;
    }
    [cid=tableBody] td
    {
      word-break: break-word;
    }
    .cell-label
    {
      text-align: right;
      font-weight: 300;
      font-size: 0.9rem;
    }
  }

  img.thumbnail
  {
    width: 50vw;
    xheight: 50vw;
  }
}

@keyframes spin
{
  0% 
  {
    transform: rotate(0deg);
  }
  100% 
  {
    transform: rotate(360deg);
  }
}

/* round buttons with a single icon */
table tbody button, 
de-sort .add_btn,
de-sort .sort_btn,
de-filter .fb_filter_btn, 
de-filter [cid=min_search_btn]
{
  text-transform: uppercase;
  border-spacing: 8px;
  font-size: 0;
  font-weight: 400;
  line-height: 0;
  margin: 0;
  padding: 6px 0;
  width: fit-content;
  height: fit-content;

  img, svg, span
  {
    width: 24px;
    height: 24px;
    margin: 0 6px;
    display: inline-block;
  }
  span
  {
    font-size: 24px;
    line-height: 24px;
  }
}

@property --gradient-angle 
{
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotation 
{
  0%   { --gradient-angle: 0deg; }
  100% { --gradient-angle: 360deg; }
}

.in-progress
{
  background: conic-gradient(
    from var(--gradient-angle),
    var(--ballet), 
    #fff0, 
    var(--ballet), 
    #fff0, 
    var(--ballet), 
    #fff0, 
    var(--ballet), 
    #fff0, 
    var(--ballet), 
    #fff0, 
    var(--ballet), 
    #fff0, 
    var(--ballet)
  );
  animation: rotation 4s linear infinite;
  height: 1.5vh;
}
