/* ParsHost order form — matches order-*.html kit */

@font-face {
    font-family: 'IRANYekanXVF';
    src: url('../fonts/IRANYekanXVF.woff2') format('woff2'),
         url('../fonts/IRANYekanXVF.woff') format('woff');
    font-weight: 100 1000;
    font-display: swap;
}

:root {
    --ph-order-sidebar-width: 320px;
    --ph-font: 'IRANYekanXVF', Tahoma, 'Segoe UI', sans-serif;
}

body.ph-order-shell,
body.ph-order-shell #order-standard_cart,
body.ph-order-shell .order-sidebar,
body.ph-order-shell .order-main,
body.ph-order-shell .ph-order-page,
body.ph-order-shell .ph-order-page .btn,
body.ph-order-shell .ph-order-page .form-control,
body.ph-order-shell .ph-order-page select,
body.ph-order-shell .ph-order-page input,
body.ph-order-shell .ph-order-page textarea {
    font-family: var(--ph-font) !important;
}

/* Order shell (hide WHMCS chrome) */
body.ph-order-shell #header,
body.ph-order-shell .master-breadcrumb,
body.ph-order-shell #footer,
body.ph-order-shell .main-navbar-wrapper {
    display: none !important;
}

body.ph-order-shell #main-body.ph-order-body,
body.ph-order-shell .ph-order-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

body.ph-order-shell section#main-body .container,
body.ph-order-shell .ph-order-content .container {
    max-width: 100% !important;
    padding: 0 !important;
}

body.ph-order-shell section#main-body .primary-content > p {
    display: none !important;
}

/* Stable order background — hide animated orbs that bleed on scroll */
body.ph-order-shell .bg-orbs,
body.ph-order-shell .particles {
    display: none !important;
}

body.ph-order-shell {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #f0fdfa 100%) !important;
    background-attachment: fixed !important;
}

body.ph-order-shell #main-body.ph-order-body,
body.ph-order-shell .ph-order-content,
body.ph-order-shell .order-main {
    background: transparent;
}

body.ph-order-shell .order-sidebar {
    background: rgba(255, 255, 255, 0.98);
}

body.ph-order-shell .ph-order-page .product-card,
body.ph-order-shell .ph-order-page .config-card,
body.ph-order-shell .ph-order-page .secondary-cart-body,
body.ph-order-shell .ph-order-page .info-card {
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Order sidebar */
.order-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--ph-order-sidebar-width);
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(16, 185, 129, 0.1);
    padding: 24px 0;
    z-index: 100;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(16, 185, 129, 0.06);
}

html[dir="ltr"] .order-sidebar {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: 4px 0 24px rgba(16, 185, 129, 0.06);
}

.order-sidebar-header {
    padding: 0 24px 20px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    margin-bottom: 16px;
}

.order-sidebar-steps {
    padding: 0 24px;
    list-style: none;
    margin: 0;
}

.step-item-order {
    display: flex;
    align-items: start;
    gap: 14px;
    padding: 14px 0;
    position: relative;
}

.step-item-order:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50px;
    width: 2px;
    height: calc(100% - 28px);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
}

html[dir="ltr"] .step-item-order:not(:last-child)::after {
    right: auto;
    left: 15px;
}

