/* Protège-Menu desktop format cards 1.0.0 — presentation only. */
@media (min-width: 761px) {
  #app .configurator .wizard.pm-suite-model-step .pmfd-variant-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  #app .configurator .wizard.pm-suite-model-step .pmfd-variant-row > .field {
    width: auto;
    min-width: 0;
    margin: 0;
    grid-column: 1 / -1;
    flex-basis: auto;
  }

  #app .configurator .pmfd-format-field {
    container: pmfd-formats / inline-size;
    padding-bottom: 0;
    border-bottom: 0;
  }

  #app .configurator .pmfd-format-options {
    display: grid;
    grid-template-columns: repeat(var(--pmfd-format-count, 3), minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  #app .configurator .pmfd-format-options > .pmfd-format-card {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 110px;
    margin: 0;
    padding: 18px 25px 18px 16px;
    border: 1px solid #d5d9cd;
    border-radius: 6px;
    background: transparent;
    color: #293d31;
    text-align: left;
    line-height: 1.35;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease;
  }

  #app .configurator .pmfd-format-card > .pmfd-native-label {
    display: none !important;
  }

  #app .configurator .pmfd-format-card[hidden],
  #app .configurator .pmfd-color-options > .color-option[hidden] {
    display: none !important;
  }

  #app .configurator .pmfd-format-card .pmfd-content {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  #app .configurator .pmfd-format-card .pmfd-figure {
    display: flex;
    height: 62px;
    align-items: center;
    justify-content: center;
  }

  #app .configurator .pmfd-format-card .pmfd-sheet {
    display: block;
    flex: none;
    box-sizing: border-box;
    border: 1.5px solid currentColor;
    background: transparent;
  }

  /* Symbolic page outlines, not product measurements. A4/A5 share a ratio. */
  #app .configurator .pmfd-format-card .pmfd-sheet-a4 { width: 42px; height: 59.4px; }
  #app .configurator .pmfd-format-card .pmfd-sheet-a5 { width: 29.4px; height: 41.58px; }
  #app .configurator .pmfd-format-card .pmfd-sheet-a4s { width: 26px; height: 59.4px; }

  #app .configurator .pmfd-format-card .pmfd-copy { min-width: 0; }
  #app .configurator .pmfd-format-card .pmfd-format-name {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
  }

  #app .configurator .pmfd-format-card .pmfd-format-subtitle {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }

  #app .configurator .pmfd-format-card .pmfd-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 19px;
    height: 19px;
    border: 1px solid #7d8b7b;
    border-radius: 50%;
    box-sizing: border-box;
  }

  #app .configurator .pmfd-format-options > .pmfd-format-card[aria-pressed='true'] {
    background: #e9eddf;
    border-color: #293d31;
    box-shadow: inset 0 0 0 1px #293d31;
    color: #293d31;
  }

  #app .configurator .pmfd-format-card[aria-pressed='true'] .pmfd-check {
    background: #293d31;
    border-color: #293d31;
  }

  #app .configurator .pmfd-format-card[aria-pressed='true'] .pmfd-check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 3px;
    width: 5px;
    height: 8px;
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(45deg);
  }

  #app .configurator .pmfd-format-options > .pmfd-format-card:hover:not(:disabled) {
    border-color: #293d31;
  }

  #app .configurator .pmfd-format-options > .pmfd-format-card:focus-visible {
    outline: 2px solid #293d31;
    outline-offset: 3px;
  }

  #app .configurator .pmfd-format-options > .pmfd-format-card:disabled {
    cursor: not-allowed;
    opacity: .5;
  }

  #app .configurator .pmfd-color-options {
    display: grid;
    grid-template-columns: repeat(var(--pmfd-color-count, 4), minmax(0, 1fr));
    gap: 8px 12px;
  }

  #app .configurator .pmfd-color-options > .color-option {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
  }

  #app .configurator .pmfd-color-options > .color-option > i { flex: 0 0 auto; }

  @container pmfd-formats (max-width: 620px) {
    #app .configurator .pmfd-format-options > .pmfd-format-card { padding: 16px 24px 16px 12px; }
    #app .configurator .pmfd-format-card .pmfd-content { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
    #app .configurator .pmfd-format-card .pmfd-figure { height: 48px; }
    #app .configurator .pmfd-format-card .pmfd-sheet-a4 { width: 32px; height: 45.257px; }
    #app .configurator .pmfd-format-card .pmfd-sheet-a5 { width: 22.4px; height: 31.68px; }
    #app .configurator .pmfd-format-card .pmfd-sheet-a4s { width: 19.8px; height: 45.257px; }
    #app .configurator .pmfd-format-card .pmfd-format-name { font-size: 22px; }
    #app .configurator .pmfd-format-card .pmfd-format-subtitle { font-size: 12px; }
  }

  @container pmfd-formats (max-width: 480px) {
    #app .configurator .pmfd-format-options > .pmfd-format-card { padding: 24px 8px 12px; }
    #app .configurator .pmfd-format-card .pmfd-content { grid-template-columns: minmax(0, 1fr); text-align: center; }
  }
}

@media (prefers-reduced-motion: reduce) {
  #app .configurator .pmfd-format-options > .pmfd-format-card { transition: none; }
}
