/**
 * VIME Order Summary Widget Styles
 * Modern, clean design following checkout-widget.css patterns
 *
 * @package Vime_WooCommerce_Widgets
 */

/* ==========================================================================
   CSS Variables (Theme Colors)
   ========================================================================== */
.vime-order-summary {
    --vime-os-text-primary: #1a1a1a;
    --vime-os-text-secondary: #666666;
    --vime-os-text-muted: #999999;
    --vime-os-bg-primary: #ffffff;
    --vime-os-bg-secondary: #f8f9fa;
    --vime-os-border-color: #e9ecef;
    --vime-os-success: #28a745;
    --vime-os-warning: #ffc107;
    --vime-os-danger: #dc3545;
    --vime-os-info: #007bff;
    --vime-os-accent: #007bff;
    --vime-os-radius: 8px;
    --vime-os-radius-sm: 4px;
    --vime-os-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --vime-os-transition: all 0.3s ease;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */
.vime-order-summary {
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    color: var(--vime-os-text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.vime-order-summary *,
.vime-order-summary *::before,
.vime-order-summary *::after {
    box-sizing: border-box;
}

/* Layout Styles */
.vime-order-summary-card .vime-order-summary-section {
    background: var(--vime-os-bg-primary);
    border: 1px solid var(--vime-os-border-color);
    border-radius: var(--vime-os-radius);
    box-shadow: var(--vime-os-shadow);
}

.vime-order-summary-clean .vime-order-summary-section {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--vime-os-border-color);
}

.vime-order-summary-clean .vime-order-summary-section:last-child {
    border-bottom: none;
}

.vime-order-summary-compact .vime-order-summary-section {
    padding: 12px 16px;
    margin-bottom: 12px;
}

/* Two Columns Layout */
.vime-os-columns-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}

.vime-os-column-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vime-os-column-right {
    position: sticky;
    top: 20px;
}

.vime-os-column-right .vime-order-summary-section {
    margin-bottom: 0;
}

.vime-os-column-right .vime-order-items + .vime-order-totals-section {
    margin-top: 0;
    border-top: none;
    border-radius: 0 0 var(--vime-os-radius) var(--vime-os-radius);
}

.vime-os-two-columns .vime-order-items {
    border-radius: var(--vime-os-radius) var(--vime-os-radius) 0 0;
    margin-bottom: 0;
}

/* Header sempre full width */
.vime-os-two-columns .vime-order-summary-header {
    width: 100%;
}

/* ==========================================================================
   Sections Common Styles
   ========================================================================== */
.vime-order-summary-section {
    padding: 20px;
    margin-bottom: 20px;
    background: var(--vime-os-bg-primary);
    border: 1px solid var(--vime-os-border-color);
    border-radius: var(--vime-os-radius);
}

.vime-order-summary-section:last-child {
    margin-bottom: 0;
}

.vime-order-summary-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--vime-os-text-primary);
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--vime-os-border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Order Header
   ========================================================================== */
.vime-order-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.vime-order-summary-header.vime-order-summary-section {
    border-left: 4px solid var(--vime-os-accent);
}

.vime-order-header-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.vime-order-number {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vime-order-number-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--vime-os-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vime-order-number-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--vime-os-text-primary);
    line-height: 1;
}

.vime-order-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--vime-os-text-secondary);
}

.vime-order-date-label {
    font-weight: 500;
}

.vime-order-date-value {
    color: var(--vime-os-text-primary);
}

/* ==========================================================================
   Status Badges
   ========================================================================== */
.vime-order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Badge Style */
.vime-status-style-badge {
    padding: 6px 14px;
    border-radius: 4px;
}

/* Pill Style */
.vime-status-style-pill {
    padding: 6px 16px;
    border-radius: 50px;
}

/* Text Style */
.vime-status-style-text {
    padding: 0;
    font-weight: 600;
    background: none !important;
}

/* Status Colors */
.vime-status-pending {
    background: #fff3cd;
    color: #856404;
}

.vime-status-processing {
    background: #cce5ff;
    color: #004085;
}

