/* Base ID Card System */
:root {
    --cloudi7-icg-card-shadow: 0 12px 30px rgba(0,0,0,0.12);
    --cloudi7-icg-font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.cloudi7-icg-card-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 20px;
    margin: 20px 0;
}

.cloudi7-icg-card-downloadable {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: transparent;
    padding: 10px;
}

@media (min-width: 900px) {
    .cloudi7-icg-card-downloadable {
        flex-direction: row;
        justify-content: center;
    }
}

/* Base Card Element - Common to all templates */
.cloudi7-icg-card {
    background: white;
    box-shadow: var(--cloudi7-icg-card-shadow);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.cloudi7-icg-card * {
    box-sizing: border-box;
}

/* SECTION 1 - STANDARD CARD SIZE */
.cloudi7-icg-card.horizontal {
    width: 350px;
    height: 220px;
}

.cloudi7-icg-card.vertical {
    width: 220px;
    height: 350px;
}

/* SECTION 12 - PRINT LAYOUT */
@media print {
    /* Hide Everything */
    body * {
        visibility: hidden;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Target only the card area */
    .card-print-area, 
    .card-print-area *,
    .cloudi7-icg-card-preview-wrapper,
    .cloudi7-icg-card-preview-wrapper * {
        visibility: visible;
    }

    .card-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20mm;
    }

    .cloudi7-icg-card-preview-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 20mm !important;
    }

    .cloudi7-icg-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
        margin-bottom: 20mm !important;
    }

    /* Hide Admin UI/Buttons */
    .no-print, 
    #adminmenumain, 
    #wpadminbar, 
    .cloudi7-icg-card-toolbar,
    .cloudi7-icg-verify-form,
    .cloudi7-icg-result-header,
    .updated,
    .notice {
        display: none !important;
    }

    /* Centering on page */
    html, body {
        background: white !important;
        height: auto !important;
    }
}
