/* Success Modal Styles */
.tpg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
}
.tpg-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}
.tpg-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10;
}
.tpg-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.tpg-modal-header {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    padding: 30px 24px;
    text-align: center;
}
.tpg-checkmark {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.tpg-checkmark svg {
    width: 32px;
    height: 32px;
    color: #22c55e;
}
.tpg-modal-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
}
.tpg-modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
}
.tpg-modal-body {
    padding: 24px;
}
.tpg-order-number {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    margin-bottom: 20px;
}
.tpg-order-number .tpg-label {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.tpg-order-number strong {
    font-size: 18px;
    color: #333;
    font-weight: 700;
}
.tpg-order-details {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.tpg-event-title {
    background: #f8f9fa;
    padding: 12px 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e5e7eb;
}
.tpg-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.tpg-detail-row:last-of-type {
    border-bottom: none;
}
.tpg-detail-row span:first-child {
    color: #666;
}
.tpg-detail-row span:last-child {
    color: #333;
    font-weight: 500;
}
.tpg-total-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 16px;
}
.tpg-total-row span:last-child {
    color: #22c55e;
}
.tpg-email-notice {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.tpg-email-notice svg {
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 2px;
}
.tpg-email-notice p {
    margin: 0;
    font-size: 13px;
    color: #166534;
    line-height: 1.4;
}
.tpg-modal-footer {
    padding: 0 24px 24px;
    text-align: center;
}
.tpg-btn-close {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.tpg-btn-close:hover {
    background: #1a1a1a;
}
@media (max-width: 520px) {
    .tpg-modal-overlay {
        padding: 10px;
    }
    .tpg-modal-header {
        padding: 24px 20px;
    }
    .tpg-modal-header h2 {
        font-size: 20px;
    }
    .tpg-modal-body {
        padding: 20px;
    }
}