.vime-status-on-hold {
    background: #ffe8cc;
    color: #995c00;
}

.vime-status-completed {
    background: #d4edda;
    color: #155724;
}

.vime-status-cancelled,
.vime-status-failed {
    background: #f8d7da;
    color: #721c24;
}

.vime-status-refunded {
    background: #e2e3e5;
    color: #383d41;
}

/* ==========================================================================
   Customer Details
   ========================================================================== */
.vime-order-customer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.vime-address-block {
    background: var(--vime-os-bg-secondary);
    padding: 16px;
    border-radius: var(--vime-os-radius);
}

.vime-address-block h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--vime-os-text-primary);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vime-address-block address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: var(--vime-os-text-secondary);
}

.vime-customer-email,
.vime-customer-phone {
    display: inline-block;
    margin-top: 4px;
    color: var(--vime-os-accent);
}

/* ==========================================================================
   Order Items
   ========================================================================== */
.vime-order-items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vime-order-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--vime-os-bg-secondary);
    border-radius: var(--vime-os-radius);
    margin-bottom: 10px;
    transition: var(--vime-os-transition);
}

.vime-order-item:last-child {
    margin-bottom: 0;
}

.vime-order-item:hover {
    background: #f0f1f3;
}

/* Item Image */
.vime-order-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: calc(var(--vime-os-radius) * 0.5);
    background: #fff;
    border: 1px solid var(--vime-os-border-color);
}

.vime-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Item Details */
.vime-order-item-details {
    min-width: 0;
    flex: 1;
}

.vime-order-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--vime-os-text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.vime-order-item-name a {
    color: inherit;
    text-decoration: none;
    transition: var(--vime-os-transition);
}

.vime-order-item-name a:hover {
    color: var(--vime-os-accent);
}

.vime-order-item-sku {
    font-size: 12px;
    color: var(--vime-os-text-muted);
    font-family: monospace;
}

.vime-order-item-meta {
    font-size: 12px;
    color: var(--vime-os-text-secondary);
    margin-top: 4px;
}

.vime-order-item-meta p {
    margin: 0;
}

.vime-order-item-meta strong {
    font-weight: 500;
}

/* Item Quantity */
.vime-order-item-quantity {
    font-size: 14px;
    color: var(--vime-os-text-secondary);
    white-space: nowrap;
    text-align: center;
    min-width: 40px;
}

.vime-qty-value {
    font-weight: 500;
    color: var(--vime-os-text-primary);
}

/* Item Total */
.vime-order-item-total {
    font-size: 15px;
    font-weight: 600;
    color: var(--vime-os-text-primary);
    text-align: right;
    white-space: nowrap;
    min-width: 80px;
}

/* ==========================================================================
   Order Totals
   ========================================================================== */
.vime-order-totals-section {
    padding: 0;
    overflow: hidden;
}

.vime-order-totals-section .vime-order-summary-section-title {
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid var(--vime-os-border-color);
    background: var(--vime-os-bg-secondary);
}

.vime-order-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--vime-os-border-color);
}

.vime-order-totals-row:last-child {
    border-bottom: none;
}

.vime-totals-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--vime-os-text-secondary);
}

.vime-totals-label small {
    display: block;
    font-size: 12px;
    color: var(--vime-os-text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.vime-totals-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--vime-os-text-primary);
    text-align: right;
}

/* Discount Row */
.vime-discount-row .vime-totals-value {
    color: var(--vime-os-success);
}

/* Discount Pill (from payment gateways - PIX, etc) */
.vime-order-totals-row .vime-totals-label .vime-payment-discount-pill,
.vime-order-totals-row .vime-totals-label span[class*="discount"],
.vime-order-totals-row .vime-totals-label span[class*="desconto"],
.vime-fee-row .vime-totals-label span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(40, 167, 69, 0.1);
    color: var(--vime-os-success);
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    margin-left: 6px;
    white-space: nowrap;
}

/* Fee row with negative value (discounts from gateways) */
.vime-fee-row .vime-totals-value {
    color: var(--vime-os-success);
}

