/**
 * -----------------------------------------------------------------------------
 * fiebigerDigital.de Lizenzhinweis
 * Copyright (c) 2026 Christian Fiebiger
 * https://fiebigerDigital.de
 * info@fiebigerDigital.de
 *
 * Dieses Script / diese Datei ist urheberrechtlich geschützt.
 *
 * Erlaubt:
 * - Nutzung im Rahmen einer gültigen Lizenz
 * - Private Verwendung durch den Käufer
 * - Installation auf freigegebenen Systemen
 *
 * Nicht erlaubt ohne schriftliche Genehmigung:
 * - Weiterverkauf
 * - Weitergabe an Dritte
 * - Veröffentlichung im Internet
 * - Upload auf andere Webseiten / Foren / Git-Repositories
 * - Entfernen dieses Copyright-Hinweises
 * - Nutzung als eigene Arbeit ausgeben
 *
 * Änderungen am Quellcode sind nur zur eigenen Nutzung gestattet.
 * Die Urheberrechte verbleiben vollständig bei Christian Fiebiger.
 *
 * Bei Verstoß können zivilrechtliche Schritte eingeleitet werden.
 *
 * Vollständige Lizenzinformationen:
 * https://fiebigerDigital.de
 * -----------------------------------------------------------------------------
 * $filename = fdPackageServerShop.css
 * -----------------------------------------------------------------------------
 */

/* Vorschau der erzeugten PDF-Rechnung im ACP. */
.fdpsInvoiceLogoCurrent {
    display: block;
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
}

.fdpsInvoicePreviewViewport {
    padding: 10px 0;
    overflow-x: auto;
}

.fdpsInvoicePreviewPaper.fdpsInvoicePreviewPaper--exact {
    position: relative;
    width: min(100%, 595px);
    min-width: 500px;
    aspect-ratio: 595 / 842;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 2px;
    background: #fff;
    color: #1f262d;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 7.5px;
    line-height: 1.28;
}

.fdpsInvoicePreviewTopBar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: rgb(13, 115, 184);
}