.step-item-order.done:not(:last-child)::after {
    background: linear-gradient(180deg, #10b981, #06b6d4);
}

.step-num-order {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.step-item-order.active .step-num-order,
.step-item-order.done .step-num-order {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.step-item-order.active .step-num-order {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.step-content-order { flex: 1; }
.step-title-order { font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.step-item-order.active .step-title-order,
.step-item-order.done .step-title-order { color: #047857; }
.step-desc-order { font-size: 12px; color: #9ca3af; }
.step-item-order.active .step-desc-order { color: #6b7280; }

.order-summary {
    padding: 16px 24px;
    margin: 16px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.02));
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.ph-order-summary-title {
    font-size: 13px;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    gap: 12px;
}

.summary-row.total {
    border-top: 2px solid rgba(16, 185, 129, 0.2);
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 700;
    color: #064e3b;
    font-size: 16px;
}

.order-sidebar-actions {
    padding: 0 24px;
}

.order-sidebar-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Main order content */
.order-main {
    margin-right: var(--ph-order-sidebar-width);
    padding: 32px;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

html[dir="ltr"] .order-main {
    margin-right: 0;
    margin-left: var(--ph-order-sidebar-width);
}

.order-step-content {
    max-width: 1100px;
    margin: 0 auto;
}

.ph-order-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.ph-order-page .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #064e3b;
    margin: 0;
}

/* Product cards */
.ph-order-page .product-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.25s;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ph-order-page a.product-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12);
    text-decoration: none;
    color: inherit;
    border-color: rgba(16, 185, 129, 0.35);
}

.ph-order-page a.product-card-link:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.ph-order-page .product-icon-0 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
    color: #059669;
}

.ph-order-page .product-icon-1 {
    background: linear-gradient(135deg, #06b6d4, #0e7490);
    color: #fff;
}

.ph-order-page .product-icon-2 {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
}

.ph-order-page .product-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 16px;
    min-height: 50px;
    flex: 1;
}

.ph-order-page .product-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
    transition: background 0.2s;
}

.ph-order-page a.product-card-link:hover .product-card-cta {
    background: linear-gradient(135deg, #059669, #047857);
}

.ph-order-page .product-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ph-order-page .product-name {
    font-size: 17px;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 6px;
}

.ph-order-page .product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.ph-order-page .product-features li {
    font-size: 12px;
    color: #4b5563;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ph-order-page .product-features li svg {
    width: 14px;
    height: 14px;
    color: #10b981;
    flex-shrink: 0;
}

.ph-order-page .product-price {
    padding-top: 14px;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    margin-bottom: 16px;
}

.ph-order-page .product-price .amount {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #059669, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ph-order-page .product-price .period {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    -webkit-text-fill-color: #6b7280;
    margin-right: 6px;
    display: inline;
}

.ph-order-page .grid {
    display: grid;
    gap: 20px;
}

.ph-order-page .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Category tabs — matches order-cart.html */
/* WHMCS standard_cart hides .sidebar-collapsed on desktop — override for ParsHost tabs */
.ph-order-page .ph-category-tabs-inner,
.ph-order-page .ph-category-tabs .ph-category-tabs-grid {
    display: grid !important;
}

.ph-order-page .sidebar-collapsed.ph-category-tabs-inner {
    display: block !important;
}

.ph-category-tabs .ph-category-tabs-inner {
    margin-bottom: 32px;
}

.ph-category-tabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.ph-product-group-tagline {
    margin: -8px 0 20px;
}

.ph-order-page .page-title {
    font-size: 32px;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .ph-category-tabs-grid {
        display: none;
    }
}

.ph-category-tabs-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .ph-category-tabs-mobile {
        display: block;
    }
}

.ph-category-tabs .panel-heading,
.ph-category-tabs .ph-category-tabs-mobile .panel-title {
    display: none;
}

.ph-category-tabs .ph-category-tabs-mobile .panel-body {
    padding: 0;
    border: none;
    background: transparent;
}

.ph-category-tabs .category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    min-height: 96px;
}

.ph-category-tabs .category-tab:hover {
    border-color: rgba(16, 185, 129, 0.3);
    color: #047857;
    text-decoration: none;
}

.ph-category-tabs .category-tab.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.ph-category-tabs .category-tab.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.ph-category-tabs .category-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ph-category-tabs .category-tab-icon svg {
    display: block;
}

.ph-category-tabs .category-tab-label {
    line-height: 1.4;
}

.ph-category-tabs .category-tab-badge {
    font-size: 11px;
    opacity: 0.85;
}

.ph-category-tabs .category-tab.active .category-tab-icon,
.ph-category-tabs .category-tab.active .category-tab-badge {
    color: white;
}

.ph-order-currency-switch {
    margin-top: 12px;
}

.ph-category-tabs select.form-control,
.ph-order-currency-switch select.form-control {
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 10px 14px;
}

.ph-product-group-title {
    font-size: 20px;
    font-weight: 700;
    color: #064e3b;
    margin: 0 0 16px;
}

.ph-order-page .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Configure / checkout cards */
.ph-order-page .config-card,
.ph-order-page .secondary-cart-body,
.ph-order-page .secondary-cart-sidebar {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    padding: 24px !important;
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.06);
    margin-bottom: 20px;
}

/* Reset standard_cart float layout inside ParsHost order shell */
.ph-order-page #order-standard_cart {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.ph-order-page #order-standard_cart .cart-body,
.ph-order-page #order-standard_cart .secondary-cart-body,
.ph-order-page #order-standard_cart .secondary-cart-sidebar {
    float: none !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ph-order-page #order-standard_cart .row {
    margin-left: 0;
    margin-right: 0;
}

