/**
 * Frontend Pricing Styles
 * Prefix: .wppe-
 */

#woo-print-pricing-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155; /* Slate 700 */
    max-width: 650px;
    margin: 2rem auto;
}

#woo-print-pricing-wrapper * {
    box-sizing: border-box;
}

/* Header */
.wppe-header {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.wppe-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b; /* Slate 800 */
    margin: 0;
}

/* Groups and Options */
.wppe-group-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wppe-group-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b; /* Slate 500 */
    margin-bottom: 0.75rem;
}

.wppe-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .wppe-options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wppe-option-label {
    position: relative;
    cursor: pointer;
    display: block;
}

.wppe-option-input {
    user-select: none;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wppe-option-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #f8fafc; /* Slate 50 */
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    height: 100%;
    text-align: center;
}

.wppe-option-input:checked + .wppe-option-inner {
    background: #ffffff;
    border-color: #4f46e5; /* Indigo 600 */
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
    transform: translateY(-1px);
}

.wppe-option-input:focus + .wppe-option-inner {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.wppe-option-img-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wppe-option-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wppe-option-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
}

.wppe-option-input:checked + .wppe-option-inner .wppe-option-name {
    color: #4f46e5;
}

.wppe-option-price-tag {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4f46e5;
    background: #e0e7ff;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

/* Checkmark */
.wppe-checkmark {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1rem;
    height: 1rem;
    color: #4f46e5;
    opacity: 0;
    transition: opacity 0.2s;
}

.wppe-option-input:checked + .wppe-option-inner .wppe-checkmark {
    opacity: 1;
}


/* Summary Card */
.wppe-summary-card {
    background: #0f172a; /* Slate 900 */
    color: #f8fafc;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.wppe-summary-content {
    padding: 1.5rem;
}

.wppe-summary-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8; /* Slate 400 */
    margin-bottom: 1rem;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 0.5rem;
}

.wppe-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1; /* Slate 300 */
}

.wppe-summary-row.accent-row {
    border-top: 1px solid #1e293b;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.wppe-summary-val {
    font-family: monospace;
    font-weight: 500;
    color: #f8fafc;
}

.wppe-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #1e293b;
}

.wppe-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.wppe-total-price {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    transition: color 0.3s ease;
}

.wppe-total-price.highlight {
    color: #818cf8; /* Indigo 400 */
}

.wppe-special-tag {
    font-size: 0.75rem;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    display: inline-block;
}

.wppe-decorative-line {
    height: 4px;
    background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
}

/* Animations */
.animate-fadeIn {
    animation: wppeFadeIn 0.3s ease-out forwards;
}

@keyframes wppeFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