/* Total Row */
.vime-total-row {
    background: var(--vime-os-bg-secondary);
    padding: 18px 20px;
    border-top: 2px solid var(--vime-os-border-color);
}

.vime-total-row .vime-totals-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--vime-os-text-primary);
}

.vime-total-row .vime-totals-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--vime-os-text-primary);
}

/* ==========================================================================
   Payment Method
   ========================================================================== */
.vime-payment-method-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--vime-os-text-primary);
    margin: 0;
}

.vime-transaction-id {
    font-size: 13px;
    color: var(--vime-os-text-muted);
    margin: 10px 0 0 0;
}

.vime-transaction-id code {
    background: var(--vime-os-bg-secondary);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-family: monospace;
    color: var(--vime-os-text-primary);
}

/* ==========================================================================
   Payment Instructions Section (PIX, Boleto - after header)
   ========================================================================== */
.vime-order-payment-instructions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: transparent;
    padding: 0;
}

/* ==========================================================================
   Payment Details (Gateway Instructions - PIX, Boleto, etc)
   Applies to both .vime-payment-details and .vime-order-payment-instructions
   ========================================================================== */
.vime-payment-details {
    margin-top: 16px;
}

.vime-payment-details:empty,
.vime-order-payment-instructions:empty {
    display: none;
}

/* Style inner containers with card appearance */
.vime-payment-details > div,
.vime-payment-details > section,
.vime-order-payment-instructions > div,
.vime-order-payment-instructions > section {
    margin: 0;
    padding: 32px;
    background: var(--vime-os-bg-secondary);
    border: none;
    border-radius: var(--vime-os-radius);
    width: 100%;
    max-width: 800px;
}

/* Hide style and script tags */
.vime-order-payment-instructions > style,
.vime-order-payment-instructions > script {
    display: none;
}

/* Common gateway elements styling */
.vime-payment-details h2,
.vime-payment-details h3,
.vime-payment-details h4,
.vime-order-payment-instructions h2,
.vime-order-payment-instructions h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--vime-os-text-primary);
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
    text-transform: none;
}

/* Payment instructions h3 - larger heading */
.vime-order-payment-instructions h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--vime-os-text-primary);
    margin: 0 0 16px 0;
    padding: 0;
    border: none;
    text-transform: none;
}

.vime-payment-details p,
.vime-order-payment-instructions p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--vime-os-text-secondary);
    margin: 0 0 12px 0;
}

.vime-payment-details p:last-child,
.vime-order-payment-instructions p:last-child {
    margin-bottom: 0;
}

/* PIX specific styles */
.vime-payment-details .pix-container,
.vime-payment-details .wc-pix-container,
.vime-payment-details [class*="pix"],
.vime-order-payment-instructions .pix-container,
.vime-order-payment-instructions .wc-pix-container,
.vime-order-payment-instructions [class*="pix"] {
    text-align: center;
}

.vime-payment-details .pix-qr-code,
.vime-payment-details [class*="qr-code"] img,
.vime-payment-details img[alt*="QR"],
.vime-payment-details img[alt*="qr"],
.vime-payment-details img[alt*="PIX"],
.vime-payment-details img[alt*="pix"],
.vime-order-payment-instructions .pix-qr-code,
.vime-order-payment-instructions [class*="qr-code"] img,
.vime-order-payment-instructions img[alt*="QR"],
.vime-order-payment-instructions img[alt*="qr"],
.vime-order-payment-instructions img[alt*="PIX"],
.vime-order-payment-instructions img[alt*="pix"] {
    max-width: 200px;
    height: auto;
    margin: 12px auto;
    display: block;
    border-radius: calc(var(--vime-os-radius) * 0.5);
    border: 1px solid var(--vime-os-border-color);
    background: #fff;
    padding: 8px;
}

/* PIX copy code button and input */
.vime-payment-details input[type="text"],
.vime-payment-details textarea,
.vime-order-payment-instructions input[type="text"],
.vime-order-payment-instructions textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 12px;
    font-family: monospace;
    background: #fff;
    border: 1px solid var(--vime-os-border-color);
    border-radius: calc(var(--vime-os-radius) * 0.5);
    color: var(--vime-os-text-primary);
    margin: 8px 0;
}