.ph-order-page #order-standard_cart .row::before,
.ph-order-page #order-standard_cart .row::after {
    display: none;
}

/* Configure — single column form like HTML */
.ph-configure-form {
    max-width: 900px;
    margin: 0 auto;
}

.ph-order-page .product-info {
    padding: 20px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(6, 182, 212, 0.03));
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.ph-order-page .product-info .product-title {
    font-size: 18px !important;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 8px !important;
}

.ph-order-page .product-info p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

.ph-order-page .sub-heading {
    margin: 28px 0 16px;
}

.ph-order-page .sub-heading span {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
    color: #047857;
    font-weight: 600;
    font-size: 14px;
}

.ph-order-page .field-container {
    margin-bottom: 20px;
}

.ph-order-page .field-container label,
.ph-order-page .form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    margin-bottom: 6px;
}

.ph-order-page .config-card .form-control {
    padding: 10px 14px;
    min-height: 44px;
}

/* Live summary inside order sidebar (configure step) */
.order-sidebar .ph-live-summary {
    padding: 0 24px;
    margin: 8px 0 16px;
}

.order-sidebar .ph-order-summary-panel {
    margin: 0 !important;
    padding: 16px !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(6, 182, 212, 0.03)) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.order-sidebar .ph-order-summary-panel h2 {
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #064e3b !important;
    background: none !important;
    text-align: right !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
}

html[dir="ltr"] .order-sidebar .ph-order-summary-panel h2 {
    text-align: left !important;
}

.order-sidebar .ph-order-summary-panel .summary-container {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    font-size: 13px !important;
    color: #374151;
    line-height: 1.6;
    word-break: normal !important;
    white-space: normal !important;
}

.order-sidebar .ph-order-summary-panel .product-name {
    display: block;
    font-weight: 600;
    color: #064e3b;
    font-size: 13px !important;
    margin-bottom: 8px;
}

.order-sidebar .ph-order-summary-panel .product-group {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.order-sidebar .ph-order-summary-panel .clearfix {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
}

.order-sidebar .ph-order-summary-panel .summary-totals {
    margin: 8px 0;
    padding: 8px 0;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.order-sidebar .ph-order-summary-panel .total-due-today {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid rgba(16, 185, 129, 0.2);
}

.order-sidebar .ph-order-summary-panel .total-due-today span {
    display: block;
    text-align: inherit !important;
    font-size: 12px;
    color: #6b7280;
}

.order-sidebar .ph-order-summary-panel .total-due-today .amt {
    font-size: 20px !important;
    font-weight: 800;
    color: #047857;
    margin-top: 4px;
}

.order-sidebar .ph-order-summary-panel .loader {
    position: static !important;
    height: auto !important;
    padding: 8px 0 !important;
    text-align: center;
    color: #10b981;
}

.order-sidebar .ph-summary-actions {
    padding: 0 24px 8px;
}

.order-sidebar .ph-summary-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-weight: 600;
}

.order-sidebar .ph-summary-actions .btn svg {
    flex-shrink: 0;
}

.ph-configure-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.ph-order-page .order-summary,
.ph-order-page #orderSummary .order-summary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.02)) !important;
    border: 1px solid rgba(16, 185, 129, 0.15) !important;
    padding: 20px !important;
    box-shadow: none !important;
}