.fdpsInvoicePreviewHeader {
    position: absolute;
    top: 42px;
    right: 46px;
    left: 46px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.fdpsInvoicePreviewIdentity {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    max-width: 310px;
}

.fdpsInvoicePreviewLogo {
    display: block;
    width: auto;
    max-width: 112px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
}

.fdpsInvoicePreviewBrandBlock {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fdpsInvoicePreviewPaper--exact .fdpsInvoicePreviewBrand {
    display: block;
    margin: 0;
    overflow: hidden;
    color: #1f262d;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fdpsInvoicePreviewPaper--exact .fdpsInvoicePreviewSubtitle {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #6b737d;
    font-size: 8px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fdpsInvoicePreviewDocumentTitle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 185px;
    text-align: right;
}

.fdpsInvoicePreviewDocumentTitle strong {
    max-width: 220px;
    overflow: hidden;
    color: #1f262d;
    font-size: 18px;
    line-height: 1.05;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.fdpsInvoicePreviewDocumentTitle span {
    margin-top: 7px;
    color: #6b737d;
    font-size: 9px;
}

/* Logo und Dokumenttitel teilen sich den rechten Kopfbereich. */
.fdpsInvoicePreviewRightHeader {
    display: flex;
    flex: 0 0 220px;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
}

.fdpsInvoicePreviewLogo--right {
    margin-left: auto;
}

.fdpsInvoicePreviewDocumentTitle--compact {
    min-width: 0;
    margin-top: 7px;
}

.fdpsInvoicePreviewDocumentTitle--compact strong {
    max-width: 220px;
    font-size: 10.5px;
    line-height: 1.1;
}


.fdpsInvoicePreviewSenderLine {
    position: absolute;
    top: 113px;
    left: 46px;
    max-width: 300px;
    overflow: hidden;
    color: #666d75;
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fdpsInvoicePreviewAddressRow {
    position: absolute;
    top: 140px;
    right: 46px;
    left: 46px;
    display: grid;
    grid-template-columns: 1fr 202px;
    gap: 34px;
}

.fdpsInvoicePreviewRecipient {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 9px;
}

.fdpsInvoicePreviewRecipient .fdpsInvoicePreviewBlueLabel {
    margin-bottom: 8px;
    color: rgb(13, 115, 184);
    font-size: 8px;
    font-weight: 700;
}

.fdpsInvoicePreviewRecipient strong {
    font-size: 10.5px;
}

.fdpsInvoicePreviewMetaCard {
    padding: 11px 14px;
    background: #f6f7f8;
}

.fdpsInvoicePreviewMetaCard > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 21px;
}

.fdpsInvoicePreviewMetaCard span {
    color: #6b737d;
    font-size: 8px;
    font-weight: 700;
}

.fdpsInvoicePreviewMetaCard strong {
    color: #1f262d;
    font-size: 9px;
    text-align: right;
}

.fdpsInvoicePreviewMetaCard .fdpsInvoicePreviewPaid {
    color: #267f40;
}

.fdpsInvoicePreviewPaper--exact .fdpsInvoicePreviewIntro {
    position: absolute;
    top: 254px;
    right: 46px;
    left: 46px;
    margin: 0;
    overflow: hidden;
    color: #4c545c;
    font-size: 9px;
    line-height: 1.45;
    white-space: pre-line;
}

.fdpsInvoicePreviewItems {
    position: absolute;
    top: 292px;
    right: 46px;
    left: 46px;
}

.fdpsInvoicePreviewItemsHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 27px;
    padding: 0 12px;
    background: #1a2129;
    color: #fff;
    font-size: 8.5px;
    font-weight: 700;
}

.fdpsInvoicePreviewItemRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid #e0e2e5;
    background: #fbfbfc;
}

.fdpsInvoicePreviewItemRow > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.fdpsInvoicePreviewItemRow > div strong,
.fdpsInvoicePreviewItemRow > strong {
    font-size: 9.5px;
}

.fdpsInvoicePreviewItemRow small {
    color: #737b85;
    font-size: 7.5px;
}

.fdpsInvoicePreviewTotalsBox {
    position: absolute;
    top: 383px;
    right: 46px;
    width: 205px;
}

.fdpsInvoicePreviewTotalsBox > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    color: #687079;
    font-size: 8.5px;
}

.fdpsInvoicePreviewTotalsBox > div strong {
    color: #1f262d;
    font-size: 9px;
}

.fdpsInvoicePreviewTotalsBox .fdpsInvoicePreviewGrandTotal {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #d0d3d6;
    color: #1f262d;
    font-weight: 700;
}

.fdpsInvoicePreviewTotalsBox .fdpsInvoicePreviewGrandTotal strong {
    color: rgb(13, 115, 184);
    font-size: 12px;
}

.fdpsInvoicePreviewNotes {
    position: absolute;
    top: 445px;
    right: 260px;
    left: 46px;
    color: #555e67;
    font-size: 8.2px;
    line-height: 1.42;
}

.fdpsInvoicePreviewNotes p {
    margin: 0 0 7px;
    white-space: pre-line;
}

.fdpsInvoicePreviewNotes .fdpsInvoicePreviewAdditionalFooter {
    color: #7b8188;
    font-size: 7.5px;
}

.fdpsInvoicePreviewLegalFooter {
    position: absolute;
    right: 46px;
    bottom: 34px;
    left: 46px;
    display: grid;
    grid-template-columns: 145px 150px 159px;
    gap: 27px;
    padding-top: 13px;
    border-top: 1px solid #c7ccd1;
}

.fdpsInvoicePreviewLegalFooter > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #383f47;
    font-size: 7.2px;
    line-height: 1.38;
}

.fdpsInvoicePreviewLegalFooter > div > strong {
    margin-bottom: 5px;
    color: #616970;
    font-size: 7.3px;
}

