/* ===================================================
   WebInstant Frontend — Multi-Step Order Form
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* === Base Container === */
.wi-order-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    color: #1a1a2e;
}

.wi-order-container.wi-step-1-active {
    max-width: 1200px;
}

.wi-order-container *,
.wi-order-container *::before,
.wi-order-container *::after {
    box-sizing: border-box;
}

.wi-order-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.wi-subtitle {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 30px;
}

.wi-required {
    color: #ef4444;
}

/* === Step Indicator === */
.wi-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.wi-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}

.wi-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.wi-step.active .wi-step-number {
    background: #62ccd3;
    color: #fff;
}

.wi-step.completed .wi-step-number {
    background: #2dd361;
    color: #fff;
}

.wi-step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wi-step.active .wi-step-label {
    color: #10a4b0;
}

.wi-step.completed .wi-step-label {
    color: #11998e;
}

.wi-step-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    min-width: 40px;
    max-width: 80px;
    margin: 0 8px;
    margin-bottom: 50px;
    transition: background 0.3s;
}

.wi-step-line.completed {
    background: #3acd6f;
}

/* === Step Content === */
.wi-step-content {
    display: none;
    animation: wiFadeIn 0.3s ease;
}

.wi-step-content.active {
    display: block;
}

@keyframes wiFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Template Grid === */
.wi-templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

.wi-template-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s ease;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.wi-template-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.wi-template-card.selected {
    box-shadow: 0 0 0 3px #10a4b0, 0 12px 32px rgba(102, 126, 234, 0.2);
}

.wi-template-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: #10a4b0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

/* Screenshot Thumbnail */
.wi-template-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    /* 16:10 aspect ratio */
    overflow: hidden;
    background: #f3f4f6;
}

.wi-template-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.wi-template-card:hover .wi-template-thumb {
    transform: scale(1.03);
}

/* Hover Overlay */
.wi-template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.wi-template-card:hover .wi-template-overlay {
    opacity: 1;
}

.wi-overlay-btn {
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
    text-align: center;
    display: inline-block;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
    line-height: normal;
}

.wi-overlay-btn-preview {
    background: #e5c750;
    color: black;
}

.wi-overlay-btn-preview:hover {
    background: #ffde59;
    color: black;
}

.wi-overlay-btn-select {
    background: #10a4b0;
    color: #fff;
    border: 2px solid #10a4b0;
}

.wi-overlay-btn-select:hover {
    background: #3cb9c3;
    border-color: #3cb9c3;
}

/* Card Info (minimal, below image) */
.wi-template-info {
    padding: 14px 16px;
}

.wi-template-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wi-template-category {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.wi-template-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.wi-template-orders {
    font-size: 11px;
    color: #ea580c;
    font-weight: 600;
}

/* Placeholder when no thumbnail */
.wi-template-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 48px;
    background: #f3f4f6;
}

/* === Filter Buttons === */
.wi-template-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.wi-filter-btn {
    padding: 8px 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
    color: #374151;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
    line-height: normal;
}

.wi-filter-btn:hover {
    border-color: #10a4b0;
    color: #10a4b0;
    background-color: white !important;
}

.wi-filter-btn.active {
    background: #10a4b0;
    color: #fff;
    border-color: #10a4b0;
}

.wi-filter-btn.active:hover {
    background-color: #10a4b0 !important;
    color: #fff !important;
    border-color: #10a4b0 !important;
}

/* === Domain Mode Toggle === */
.wi-domain-mode-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    max-width: 460px;
}

.wi-domain-mode-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #6b7280;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
    line-height: normal;
}

.wi-domain-mode-btn:hover {
    background-color: #10a4b0 !important;
    color: #fff !important;
    border-color: #10a4b0 !important;
}

.wi-domain-mode-btn:first-child {
    border-right: 2px solid #e5e7eb;
}

.wi-domain-mode-btn.active {
    background: #10a4b0;
    color: #fff;
}

.wi-domain-mode-btn:hover:not(.active) {
    background: #f9fafb;
}