.ph-order-page .order-summary h2 {
    font-size: 18px !important;
    color: #064e3b;
    font-weight: 700;
}

.ph-order-page .form-control,
.ph-order-page select.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.ph-order-page .form-control:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.ph-order-page .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    color: #fff !important;
}

.ph-order-page .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

.ph-order-page .btn-ghost,
.ph-order-page .ph-order-cancel {
    background: transparent !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    color: #047857 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ph-order-page .already-registered {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 16px;
    margin-bottom: 20px;
}

.ph-order-page .checkout-security-msg {
    color: #047857;
    margin-top: 20px;
}

/* Cart SPA */
.ph-order-cart-spa .order-main {
    padding: 24px 32px;
}

.ph-order-cart-spa #nexus-root {
    min-height: 60vh;
}

/* Complete page */
.success-hero {
    padding: 40px 24px 32px;
    text-align: center;
    position: relative;
}

.success-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 48px rgba(16, 185, 129, 0.4);
}

.success-circle svg {
    width: 48px;
    height: 48px;
}

.info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 28px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.08);
}

.order-details {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.02));
    padding: 20px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.06);
}

.ph-order-complete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Configure card headings (order-configure.html) */
.ph-order-page .config-card-title,
.ph-order-page .config-card h2.config-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #064e3b;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ph-order-page .config-card-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px;
}

.ph-order-page .config-card-title-sm {
    font-size: 15px;
    font-weight: 700;
    color: #064e3b;
    margin: 0 0 12px;
}

.ph-order-page .ph-configure-actions {
    margin-top: 24px;
}

.ph-order-page .ph-configure-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
}

/* Domain selection (configureproductdomain) */
.ph-order-page .ph-domain-options {
    margin: 0;
}

.ph-order-page .ph-domain-options .ph-domain-option.option {
    margin-bottom: 10px;
    padding: 16px 18px;
    border: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 0;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.ph-order-page .ph-domain-options .ph-domain-option.option:hover {
    border-color: rgba(16, 185, 129, 0.35);
}

.ph-order-page .ph-domain-options .ph-domain-option.option-selected {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), transparent);
}

.ph-order-page .ph-domain-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.ph-order-page .ph-domain-option-label input[type="radio"] {
    accent-color: #10b981;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ph-order-page .ph-domain-option.option-selected .ph-domain-option-label {
    color: #047857;
}

.ph-order-page .ph-domain-input.domain-input-group {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.ph-order-page .ph-domain-search-box,
.ph-order-page .ph-domain-search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    padding: 6px;
    background: #fff;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.ph-order-page .ph-domain-search-box input.form-control,
.ph-order-page .ph-domain-search-box select.form-control,
.ph-order-page .ph-domain-search-row select.form-control {
    flex: 1 1 140px;
    min-width: 0;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: 44px;
}

html[dir="rtl"] .ph-order-page .ph-domain-search-box input.form-control,
html[dir="rtl"] .ph-order-page .ph-domain-search-box select.form-control {
    direction: ltr;
    text-align: left;
}

.ph-order-page .ph-domain-search-box .ph-domain-tld {
    flex: 0 0 auto;
    max-width: 120px;
    background: rgba(16, 185, 129, 0.05) !important;
}

.ph-order-page .ph-domain-search-box .btn,
.ph-order-page .ph-domain-search-row .btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 12px 20px;
}

