/**
 * PluginHQ Store Styles - Dreadmoon Theme Compatible
 *
 * Dark theme with glass-morphism effects matching Dreadmoon theme
 *
 * @package PluginHQ
 * @since 1.0.0
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES - DREADMOON THEME COMPATIBILITY
   ========================================================================== */

:root {
    /* Primary - Blood Moon */
    --phq-primary: #C84536;
    --phq-primary-hover: #E85A4F;
    --phq-primary-light: #FF6B5B;
    --phq-primary-glow: rgba(200, 69, 54, 0.3);
    --phq-primary-glow-strong: rgba(200, 69, 54, 0.5);

    /* Dark Theme Backgrounds */
    --phq-bg-dark: #0A0A0A;
    --phq-bg: #141414;
    --phq-bg-elevated: #1A1A1A;
    --phq-bg-card: #1E1E1E;
    --phq-bg-glass: rgba(30, 30, 30, 0.6);

    /* Text Colors */
    --phq-text: #FFFFFF;
    --phq-text-muted: #A0A0A0;
    --phq-text-dim: #666666;

    /* Borders */
    --phq-border-subtle: rgba(255, 255, 255, 0.08);
    --phq-border: rgba(255, 255, 255, 0.12);
    --phq-border-hover: rgba(255, 255, 255, 0.15);

    /* Status Colors */
    --phq-success: #22C55E;
    --phq-success-bg: rgba(34, 197, 94, 0.15);
    --phq-warning: #F59E0B;
    --phq-warning-bg: rgba(245, 158, 11, 0.15);
    --phq-error: #EF4444;
    --phq-error-bg: rgba(239, 68, 68, 0.15);

    /* Effects */
    --phq-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --phq-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --phq-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --phq-shadow-glow: 0 0 30px var(--phq-primary-glow);

    /* Border Radius */
    --phq-radius-sm: 4px;
    --phq-radius-md: 8px;
    --phq-radius-lg: 12px;
    --phq-radius-xl: 16px;

    /* Transitions */
    --phq-transition-fast: 150ms ease;
    --phq-transition-base: 200ms ease;
    --phq-transition-slow: 300ms ease;
}

/* ==========================================================================
   STORE WRAPPER
   ========================================================================== */

.pluginhq-store-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 40px;
    transition: filter 0.3s ease;
}

/* ==========================================================================
   STORE PAGE - TOP MARGIN AND PADDING FIX
   Ensures page content starts below the navigation on all page types
   ========================================================================== */

/* Fix for frontpage/homepage with store content */
.home .pluginhq-store-wrapper,
.front-page .pluginhq-store-wrapper,
body.home .entry-content > .pluginhq-store-wrapper:first-child,
body.front-page .entry-content > .pluginhq-store-wrapper:first-child {
    margin-top: 100px !important;
    padding-top: 20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Fix for store hero sections */
.pluginhq-store-hero,
.store-hero,
.page-template-store .entry-content > *:first-child,
.page-template-pluginhq .entry-content > *:first-child {
    margin-top: 80px;
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Ensure all store content on frontpage has proper spacing */
.home .site-content .pluginhq-store-wrapper,
.front-page .site-content .pluginhq-store-wrapper {
    padding-top: 100px !important;
}

/* Blur page content when modal is active */
body.modal-open .pluginhq-store-wrapper,
body.modal-open #wpadminbar,
body.modal-open header,
body.modal-open nav,
body.modal-open footer {
    filter: blur(3px);
}

.pluginhq-store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--phq-border);
    padding-bottom: 20px;
}

.store-title {
    font-size: 32px;
    margin: 0;
    color: var(--phq-text);
}

.store-actions .cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--phq-primary);
    color: var(--phq-text);
    text-decoration: none;
    border-radius: var(--phq-radius-md);
    transition: all var(--phq-transition-base);
}