.vime-payment-details button,
.vime-payment-details .button,
.vime-payment-details [type="button"],
.vime-payment-details a.button,
.vime-order-payment-instructions button,
.vime-order-payment-instructions .button,
.vime-order-payment-instructions [type="button"],
.vime-order-payment-instructions a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--vime-os-accent);
    color: #fff;
    border: none;
    border-radius: calc(var(--vime-os-radius) * 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--vime-os-transition);
    text-decoration: none;
}

.vime-payment-details button:hover,
.vime-payment-details .button:hover,
.vime-payment-details [type="button"]:hover,
.vime-payment-details a.button:hover,
.vime-order-payment-instructions button:hover,
.vime-order-payment-instructions .button:hover,
.vime-order-payment-instructions [type="button"]:hover,
.vime-order-payment-instructions a.button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Boleto specific styles */
.vime-payment-details .boleto-container,
.vime-payment-details [class*="boleto"],
.vime-payment-details [class*="billet"],
.vime-order-payment-instructions .boleto-container,
.vime-order-payment-instructions [class*="boleto"],
.vime-order-payment-instructions [class*="billet"] {
    text-align: center;
}

.vime-payment-details .boleto-barcode,
.vime-payment-details [class*="barcode"],
.vime-order-payment-instructions .boleto-barcode,
.vime-order-payment-instructions [class*="barcode"] {
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    padding: 12px;
    background: #fff;
    border: 1px dashed var(--vime-os-border-color);
    border-radius: calc(var(--vime-os-radius) * 0.5);
    margin: 10px 0;
}

/* Expiration notice */
.vime-payment-details .expiration,
.vime-payment-details [class*="expira"],
.vime-payment-details [class*="validade"],
.vime-order-payment-instructions .expiration,
.vime-order-payment-instructions [class*="expira"],
.vime-order-payment-instructions [class*="validade"] {
    font-size: 13px;
    color: var(--vime-os-warning);
    font-weight: 500;
    margin-top: 10px;
}

/* Instructions list */
.vime-payment-details ol,
.vime-payment-details ul,
.vime-order-payment-instructions ol,
.vime-order-payment-instructions ul {
    margin: 10px 0;
    padding-left: 20px;
}

.vime-payment-details li,
.vime-order-payment-instructions li {
    font-size: 13px;
    line-height: 1.7;
    color: var(--vime-os-text-secondary);
    margin-bottom: 6px;
}

/* Payment success message */
.vime-payment-details .woocommerce-notice,
.vime-payment-details .woocommerce-message,
.vime-order-payment-instructions .woocommerce-notice,
.vime-order-payment-instructions .woocommerce-message {
    padding: 12px 16px;
    background: #d4edda;
    border-left: 4px solid var(--vime-os-success);
    border-radius: var(--vime-os-radius);
    color: #155724;
    font-size: 14px;
    margin: 10px 0;
}

/* Payment pending notice */
.vime-payment-details .woocommerce-info,
.vime-order-payment-instructions .woocommerce-info {
    padding: 12px 16px;
    background: #e8f4fd;
    border-left: 4px solid var(--vime-os-info);
    border-radius: var(--vime-os-radius);
    color: #004085;
    font-size: 14px;
    margin: 10px 0;
}

/* Tables inside payment details */
.vime-payment-details table,
.vime-order-payment-instructions table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 10px 0;
}

.vime-payment-details th,
.vime-payment-details td,
.vime-order-payment-instructions th,
.vime-order-payment-instructions td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--vime-os-border-color);
}

.vime-payment-details th,
.vime-order-payment-instructions th {
    font-weight: 600;
    color: var(--vime-os-text-primary);
    background: var(--vime-os-bg-secondary);
}

.vime-payment-details td,
.vime-order-payment-instructions td {
    color: var(--vime-os-text-secondary);
}

/* ==========================================================================
   Tracking Section
   ========================================================================== */
.vime-tracking-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #e8f4fd;
    border-radius: var(--vime-os-radius);
    border-left: 4px solid var(--vime-os-info);
    margin-bottom: 10px;
}