.ph-order-page .ph-domain-prefix {
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 13px;
    color: #6b7280;
    direction: ltr;
}

.ph-order-page .ph-domain-free-note {
    margin: 16px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.ph-order-page #DomainSearchResults.config-card {
    margin-top: 20px;
}

.ph-order-page .domain-lookup-primary-results .headline {
    font-size: 1.25rem !important;
}

.ph-order-page .suggested-domains .domain-suggestion.list-group-item {
    border: 1px solid rgba(16, 185, 129, 0.15);
    margin-bottom: 8px;
    padding: 14px;
    background: rgba(16, 185, 129, 0.04);
}

/* Billing period grid */
.ph-order-page .ph-period-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.ph-order-page .ph-billing-select-wrap .form-control {
    max-width: 100%;
}

/* Addons styled like order-configure.html */
.ph-order-page .ph-addon-list .panel-addon {
    float: none !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 18px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(16, 185, 129, 0.15) !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.ph-order-page .ph-addon-list .panel-addon:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.ph-order-page .ph-addon-list .panel-addon.panel-addon-selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent) !important;
    border: 2px solid #10b981 !important;
}

.ph-order-page .ph-addon-list .panel-addon .panel-body {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.ph-order-page .ph-addon-list .panel-addon label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-weight: 600;
    color: #064e3b;
    cursor: pointer;
}

.ph-order-page .ph-addon-list .panel-addon .panel-price {
    position: static !important;
    margin-top: 8px;
    padding: 0 !important;
    background: none !important;
    font-size: 14px;
    font-weight: 700;
    color: #047857;
    text-align: inherit !important;
}

.ph-order-page .ph-addon-list .panel-addon .panel-add {
    display: none !important;
}

/* View cart page */
.ph-view-cart-page .ph-view-cart-body {
    max-width: 900px;
    margin: 0 auto;
}

.ph-order-page .view-cart-items-header {
    padding: 12px 16px;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.04));
    border-bottom: 1px solid rgba(16, 185, 129, 0.12);
    font-weight: 600;
    color: #064e3b;
    font-size: 13px;
}

.ph-order-page .view-cart-items .item {
    padding: 16px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.08);
    background: rgba(255, 255, 255, 0.5);
}

.ph-order-page .view-cart-items .item:last-child {
    border-bottom: none;
}

.ph-order-page .view-cart-items .item-title {
    font-weight: 600;
    color: #064e3b;
    font-size: 15px;
}

.ph-order-page .view-cart-items .item-group,
.ph-order-page .view-cart-items .item-domain {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.ph-order-page .view-cart-items .item-price {
    text-align: inherit !important;
    font-weight: 700;
    color: #047857;
}

.ph-order-page .view-cart-tabs {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.ph-order-page .view-cart-tabs .nav-tabs {
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.ph-order-page .view-cart-tabs .nav-link {
    font-family: var(--ph-font) !important;
    color: #6b7280;
    font-weight: 600;
}

.ph-order-page .view-cart-tabs .nav-link.active {
    color: #047857;
    border-color: rgba(16, 185, 129, 0.2) rgba(16, 185, 129, 0.2) #fff;
}

.ph-order-page .view-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.order-sidebar .ph-continue-shopping {
    margin-top: 8px;
}

.order-sidebar .ph-express-checkout {
    margin-bottom: 12px;
}

/* Hide old cart sidebar */
.ph-order-page .cart-sidebar {
    display: none !important;
}

.ph-order-menu-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 110;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

html[dir="rtl"] .ph-order-menu-toggle {
    left: auto;
    right: 24px;
}

@media (max-width: 1024px) {
    .order-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s;
    }

    html[dir="ltr"] .order-sidebar {
        transform: translateX(-100%);
    }

    .order-sidebar.open {
        transform: translateX(0);
    }

    .order-main {
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding: 16px;
    }

    .ph-order-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ph-configure-grid {
        grid-template-columns: 1fr;
    }
}