.store-actions .cart-link:hover {
    background: var(--phq-primary-hover);
    box-shadow: var(--phq-shadow-glow);
    transform: translateY(-2px);
}

.cart-count {
    background: var(--phq-error);
    color: var(--phq-text);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

/* ==========================================================================
   PRODUCTS GRID
   ========================================================================== */

.pluginhq-products-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.pluginhq-products-grid.columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.pluginhq-products-grid.columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.pluginhq-products-grid.columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* ==========================================================================
   PRODUCT CARD - GLASS-MORPHISM
   ========================================================================== */

.product-card {
    background: var(--phq-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--phq-border-subtle);
    border-radius: var(--phq-radius-lg);
    padding: 20px;
    transition: all var(--phq-transition-slow);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--phq-shadow-glow);
    border-color: var(--phq-border-hover);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: var(--phq-text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.product-header {
    margin-bottom: 15px;
}

.product-name {
    font-size: 20px;
    margin: 0 0 5px 0;
    color: var(--phq-text);
}

.product-version {
    color: var(--phq-text-muted);
    font-size: 14px;
}

.product-image {
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: var(--phq-radius-md);
    background: var(--phq-bg);
    aspect-ratio: 3 / 2;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-description {
    color: var(--phq-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-meta {
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid var(--phq-border-subtle);
    border-bottom: 1px solid var(--phq-border-subtle);
}

.license-info {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--phq-text-muted);
}

.license-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.license-type {
    background: var(--phq-bg);
    padding: 2px 8px;
    border-radius: var(--phq-radius-sm);
    color: var(--phq-text-muted);
}

.product-pricing {
    text-align: center;
    margin: 15px 0;
}

.product-pricing .price,
.product-pricing .sale-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--phq-primary);
}

.product-pricing .regular-price {
    font-size: 18px;
    color: var(--phq-text-dim);
    margin-right: 10px;
}

.strikethrough {
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.product-actions .button {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    border-radius: var(--phq-radius-md);
    cursor: pointer;
    transition: all var(--phq-transition-base);
    background: var(--phq-primary);
    color: var(--phq-text);
    border: none;
    font-weight: 600;
}

.product-actions .button:hover {
    background: var(--phq-primary-hover);
    box-shadow: var(--phq-shadow-glow);
    transform: translateY(-2px);
}

/* ==========================================================================
   MODAL - GLASS-MORPHISM
   ========================================================================== */

.pluginhq-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.pluginhq-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    background: var(--phq-bg-card);
    max-width: 700px;
    width: 90%;
    margin: 0;
    padding: 30px;
    border-radius: var(--phq-radius-xl);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--phq-border-subtle);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    line-height: 1;
    color: var(--phq-text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px 10px;
    z-index: 1;
    transition: color var(--phq-transition-fast);
}

.modal-close:hover {
    color: var(--phq-text);
}

.modal-product-name {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--phq-text);
}

.modal-product-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--phq-text-muted);
}

.modal-product-features {
    margin-bottom: 20px;
}

.modal-product-features h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--phq-text);
}

.modal-product-features ul {
    list-style: none;
    padding: 0;
}

.modal-product-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--phq-text-muted);
}

.modal-product-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--phq-success);
    font-weight: bold;
}

.modal-product-pricing {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--phq-primary);
}

.modal-actions {
    margin-top: 20px;
    text-align: right;
}

/* ==========================================================================
   CART PAGE
   ========================================================================== */

.pluginhq-cart-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--phq-text-muted);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    table-layout: fixed;
}

.cart-table th:nth-child(1),
.cart-table td:nth-child(1) { width: 25%; }

.cart-table th:nth-child(2),
.cart-table td:nth-child(2) { width: 20%; }

.cart-table th:nth-child(3),
.cart-table td:nth-child(3) { width: 10%; }

.cart-table th:nth-child(4),
.cart-table td:nth-child(4) { width: 7%; text-align: right; }

.cart-table th:nth-child(5),
.cart-table td:nth-child(5) { width: 5%; text-align: center; }