.vime-tracking-info:last-child {
    margin-bottom: 0;
}

.vime-tracking-provider {
    font-size: 13px;
    font-weight: 500;
    color: var(--vime-os-text-secondary);
}

.vime-tracking-code {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--vime-os-text-primary);
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 4px;
}

.vime-tracking-link {
    color: var(--vime-os-accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-left: auto;
    transition: var(--vime-os-transition);
}

.vime-tracking-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Downloads Section
   ========================================================================== */
.vime-order-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vime-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--vime-os-bg-secondary);
    border-radius: var(--vime-os-radius);
    gap: 15px;
}

.vime-download-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--vime-os-text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vime-download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--vime-os-accent);
    color: #ffffff;
    border: none;
    border-radius: calc(var(--vime-os-radius) * 0.5);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--vime-os-transition);
    flex-shrink: 0;
}

.vime-download-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.vime-download-button svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Order Notes
   ========================================================================== */
.vime-order-note-content {
    font-size: 14px;
    color: var(--vime-os-text-secondary);
    line-height: 1.7;
    margin: 0;
    padding: 14px 16px;
    background: #fffbeb;
    border-radius: var(--vime-os-radius);
    border-left: 4px solid var(--vime-os-warning);
}

/* ==========================================================================
   Editor Notice
   ========================================================================== */
.vime-editor-notice {
    padding: 30px;
    text-align: center;
    background: var(--vime-os-bg-secondary);
    border: 2px dashed var(--vime-os-border-color);
    border-radius: var(--vime-os-radius);
    color: var(--vime-os-text-secondary);
    font-size: 14px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .vime-order-summary-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vime-order-header-main {
        width: 100%;
        justify-content: space-between;
    }

    .vime-order-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .vime-order-item-image {
        grid-row: span 2;
    }

    .vime-order-item-details {
        grid-column: 2;
    }

    .vime-order-item-quantity,
    .vime-order-item-total {
        grid-column: 2;
        justify-self: start;
    }

    .vime-order-item-quantity {
        display: inline;
    }

    .vime-order-item-total {
        margin-left: auto;
    }

    .vime-order-customer-details {
        grid-template-columns: 1fr;
    }

    .vime-os-columns-wrapper {
        grid-template-columns: 1fr;
    }

    .vime-os-column-right {
        position: static;
    }

    .vime-order-number-value {
        font-size: 22px;
    }

    .vime-total-row .vime-totals-value {
        font-size: 18px;
    }

    .vime-tracking-info {
        flex-wrap: wrap;
    }

    .vime-tracking-link {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .vime-order-summary-section {
        padding: 16px;
    }

    .vime-order-item {
        padding: 12px;
        gap: 12px;
    }

    .vime-order-item-image {
        width: 50px;
        height: 50px;
    }

    .vime-order-totals-row {
        padding: 12px 16px;
    }

    .vime-order-totals-section .vime-order-summary-section-title {
        padding: 12px 16px;
    }

    .vime-download-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .vime-download-item-name {
        white-space: normal;
        margin-bottom: 10px;
    }

    .vime-download-button {
        justify-content: center;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .vime-order-summary {
        box-shadow: none !important;
    }

    .vime-order-summary-section {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .vime-download-button,
    .vime-tracking-link {
        display: none !important;
    }

    .vime-order-item:hover {
        background: var(--vime-os-bg-secondary) !important;
    }
}

/* ==========================================================================
   Animation
   ========================================================================== */
@keyframes vime-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vime-order-summary-section {
    animation: vime-fade-in 0.3s ease-out;
}

.vime-order-summary-section:nth-child(2) {
    animation-delay: 0.05s;
}

.vime-order-summary-section:nth-child(3) {
    animation-delay: 0.1s;
}

.vime-order-summary-section:nth-child(4) {
    animation-delay: 0.15s;
}

.vime-order-summary-section:nth-child(5) {
    animation-delay: 0.2s;
}

.vime-order-summary-section:nth-child(6) {
    animation-delay: 0.25s;
}