.wi-panel-desc {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Own Domain Confirmed */
.wi-own-domain-info {
    margin-top: 16px;
}

.wi-own-domain-confirmed {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 10px;
}

.wi-own-domain-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.wi-own-domain-confirmed strong {
    font-size: 16px;
    color: #166534;
    display: block;
    margin-bottom: 4px;
}

.wi-own-domain-confirmed p {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

/* === Domain Search === */
.wi-domain-search {
    margin-bottom: 20px;
}

.wi-domain-input-group {
    display: flex;
    gap: 10px;
    max-width: 600px;
}

.wi-domain-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.wi-domain-input-group input:focus {
    outline: none;
    border-color: #10a4b0;
    border-style: solid !important;
    border-width: 2px !important;
}

/* === Domain Results === */
.wi-domain-results {
    margin-top: 20px;
}

.wi-domain-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.wi-domain-item:hover {
    border-color: #10a4b0;
}

.wi-domain-item.selected {
    border-color: #10a4b0;
    background: rgba(102, 126, 234, 0.05);
}

.wi-domain-item.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.wi-domain-item-name {
    font-weight: 600;
    font-size: 16px;
}

.wi-domain-item-price {
    text-align: right;
}

.wi-domain-item-price .sale-price {
    font-weight: 700;
    color: #10a4b0;
    font-size: 16px;
}

.wi-domain-item-price .normal-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 13px;
    margin-left: 8px;
}

.wi-domain-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.wi-badge-available {
    background: #d1fae5;
    color: #065f46;
}

.wi-badge-unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.wi-badge-popular {
    background: #dbeafe;
    color: #1d4ed8;
}

.wi-badge-promo {
    background: #fef3c7;
    color: #92400e;
}

/* === Form Grid === */
.wi-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wi-form-group {
    display: flex;
    flex-direction: column;
}

.wi-form-group.wi-full-width {
    grid-column: 1 / -1;
}

.wi-form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    color: #374151;
}

.wi-form-group input,
.wi-form-group textarea,
.wi-form-group select {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    background-color: #fff;
    color: #1a1a2e;
    line-height: normal;
    border-style: solid !important;
}

.wi-form-group input:focus,
.wi-form-group textarea:focus,
.wi-form-group select:focus {
    outline: none;
    border-color: #10a4b0;
    border-style: solid !important;
    border-width: 2px !important;
}

.wi-form-group input.error,
.wi-form-group textarea.error {
    border-color: #ef4444;
}

/* === Checkout Summary === */
.wi-checkout-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.wi-summary-section {
    margin-bottom: 16px;
}

.wi-summary-section h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.wi-summary-item {
    font-size: 15px;
    color: #374151;
}

.wi-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.wi-total-admin-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

/* === Coupon === */
.wi-coupon-section {
    margin: 12px 0;
    padding: 10px 0;
    border-top: 1px dashed #e5e7eb;
}

.wi-coupon-input-row {
    display: flex;
    gap: 8px;
}

.wi-coupon-input-row input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    border-style: solid !important;
}

.wi-coupon-input-row input:focus {
    outline: none;
    border-color: #10a4b0;
    border-style: solid !important;
    border-width: 2px !important;
}

.wi-btn-coupon {
    padding: 8px 16px;
    background: #62ccd3;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
    line-height: normal;
}

.wi-btn-coupon:hover {
    background: #10a4b0;
}

.wi-btn-coupon:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#wi-coupon-message {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
}

.wi-discount-row {
    font-weight: 600;
}

.wi-grand-total {
    border-top: 2px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 8px;
    font-size: 18px;
}

/* === Payment Methods === */

/* === Addons Section === */
.wi-addons-section {
    margin-bottom: 24px;
}

.wi-addons-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.wi-addons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wi-addon-card {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.wi-addon-card:hover {
    border-color: #10a4b0;
}

.wi-addon-card.selected {
    border-color: #10a4b0;
    background: rgba(102, 126, 234, 0.04);
}

.wi-addon-card.required {
    border-color: #d1d5db;
    background: #f9fafb;
    cursor: default;
}

.wi-addon-card.required::after {
    content: 'Wajib';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #10a4b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wi-addon-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wi-addon-card.selected .wi-addon-checkbox {
    background: #10a4b0;
    border-color: #10a4b0;
}

.wi-addon-card.selected .wi-addon-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.wi-addon-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.wi-addon-body {
    flex: 1;
    min-width: 0;
}

.wi-addon-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.wi-addon-description {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    line-height: 1.4;
}

.wi-addon-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wi-addon-price {
    font-weight: 700;
    font-size: 14px;
    color: #10a4b0;
}

.wi-addon-type-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wi-addon-type-badge.recurring {
    background: #dbeafe;
    color: #1d4ed8;
}

.wi-addon-type-badge.one_time {
    background: #d1fae5;
    color: #065f46;
}

.wi-addon-cycle {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.wi-payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 15px;
}

.wi-payment-option {
    cursor: pointer;
    display: block;
}

.wi-payment-option input {
    display: none;
}

.wi-payment-card {
    padding: 14px 16px;
    border: 2px dashed #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.wi-payment-option.active .wi-payment-card,
.wi-payment-option input:checked+.wi-payment-card {
    border-color: #10a4b0;
    border-style: solid;
    background: rgba(102, 126, 234, 0.05);
}

.wi-payment-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
}

.wi-payment-option input:checked+.wi-payment-card .wi-payment-icon {
    background: rgba(102, 126, 234, 0.1);
}

.wi-payment-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* === Buttons === */
.wi-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 12px;
}