.cart-table th {
    background: var(--phq-bg-elevated);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--phq-border);
    color: var(--phq-text);
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--phq-border-subtle);
    overflow-wrap: break-word;
    word-wrap: break-word;
    color: var(--phq-text);
}

.domain-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid var(--phq-border);
    border-radius: var(--phq-radius-sm);
    font-size: 14px;
    background: var(--phq-bg);
    color: var(--phq-text);
    transition: all var(--phq-transition-fast);
}

.domain-input.error {
    border-color: var(--phq-error);
    background-color: var(--phq-error-bg);
}

.domain-input:focus {
    outline: none;
    border-color: var(--phq-primary);
    box-shadow: 0 0 0 3px var(--phq-primary-glow);
}

.domain-input.error:focus {
    border-color: var(--phq-error);
}

.quantity-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    background: var(--phq-bg);
    color: var(--phq-text);
    border: 1px solid var(--phq-border);
    border-radius: var(--phq-radius-sm);
}

.remove-item {
    background: none;
    border: none;
    color: var(--phq-error);
    cursor: pointer;
    font-size: 20px;
    transition: color var(--phq-transition-fast);
}

.remove-item:hover {
    color: #ff6b6b;
}

.cart-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.clear-cart-btn {
    background: var(--phq-bg-elevated);
    color: var(--phq-text-muted);
    border: 1px solid var(--phq-border);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: var(--phq-radius-sm);
    transition: all var(--phq-transition-base);
}

.clear-cart-btn:hover {
    background: var(--phq-error);
    color: var(--phq-text);
    border-color: var(--phq-error);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.cart-totals {
    max-width: 400px;
    margin-left: auto;
    background: var(--phq-bg-glass);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: var(--phq-radius-lg);
    border: 1px solid var(--phq-border-subtle);
}

.totals-table {
    width: 100%;
}

.totals-table th,
.totals-table td {
    padding: 10px;
    color: var(--phq-text);
}

.totals-table .total {
    border-top: 2px solid var(--phq-border);
    font-size: 18px;
}

.total-amount {
    color: var(--phq-primary);
}

.proceed-to-checkout {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 20px;
    background: var(--phq-primary);
    color: var(--phq-text);
    border: none;
    border-radius: var(--phq-radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--phq-transition-base);
}

.proceed-to-checkout:hover {
    background: var(--phq-primary-hover);
    box-shadow: var(--phq-shadow-glow);
    transform: translateY(-2px);
}

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */

.pluginhq-checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.checkout-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--phq-text-muted);
}

.checkout-breadcrumb .breadcrumb-link {
    color: var(--phq-primary);
    text-decoration: none;
    transition: color var(--phq-transition-fast);
}

.checkout-breadcrumb .breadcrumb-link:hover {
    color: var(--phq-primary-hover);
    text-decoration: underline;
}

.checkout-breadcrumb .breadcrumb-separator {
    color: var(--phq-text-dim);
    margin: 0 4px;
}

.checkout-breadcrumb .breadcrumb-current {
    color: var(--phq-text);
    font-weight: 500;
}

.checkout-header {
    margin-bottom: 40px;
    text-align: center;
}

.checkout-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--phq-text);
    margin: 0 0 20px 0;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--phq-text-muted);
}

.checkout-steps .step {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--phq-bg-elevated);
    color: var(--phq-text-dim);
    text-decoration: none;
    display: inline-block;
    transition: all var(--phq-transition-base);
}

.checkout-steps .step.completed {
    background: var(--phq-success-bg);
    color: var(--phq-success);
    cursor: pointer;
}

.checkout-steps .step.completed:hover {
    background: rgba(34, 197, 94, 0.25);
    text-decoration: none;
}

.checkout-steps .step.active {
    background: var(--phq-primary);
    color: var(--phq-text);
    font-weight: 600;
}