.fdpsInvoicePreviewLegalFooter span {
    overflow-wrap: anywhere;
}


@media (max-width: 620px) {
    .fdpsInvoicePreviewViewport {
        padding: 12px;
    }

    .fdpsInvoicePreviewPaper.fdpsInvoicePreviewPaper--exact {
        min-width: 500px;
    }

}


/* Anordnung des Plugin-Stores mit WoltLab-eigenen Sections, Menüs und Buttons. */
.fdpsStorePageHeader {
    margin-bottom: 12px;
}

.fdpsStoreTabs {
    margin-bottom: 24px;
}

.fdpsStoreToolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 12px;
}

.fdpsStoreToolbarPagination {
    min-width: 0;
}

.fdpsStoreSortForm {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.fdpsStoreSortForm select {
    min-width: 180px;
}

.fdpsStoreBrowseTabs {
    margin-bottom: 16px;
}

.fdpsStoreGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fdpsStoreCard {
    display: flex;
    min-width: 0;
    min-height: 205px;
    margin: 0;
    flex-direction: column;
}

.fdpsStoreCard--compact {
    padding: 16px;
}

.fdpsStoreCardHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.fdpsStoreCardHeading {
    min-width: 0;
}

.fdpsStoreCardTitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}

.fdpsStoreCardHeading small {
    display: block;
    margin-top: 3px;
}

.fdpsStoreCardDescription {
    display: -webkit-box;
    margin-top: 12px;
    overflow: hidden;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.fdpsStoreCardPurchaseRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
}

.fdpsStoreCardPackage {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fdpsStoreCardFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid currentColor;
    border-top-color: color-mix(in srgb, currentColor 14%, transparent);
}

.fdpsStoreCardFooter--meta > span {
    opacity: .8;
}

.fdpsStoreCardPrice {
    font-size: 1.08em;
    white-space: nowrap;
}

.fdpsStoreSidebarBox .boxTitle {
    margin-bottom: 12px;
}

.fdpsStorePriceButtons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fdpsStoreSidebarList > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.fdpsStoreSidebarLabel {
    flex: 1 1 auto;
    min-width: 0;
}

.fdpsStoreSidebarList > li > a > .badge {
    flex: 0 0 auto;
    margin-left: auto;
}

.fdpsStoreSidebarList > li.active > a {
    font-weight: 600;
}

.fdpsStoreEmptyPanel {
    margin-top: 0;
}

.fdpsStorePaginationBottom,
.fdpsStoreVersion {
    margin-top: 16px;
}

@media (max-width: 700px) {
    .fdpsStoreGrid {
        grid-template-columns: 1fr;
    }

    .fdpsStoreToolbar,
    .fdpsStoreSortForm {
        align-items: stretch;
        flex-direction: column;
    }

    .fdpsStoreSortForm select,
    .fdpsStoreSortForm .button {
        width: 100%;
    }

    .fdpsStoreCardFooter {
        align-items: stretch;
        flex-direction: column;
    }

    .fdpsStoreCardFooter .button {
        width: 100%;
    }
}

.fdpsProductLayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.fdpsProductSidebar .box + .box {
    margin-top: 16px;
}

.fdpsProductPrice {
    margin: 8px 0 16px;
    font-size: 1.45em;
    font-weight: 700;
}

@media (max-width: 900px) {
    .fdpsProductLayout {
        grid-template-columns: 1fr;
    }

    .fdpsProductSidebar {
        order: -1;
    }
}

/* Produktbilder und Produktdarstellung im Plugin-Store. */
.fdpsAcpProductImagePreview {
    display: block;
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 3px;
}

.fdpsStoreSortBar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.fdpsProductListMedia {
    width: 96px;
    height: 96px;
}

.fdpsProductListMedia img,
.fdpsProductImagePlaceholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 4px;
    overflow: hidden;
}

.fdpsProductListFooter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.fdpsProductListAction {
    margin-left: auto;
}

.fdpsProductDetailMainImage {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    margin-bottom: 12px;
    object-fit: contain;
    border-radius: 4px;
}