.wi-order-container .wi-btn,
.wi-order-container button.wi-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Resets to prevent theme overrides */
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    text-decoration: none;
    line-height: normal;
    letter-spacing: normal;
    text-transform: none;
    outline: none;
    margin: 0;
}

.wi-order-container .wi-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wi-order-container .wi-btn-primary,
.wi-order-container button.wi-btn-primary {
    background: #10a4b0;
    color: #fff;
    box-shadow: none;
}

.wi-order-container .wi-btn-primary:hover:not(:disabled) {
    background: #3cb9c3;
    transform: translateY(-1px);
}

.wi-order-container .wi-btn-secondary,
.wi-order-container button.wi-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    box-shadow: none;
}

.wi-order-container .wi-btn-secondary:hover {
    background: #e5e7eb;
}

.wi-order-container .wi-btn-success,
.wi-order-container button.wi-btn-success {
    background: #62ccd3;
    color: #fff;
    box-shadow: none;
}

.wi-order-container .wi-btn-success:hover:not(:disabled) {
    background: #10a4b0;
    transform: translateY(-1px);
}

/* === Spinner === */
.wi-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wiSpin 0.6s linear infinite;
    display: inline-block;
}

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

/* === Loading === */
.wi-loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 15px;
}

/* === Alert === */
.wi-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

.wi-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.wi-alert.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* === Success State === */
.wi-success-state {
    text-align: center;
    padding: 40px 20px;
}

.wi-success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.wi-success-state h2 {
    color: #11998e;
}

/* === Payment Instructions === */
.wi-payment-instructions {
    text-align: left;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.wi-payment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.wi-payment-icon {
    font-size: 28px;
}

.wi-payment-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

.wi-payment-desc {
    color: #6b7280;
    margin-bottom: 16px;
    font-size: 14px;
}

.wi-transfer-amount {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.wi-transfer-label {
    font-size: 12px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wi-transfer-value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.wi-transfer-value {
    font-size: 24px;
    font-weight: 700;
}

.wi-bank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.wi-bank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
}

.wi-bank-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
}

.wi-bank-number {
    font-size: 16px;
    font-weight: 600;
    color: #4f46e5;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.wi-bank-holder {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.wi-btn-copy {
    padding: 6px 14px;
    border: 1px solid #fff;
    border-radius: 6px;
    background: #62ccd3;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.wi-btn-copy:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.wi-transfer-amount .wi-btn-copy {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.wi-transfer-amount .wi-btn-copy:hover {
    background: rgba(255, 255, 255, 0.35);
}

.wi-payment-notes {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.wi-payment-notes p {
    margin: 4px 0;
    font-size: 13px;
    color: #6b7280;
}

/* === Status Page === */
.wi-status-form {
    margin-bottom: 30px;
}

.wi-status-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.wi-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.wi-status-header h3 {
    margin: 0;
}

.wi-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.wi-status-badge.pending {
    background: #f0ad4e;
}

.wi-status-badge.paid {
    background: #5bc0de;
}

.wi-status-badge.processing {
    background: #337ab7;
}

.wi-status-badge.completed {
    background: #5cb85c;
}

.wi-status-body {
    padding: 24px;
}

/* Timeline */
.wi-status-timeline {
    position: relative;
    padding-left: 30px;
}

.wi-status-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.wi-timeline-item {
    position: relative;
    margin-bottom: 24px;
    opacity: 0.4;
}

.wi-timeline-item.active {
    opacity: 1;
}

.wi-timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e5e7eb;
    position: absolute;
    left: -30px;
    top: 2px;
    border: 3px solid #fff;
    z-index: 1;
}

.wi-timeline-item.active .wi-timeline-dot {
    background: #10a4b0;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.wi-timeline-content strong {
    display: block;
    font-size: 14px;
}

.wi-timeline-content span {
    font-size: 12px;
    color: #9ca3af;
}

.wi-status-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 2px solid #e5e7eb;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
}

/* === Extra Fields === */
.wi-extra-fields {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px dashed #e5e7eb;
}