.checkout-steps .step-separator {
    color: var(--phq-text-dim);
    font-size: 18px;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
    align-items: start;
}

.checkout-form-section {
    background: transparent;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: var(--phq-bg-glass);
    backdrop-filter: blur(20px);
    padding: 25px;
    border: 1px solid var(--phq-border-subtle);
    border-radius: var(--phq-radius-lg);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--phq-text);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--phq-border-subtle);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--phq-text);
}

.form-group .required {
    color: var(--phq-error);
    font-weight: 600;
}

.form-group .optional {
    color: var(--phq-text-dim);
    font-weight: 400;
    font-size: 13px;
}

.form-group .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--phq-border);
    border-radius: var(--phq-radius-md);
    font-size: 15px;
    transition: all var(--phq-transition-fast);
    background: var(--phq-bg);
    color: var(--phq-text);
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--phq-primary);
    box-shadow: 0 0 0 3px var(--phq-primary-glow);
}

.form-group .form-control::placeholder {
    color: var(--phq-text-dim);
}

.form-group .field-help {
    font-size: 13px;
    color: var(--phq-text-muted);
    margin: 6px 0 0 0;
}

.checkbox-group {
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--phq-text-muted);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--phq-primary);
}

.checkbox-label a {
    color: var(--phq-primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.order-summary-section {
    position: sticky;
    top: 20px;
}

.summary-card {
    background: var(--phq-bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--phq-border-subtle);
    border-radius: var(--phq-radius-lg);
    overflow: hidden;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--phq-text);
    margin: 0;
    padding: 25px;
    background: var(--phq-bg-card);
    border-bottom: 1px solid var(--phq-border-subtle);
}

.order-items {
    padding: 20px 25px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--phq-border-subtle);
}

.order-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--phq-text);
    margin-bottom: 4px;
}

.item-domain {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--phq-text-muted);
    margin-top: 4px;
}

.item-domain .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.item-quantity {
    font-size: 13px;
    color: var(--phq-text-dim);
    margin-top: 4px;
}

.item-price {
    font-weight: 600;
    font-size: 15px;
    color: var(--phq-text);
    white-space: nowrap;
}

.order-totals {
    padding: 20px 25px;
    background: var(--phq-bg-card);
    border-top: 1px solid var(--phq-border-subtle);
}

.total-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
}

.subtotal-line,
.tax-line {
    color: var(--phq-text-muted);
}

.grand-total {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid var(--phq-border);
    font-size: 18px;
    font-weight: 700;
    color: var(--phq-text);
}

.payment-section {
    padding: 25px;
    background: var(--phq-bg-card);
    border-top: 1px solid var(--phq-border-subtle);
}

.payment-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--phq-text);
    margin: 0 0 15px 0;
}

.payment-description {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--phq-text-muted);
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(200, 69, 54, 0.1);
    border-radius: var(--phq-radius-md);
}

.payment-description .dashicons {
    color: var(--phq-primary);
}

#paypal-button-container {
    margin: 20px 0;
}

.payment-marks {
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid var(--phq-border-subtle);
}

#paypal-marks-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-trust {
    text-align: center;
    margin-top: 10px;
}

.payment-trust small {
    color: var(--phq-text-muted);
    font-size: 13px;
}

.accepted-payments {
    text-align: center;
    padding: 20px;
    background: var(--phq-bg-glass);
    border: 1px solid var(--phq-border-subtle);
    border-radius: var(--phq-radius-md);
}

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--phq-primary);
    font-size: 16px;
    margin-bottom: 8px;
}

.payment-security .dashicons {
    font-size: 20px;
}

.accepted-cards {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--phq-border-subtle);
}

.accepted-cards img {
    height: 28px;
    width: auto;
    opacity: 0.7;
}

.payment-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(200, 69, 54, 0.1);
    border-radius: var(--phq-radius-md);
    margin: 20px 0;
}