.fdpsProductDetailPrice {
    font-size: 1.15em;
}

/* Produktbeschreibungen können als HTML gespeichert sein; reine Zeilenumbrüche bleiben dennoch sichtbar. */
.fdpsProductDescription {
    white-space: pre-line;
}

.fdpsProductDescription > :first-child {
    margin-top: 0;
}

.fdpsProductDescription > :last-child {
    margin-bottom: 0;
}

.fdpsProductImageGallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fdpsProductImageGallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 700px) {
    .fdpsProductListAction {
        width: 100%;
        margin-left: 0;
    }

    .fdpsProductListAction .button {
        width: 100%;
        text-align: center;
    }
}

/* Fancybox übernimmt die Produktgalerie; diese Regeln verhindern Konflikte mit globalen Button-Stilen. */
.fancybox__container .f-button {
    appearance: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
}

.fancybox__container .f-button:hover,
.fancybox__container .f-button:focus {
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
}

.fancybox__container .f-button svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fancybox__container .f-button.is-arrow {
    border-radius: 50% !important;
    background: rgba(0, 0, 0, .42) !important;
}

.fancybox__container .f-button.is-arrow:hover,
.fancybox__container .f-button.is-arrow:focus {
    background: rgba(0, 0, 0, .62) !important;
}

/* Produktreiter, Versionsübersicht und Rezensionen verwenden ausschließlich die vorhandene WoltLab-Struktur. */
.fdpsProductTabs {
    margin-bottom: 16px;
}

.fdpsReviewForm > .section {
    margin-bottom: 0;
}

.fdpsReviewList {
    margin-top: 16px;
}

.fdpsReview {
    display: block;
}

.fdpsReviewHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.fdpsReviewTitle,
.fdpsReviewMeta {
    margin: 0;
}

.fdpsReviewMeta {
    margin-top: 4px;
    font-size: .9em;
    opacity: .75;
}

.fdpsReviewRating {
    flex: 0 0 auto;
}

.fdpsReviewMessage {
    white-space: pre-line;
}

.fdpsReviewReplies {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 3px solid rgba(128, 128, 128, .25);
}

.fdpsReviewReply + .fdpsReviewReply {
    margin-top: 16px;
}

.fdpsReviewReplyHeader {
    margin-bottom: 6px;
    font-size: .9em;
}

.fdpsReviewFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.fdpsReviewReactionSummary:empty {
    display: none;
}

/* Rezensionstexte im ACP behalten ihre eingegebenen Zeilenumbrüche ohne HTML-Ausgabe. */
.fdpsAcpReviewMessage {
    white-space: pre-line;
}

/* Die Rezensionsbewertung zeigt nur die Sterne selbst und vermeidet vollflächig markierte Schaltflächen. */
.fdpsReviewRatingSelector {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.fdpsReviewRatingButton {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--wcfContentDimmedText);
    cursor: pointer;
    font: inherit;
}

.fdpsReviewRatingButton:hover,
.fdpsReviewRatingButton:focus-visible,
.fdpsReviewRatingButton.isActive {
    background: transparent;
    color: var(--wcfContentLink);
}

.fdpsReviewRatingButton:focus-visible {
    outline: 2px solid var(--wcfContentLink);
    outline-offset: 2px;
}

.fdpsReviewRatingButton fa-icon {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.fdpsReviewRatingValue {
    margin-left: 8px;
    white-space: nowrap;
}

/* Produktboxen für WoltLabs Box-System. */
.fdpsStoreBoxSidebarList .box48 {
    align-items: flex-start;
}

.fdpsStoreBoxSidebarMedia {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    border-radius: 4px;
}

.fdpsStoreBoxSidebarMedia img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.fdpsStoreBoxSidebarPlaceholder {
    background: var(--wcfContentBackground, transparent);
}

.fdpsStoreBoxFooter {
    margin-top: 12px;
    text-align: right;
}

.fdpsStoreBoxMeta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}