/* === Responsive === */
@media (max-width: 768px) {
    .wi-order-container {
        padding: 0 16px;
        margin: 20px auto;
    }

    .wi-order-container h2 {
        font-size: 22px;
    }

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

    .wi-payment-options {
        grid-template-columns: 1fr;
    }

    .wi-templates-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wi-order-container.wi-step-1-active {
        max-width: 100%;
    }

    .wi-steps-indicator {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .wi-step-label {
        font-size: 10px;
    }

    .wi-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .wi-step-line {
        min-width: 20px;
    }

    .wi-domain-mode-toggle {
        max-width: 100%;
    }

    .wi-domain-mode-btn {
        font-size: 13px;
        padding: 10px 12px;
    }

    .wi-domain-mode-btn:hover {
        background-color: #10a4b0 !important;
        color: #fff !important;
        border-color: #10a4b0 !important;
    }

    .wi-domain-input-group {
        flex-direction: column;
    }

    .wi-coupon-input-row {
        flex-direction: column;
    }

    .wi-coupon-input-row input {
        width: 100%;
    }

    .wi-addons-grid {
        grid-template-columns: 1fr;
    }

    .wi-nav-buttons {
        flex-direction: column;
    }

    .wi-nav-buttons .wi-btn {
        width: 100%;
        justify-content: center;
    }

    .wi-domain-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wi-checkout-summary {
        padding: 16px;
    }

    .wi-packages-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 8px;
        margin-top: -4px;
    }

    .wi-packages-grid::-webkit-scrollbar {
        display: none;
    }

    .wi-packages-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .wi-package-card {
        min-width: 260px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    /* Catalog responsive */
    .wi-catalog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .wi-catalog-header h2 {
        font-size: 22px;
    }

    .wi-catalog-filters {
        gap: 6px;
    }

    .wi-catalog-filter {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .wi-order-container {
        padding: 0 12px;
    }

    .wi-order-container h2 {
        font-size: 20px;
    }

    .wi-templates-grid {
        grid-template-columns: 1fr;
    }

    /* Show overlay on touch (since no hover) */
    .wi-template-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.3);
    }

    .wi-domain-mode-toggle {
        flex-direction: column;
        border-radius: 10px;
    }

    .wi-domain-mode-btn:first-child {
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
    }

    .wi-summary-row {
        flex-direction: column;
        gap: 2px;
    }

    .wi-summary-value {
        text-align: left;
    }

    .wi-catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wi-catalog-thumb-wrapper {
        padding-top: 56%;
    }

    .wi-catalog-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.3);
    }

    .wi-payment-card {
        padding: 12px 14px;
    }

    .wi-step-label {
        display: none;
    }
}

/* === Packages Section === */
.wi-packages-section {
    margin-bottom: 24px;
}

.wi-packages-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.wi-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}



.wi-package-card {
    position: relative;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.wi-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.wi-package-card.selected {
    border-color: #10a4b0;
    background: #f0f9ff;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15);
    z-index: 2;
}

.wi-package-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #f59e0b;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
}

.wi-package-header {
    margin-bottom: 20px;
}

.wi-package-name {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.wi-package-price {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.wi-package-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.wi-package-features {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.wi-package-features li {
    font-size: 14px;
    color: #4b5563;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}

.wi-package-features li:last-child {
    border-bottom: none;
}

.wi-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.wi-btn-outline {
    background: #10a4b0;
    border: 2px solid #10a4b0;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
    text-decoration: none;
    line-height: normal;
}

.wi-btn-outline:hover {
    background: #62ccd3;
    color: #fff;
}


.wi-price-strike {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.9em;
    margin-right: 4px;
}

.wi-text-success {
    color: #16a34a;
    font-weight: 600;
}

/* === Template Catalog Shortcode === */
.wi-catalog-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.wi-catalog-header {
    text-align: center;
    margin-bottom: 32px;
}

.wi-catalog-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.wi-catalog-header p {
    color: #6b7280;
    font-size: 16px;
}

.wi-catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.wi-catalog-filter {
    padding: 8px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
}

.wi-catalog-filter:hover {
    border-color: #11998e !important;
    color: #11998e;
    background-color: white !important;
}

.wi-catalog-filter.active {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: #fff;
    border-color: transparent;
}

.wi-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.wi-catalog-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.wi-catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.wi-catalog-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: #f3f4f6;
}

.wi-catalog-thumb-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wi-catalog-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #d1d5db;
}

.wi-catalog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}

.wi-catalog-thumb-wrapper:hover .wi-catalog-overlay {
    opacity: 1;
}

.wi-catalog-btn {
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    min-width: 140px;
    text-align: center;
    display: inline-block;
}

.wi-catalog-btn-preview {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    text-decoration: none !important;
}

.wi-catalog-btn-preview:hover {
    background: #fff;
    text-decoration: none !important;
}

.wi-catalog-btn-select {
    background: #10a4b0;
    color: #fff;
    text-decoration: none !important;
}

.wi-catalog-btn-select:hover {
    background: #3cb9c3;
    color: #fff;
    text-decoration: none !important;
}

.wi-catalog-info {
    padding: 16px;
    flex: 1;
}

.wi-catalog-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.wi-catalog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.wi-catalog-category {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wi-catalog-orders {
    font-size: 11px;
    color: #ea580c;
    font-weight: 600;
}

.wi-catalog-price {
    font-size: 18px;
    font-weight: 700;
    color: #11998e;
}

.wi-catalog-buy-btn {
    display: block;
    text-decoration: none !important;
    text-align: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
    transition: opacity 0.2s;
}

.wi-catalog-buy-btn:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none !important;
}