.payment-status .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--phq-border);
    border-top-color: var(--phq-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-status p {
    margin: 0;
    color: var(--phq-primary);
    font-weight: 500;
}

.payment-error {
    padding: 16px;
    background: var(--phq-error-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--phq-radius-md);
    color: var(--phq-error);
    margin: 20px 0;
}

/* ==========================================================================
   THANK YOU PAGE
   ========================================================================== */

.pluginhq-thank-you-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.success-icon {
    font-size: 60px;
    color: var(--phq-success);
    margin-bottom: 20px;
}

.success-icon .dashicons {
    width: 60px;
    height: 60px;
    font-size: 60px;
}

.order-confirmation-message {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--phq-text);
}

.order-details,
.licenses-section {
    background: var(--phq-bg-glass);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: var(--phq-radius-lg);
    margin-bottom: 30px;
    text-align: left;
    border: 1px solid var(--phq-border-subtle);
}

.order-info {
    display: grid;
    gap: 10px;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    padding: 8px 0;
    border-bottom: 1px solid var(--phq-border-subtle);
}

.info-row .label {
    font-weight: 600;
    color: var(--phq-text-muted);
}

.info-row .value {
    color: var(--phq-text);
}

.license-item {
    background: var(--phq-bg-card);
    padding: 20px;
    border: 1px solid var(--phq-border-subtle);
    border-radius: var(--phq-radius-md);
    margin-bottom: 20px;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.license-header h4 {
    margin: 0;
    color: var(--phq-text);
}

.license-key-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.license-key {
    background: var(--phq-bg);
    padding: 10px;
    border-radius: var(--phq-radius-sm);
    font-family: monospace;
    font-size: 14px;
    user-select: all;
    color: var(--phq-text);
    border: 1px solid var(--phq-border-subtle);
}

.copy-license-btn {
    background: var(--phq-primary);
    color: var(--phq-text);
    border: none;
    padding: 8px;
    border-radius: var(--phq-radius-sm);
    cursor: pointer;
    transition: all var(--phq-transition-base);
}

.copy-license-btn:hover {
    background: var(--phq-primary-hover);
    box-shadow: var(--phq-shadow-glow);
}

.activation-instructions {
    margin-top: 30px;
    padding: 20px;
    background: rgba(200, 69, 54, 0.1);
    border-radius: var(--phq-radius-md);
    border: 1px solid rgba(200, 69, 54, 0.2);
}

.activation-instructions ol {
    text-align: left;
    margin: 15px 0 0 20px;
    color: var(--phq-text-muted);
}

.thank-you-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .pluginhq-products-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary-section {
        position: static;
        order: -1;
    }

    .checkout-header {
        margin-bottom: 30px;
    }

    .checkout-title {
        font-size: 24px;
    }

    .checkout-steps {
        font-size: 12px;
    }

    .checkout-steps .step {
        padding: 6px 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 20px;
    }

    .summary-card {
        margin-bottom: 20px;
    }
    
    .cart-table {
        font-size: 14px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 8px;
    }
}

/* ==========================================================================
   NOTICES
   ========================================================================== */

.notice {
    padding: 15px;
    border-radius: var(--phq-radius-sm);
    margin-bottom: 20px;
}

.notice-error {
    background: var(--phq-error-bg);
    border-left: 4px solid var(--phq-error);
    color: var(--phq-error);
}

.notice-info {
    background: rgba(200, 69, 54, 0.1);
    border-left: 4px solid var(--phq-primary);
    color: var(--phq-primary);
}

.notice-success {
    background: var(--phq-success-bg);
    border-left: 4px solid var(--phq-success);
    color: var(--phq-success);
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--phq-bg-elevated);
    border-top: 3px solid var(--phq-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .pluginhq-thank-you-wrapper {
        max-width: 100%;
    }
    
    .thank-you-actions,
    .support-info,
    .copy-license-btn {
        display: none;
    }
    
    .license-key {
        border: 1px solid #333;
        padding: 10px;
    }
}
