/* DIGIPLUS FRONTEND STYLES */
input[type=phone],
input[type=text],
textarea {
    margin-bottom: 0 !important;
}

@font-face {
    font-family: 'Manrope';
    src: url('../font/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* Entity Grid (Groups, Categories, Sub-Categories) */
.ad-entity-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 900px) {
    .ad-entity-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .ad-entity-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.ad-entity-card {

    display: grid;
    background: #fff;
    place-items: center;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 2px solid #f1f5f9;
    transition: transform 0.2s;
    text-decoration: none;
    color: #333;
    min-height: 100px;
    flex-wrap: nowrap;
    justify-content: normal;
    justify-items: center;
    /* background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.2s;
    text-decoration: none;
    color: #333;
    display: block; */
}

.ad-entity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    color: #333;
}

.ad-entity-name {
    font-weight: 700;
    font-size: 18px;
    margin: 0;
    color: #333;
}

.ad-entity-desc {
    font-size: 13px;
    color: #777;
    margin-top: 10px;
}

/* Product Store Grid */
.ad-store-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 900px) {
    .ad-store-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .ad-store-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Stats Desktop vs Mobile Logic */
.ds-stats-mobile {
    display: none;
    /* Hidden on desktop */
}

/* Mobile Responsive: 2 per row & Square adjustments */
@media (max-width: 768px) {
    .ad-store-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .ds-subtitle {
        display: none !important;
    }

    .ds-image-container {
        height: 120px !important;
        /* Uniform height for standard card images */
    }

    .ds-content {
        padding: 10px !important;
        min-height: 80px;
        /* Ensures text area is consistent */
    }

    .ds-stats-desktop {
        display: none !important;
    }

    .ds-stats-mobile {
        display: flex;
        position: absolute;
        bottom: 6px;
        left: 6px;
        right: 6px;
        gap: 4px;
        z-index: 4;
        flex-wrap: wrap;
    }

    .ds-stat-pill {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2px 6px;
        border-radius: 6px;
        color: white;
        font-size: 8px;
        font-weight: 600;
    }

    .ds-title {
        font-size: 12px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 6px !important;
    }

    /* Fix for Cards 4, 5, 6 (Dark Overlay Style) */
    .ds-overlay-content {
        height: 200px !important;
        /* Forces these to match the height of standard cards */
        padding: 12px !important;
    }

    .ds-action-btn {
        padding: 6px !important;
        font-size: 10px !important;
        border-radius: 10px !important;
        flex-direction: column;
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .ds-price-tag {
        font-size: 14px !important;
    }

    .ds-badge {
        top: 6px !important;
        left: 6px !important;
        font-size: 8px !important;
        padding: 2px 6px !important;
    }
}

/* Shared Card Components */
.ds-card-base {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ds-card-base:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.ds-image-container {
    width: 100%;
    height: 180px;
    background-color: #f1f5f9;
    position: relative;
    background-size: cover;
    background-position: center;
}

.ds-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 3;
    color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ds-content {
    padding: 8px 6px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ds-title {
    font-size: 14px;
    line-height: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.ds-subtitle {
    font-size: 12px;
    color: #666;
    line-height: 0.8;
    margin-bottom: 6px;
}

.ds-stats-desktop {
    display: flex;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 0;
    margin-bottom: 8px;
    justify-content: space-between;
}

.ds-stat-item {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
}

.ds-strike-price {
    font-size: 10px;
    color: #ef4444;
    text-decoration: line-through;
    font-weight: 500;
    opacity: 0.9;
}

.ds-action-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 15px;
    background: #1e293b;
    color: white;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    transition: background 0.2s;
}

.ds-action-btn:hover {
    background: #0f172a;
}

.ds-price-tag {
    font-weight: 800;
    font-size: 16px;
}

/* Pagination */
.ad-pagination {
    margin-top: 30px;
    text-align: center;
}

.ad-pagination a,
.ad-pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 2px;
    text-decoration: none;
    color: #333;
}

.ad-pagination .current {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Category Page */
.ad-category-page .ad-page-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #2c3e50;
    text-align: center;
}

/* Placeholder Styling */
.ad-placeholder {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    font-style: italic;
    color: #6c757d;
}

/* Order Page Styles */
.ad-order-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ad-order-hero {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.ad-order-hero-banner {
    height: 150px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.ad-order-hero-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ad-order-hero-cover {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-order-hero-details h1 {
    margin: 0;
    font-size: 24px;
}

.ad-order-hero-desc {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.ad-order-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-weight: bold;
    color: #ccc;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.step-btn.active {
    color: #333;
    border-bottom: 2px solid #3498db;
}

.ad-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ad-card h3 {
    margin-top: 0;
}

.ad-form-group {
    margin-bottom: 15px;
}

.ad-form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.ad-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.ad-btn-primary {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.ad-btn-secondary {
    background: #eee;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.ad-btn-confirm {
    background: #27ae60;
}

.ad-btn-small {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 4px;
}

label.apd-form-label {
    font-size: 14px;
    display: block;
    font-weight: 700;
}

.ad-grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.ad-product-select-card {
    cursor: pointer;
    display: block;
}

.ad-product-select-card input {
    display: none;
}

.ad-card-inner {
    border: 2px solid #eee;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    transition: all 0.2s;
}

.ad-product-select-card input:checked+.ad-card-inner {
    border-color: #3498db;
    background: #f0f9ff;
}

.prod-name {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.prod-price {
    display: block;
    color: #666;
    font-size: 13px;
}

.ad-payment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ad-payment-card {
    cursor: pointer;
    display: block;
}

.ad-payment-card input {
    display: none;
}

.ad-payment-card .ad-card-inner {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ad-order-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ad-order-summary-table tr {
    border-bottom: 1px solid #eee;
}

.ad-order-summary-table td {
    padding: 10px 0;
}

.ad-summary-label {
    color: #666;
}

.ad-summary-value {
    font-weight: bold;
    text-align: right;
}

.ad-summary-total {
    padding: 15px 0;
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    color: #e67e22;
}

.ad-summary-details {
    margin-top: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.ad-summary-details-content {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

.ad-step-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.ad-step-actions.right-only {
    justify-content: flex-end;
}

/* Validation Messages */
.ad-validation-message {
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 8px;
    border-radius: 4px;
}

.ad-validation-success {
    color: #27ae60;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.ad-validation-error {
    color: #e74c3c;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* new order */
/* Hero Header */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    /* padding: 32px 16px; */
}


.apd-product-logo {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.apd-header-text h1 {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.apd-header-text p {
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.apd-user-email {
    display: none !important;
}

.apd-badges {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.apd-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
}

.apd-badge-green {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

.apd-badge-blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.apd-badge-yellow {
    background: #fff9e1;
    color: #000000;
    border: 1px solid #0c0707;
}

/* Main Grid */
apdmain {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.apd-order-header {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    max-width: 1110px;
    margin: 32px auto;
    padding: 0 16px;
}

.apd-banner-hero {
    display: block;
}

.apd-order-hero-banner {
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    background-size: cover;
    border-radius: 16px;
}

@media (max-width:576px) {

    .apd-order-header {
        display: block;
    }

    .apd-product-logo {
        margin: -100px calc(0.70 * 50%);
        display: block;
        position: absolute;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 -4px 9px rgba(0, 0, 0, 0.8);
    }

    .apd-header-text h1 {
        margin-top: 50px;
    }

}

@media (min-width: 1024px) {
    apdmain {
        grid-template-columns: 1fr 380px;
    }

}

/* Form Controls */
input[type="number"] {
    width: 100%;
    padding: 14px 20px;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    outline: none;
    transition: all 0.2s;
}

input[type="text"]:focus {
    border-color: var(--primary);
    background: white;
}

input[type="radio"]:checked+.apd-option-card {
    border-color: var(--primary);
    background-color: #eff6ff;
}

.apd-input-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    margin: 0;
}

/* Cards */
section {
    background: var(--white);
    /* border: 1px solid var(--border); */
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.apd-section-header {
    background: #f8fafc;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.apd-step-num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.apd-section-header h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.apd-section-body {
    padding: 24px;
}

/* Form Controls */
input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    outline: none;
    transition: all 0.2s;
}

input[type="text"]:focus {
    border-color: var(--primary);
    background: white;
}

.apd-field-info {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Product Grid */
.apd-grid-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .apd-grid-options {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* Controls Bar (Search & Filter) */
.controls-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

@media (max-width: 600px) {
    .controls-bar {
        flex-direction: column;
    }
}

.search-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 10px 10px 40px !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.filter-select {
    padding: 10px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    min-width: 180px;
    outline: none;
    transition: border-color 0.2s;
}

.filter-select:focus {
    border-color: var(--primary);
}

.apd-option-card {
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.apd-option-card:hover {
    border-color: #cbd5e1;
}

input[type="radio"]:checked+.apd-option-card {
    border-color: var(--primary);
    background-color: #eff6ff;
}

.apd-option-label {
    font-size: 10px;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
}

.apd-option-name {
    font-size: 0.9rem;
    font-weight: 800;
    display: block;
    margin: 2px 0 8px;
}

.apd-option-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.apd-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* 2-Column Layout for Payment Methods only */
.apd-payment-grid .apd-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.apd-logo-column {
    flex: 0 0 50px;
    display: flex;
    justify-content: center;
}

.apd-details-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.apd-channel-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.apd-channel-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: normal;
}

.apd-channel-total {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* Sidebar Summary */
.apd-sidebar {
    position: sticky;
    top: 32px;
}

.apd-summary-card {
    background: var(--white);
    border-radius: 16px;
    /* border: 1px solid var(--border); */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.apd-summary-header {
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apd-summary-body {
    padding: 24px;
}

.apd-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.9rem;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.apd-summary-label {
    color: var(--text-muted);
}

.apd-summary-value {
    font-weight: 700;
    text-align: right;
}

.apd-total-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px dashed var(--border);
}

.apd-total-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.apd-total-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
}

.apd-btn-pay {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
}

.apd-btn-pay:hover {
    background: var(--primary-hover);
}

.apd-hidden {
    display: none;
}

.apd-channel-name {
    font-weight: 500;
}

.apd-channel-total {
    font-size: 14px;
}

/* END new order */
/* 
 * ----------------------------------------------------
 * NEW CARD DESIGN (Entity Grid V2)
 * Based on Stress Analytics Card V2
 * ----------------------------------------------------
 */

/* Utility */
.ad-hidden {
    display: none !important;
}

/* Main Card Container */
.apd-card2-container {
    background: #ffffff;
    width: 100%;
    /* max-width: 440px; Remove max-width to let grid control it */
    border-radius: 12px;
    overflow: visible;
    /* Changed to visible to allow label to float outside */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
    margin-bottom: 4px;
    /* Extra space for the suspended label */
    text-decoration: none;
    display: block;
}

.apd-card2-container:hover {
    transform: translateY(-5px);
}

/* Inner Wrapper to maintain clipping for image/content but allow labels outside */
.apd-card2-inner {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Image Section */
.apd-card-image-wrapper {
    width: 100%;
    /* height: 140px; */
    position: relative;
    background: #000;
}

.apd-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    transition: opacity 0.3s;
}

.apd-card2-container:hover .apd-card-image {
    opacity: 1;
}

/* Badge Overlay */
.apd-card-badges {
    position: absolute;
    top: 28px;
    left: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 90%;
    z-index: 5;
}

.apd-card-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.apd-card-badge.red {
    background: #f50000;
}

.apd-card-badge.blue {
    background: #2563eb;
}

/* Text Content Section */
.apd-card2-content {
    padding: 2px 4px 2px 4px;
    max-height: 120px;
    /* Increased slightly */
    overflow: hidden;
    text-align: center;
    background-color: #000;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.apd-card2-title {
    font-size: clamp(1rem, 2vw, 2rem);
    /* Adjusted from 34px for better fit */
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 10px;
    letter-spacing: -1px;
    /* height: 80px; Let it grow naturally but capped by container */
    overflow: hidden;
    margin-top: 0;
}

/* Floating Label Styling with Shiny Animation */
.apd-card2-event-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    /* Offset half height to suspend below */
    z-index: 10;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(251, 33, 117, 0.3);

    /* Animation CSS classes from user */
    border: none;
    background: rgb(251, 33, 117);
    background: linear-gradient(0deg, rgba(251, 33, 117, 1) 0%, rgba(234, 76, 137, 1) 100%);
    color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.apd-card2-event-label:before {
    position: absolute;
    content: '';
    display: inline-block;
    top: -180px;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: #fff;
    animation: shiny-btn1 3s ease-in-out infinite;
}

.apd-card2-container:hover .apd-card2-event-label {
    opacity: .8;
    transform: translate(-50%, 45%);
    color: #fff;
}

.apd-card2-event-label:active {
    box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, .3),
        -4px -4px 6px 0 rgba(116, 125, 136, .2),
        inset -4px -4px 6px 0 rgba(255, 255, 255, .2),
        inset 4px 4px 6px 0 rgba(0, 0, 0, .2);
}

@-webkit-keyframes shiny-btn1 {
    0% {
        -webkit-transform: scale(0) rotate(45deg);
        opacity: 0;
    }

    80% {
        -webkit-transform: scale(0) rotate(45deg);
        opacity: 0.5;
    }

    81% {
        -webkit-transform: scale(4) rotate(45deg);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(50) rotate(45deg);
        opacity: 0;
    }
}

@keyframes shiny-btn1 {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }

    80% {
        transform: scale(0) rotate(45deg);
        opacity: 0.5;
    }

    81% {
        transform: scale(4) rotate(45deg);
        opacity: 1;
    }

    100% {
        transform: scale(50) rotate(45deg);
        opacity: 0;
    }
}

/* Fixed Floating Bottom Bar */
.apd-card2-sticky-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border: 1px solid #f0f2f5;
    transition: all 0.3s ease;
}

.apd-card2-price-info {
    display: flex;
    flex-direction: column;
}

.apd-card2-price-label {
    font-size: 12px;
    color: #86868b;
    font-weight: 500;
}

.apd-card2-price-value {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
}

.apd-card2-main-btn {
    background: #2563eb;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.apd-card2-main-btn:hover {
    background: #1d4ed8;
    transform: scale(1.02);
}

.apd-card2-btn-icon {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

/* Ensure body has space for floating bar on mobile */
@media (max-width: 900px) {
    body {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .apd-card2-sticky-bar {
        width: 95%;
        bottom: 16px;
        padding: 10px 16px;
    }

    .apd-card2-price-value {
        font-size: 16px;
    }

    .apd-card2-main-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Stress Analytics Card V2 (Digishop V2) */
/* Utility */
.hidden {
    display: none !important;
}

/* Main Card Container */
.apd-card2-container {
    background: var(--card-bg);
    width: 100%;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    --dominant-color: 0, 0, 0;
    --title-text-color: #ffffff;
    --title-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 0px;
}

.apd-card2-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

/* Inner Wrapper */
.apd-card2-inner {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Image Section */
.apd-card-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    background: #e2e8f0;
    overflow: hidden;
}

.apd-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.apd-card2-container:hover .apd-card-image {
    transform: scale(1.1);
}

/* Dynamic Gradient Overlay */
.apd-card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent 0%, rgba(var(--dominant-color), 0.85) 70%, rgba(var(--dominant-color), 1) 100%);
    z-index: 1;
}

/* Badge Overlay */
.apd-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 5;
}

.apd-card-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apd-card-badge.red {
    background: #ef4444;
    border: none;
}

.apd-card-badge.blue {
    background: #3b82f6;
    border: none;
}

/* Text Content Section */
.apd-card2-content {
    padding: 10px 15px 30px 15px;
    text-align: center;
    background-color: rgb(var(--dominant-color));
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    position: relative;
    z-index: 2;
}

.apd-card2-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--title-text-color);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    text-shadow: var(--title-shadow);
    transition: color 0.3s ease;
}

/* Floating Label Styling */
.apd-card2-event-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 10;
    padding: 10px 24px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 11px;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(var(--dominant-color), 0.5);
    background: linear-gradient(0deg, rgba(251, 33, 117, 1) 0%, rgba(234, 76, 137, 1) 100%);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apd-card2-event-label span {
    position: relative;
    z-index: 2;
}

.apd-card2-event-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: none;
    animation: shine-sweep 3s infinite;
    z-index: 1;
}

@keyframes shine-sweep {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Fixed Floating Bottom Bar */
.apd-card2-sticky-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    padding: 10px 10px 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.apd-card2-price-info {
    display: flex;
    flex-direction: column;
}

.apd-card2-price-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.apd-card2-price-value {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-main);
}

.apd-card2-main-btn {
    background: var(--primary);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.apd-card2-main-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

@media (max-width: 480px) {
    .apd-card2-sticky-bar {
        bottom: 16px;
        padding: 8px 8px 8px 20px;
    }

    .apd-card2-price-value {
        font-size: 16px;
    }

    .apd-card2-main-btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    /* Main Grid */
    apdmain {
        display: flex;
        flex-direction: column;
        gap: 32px;
        padding: 0px;
    }

    .apd-section-body {
        padding: 18px 10px;
    }

    .apd-option-card,
    .apd-summary-body {
        padding: 10px;
    }
}

/* Product Tabs Search Interface */
:root {
    --ds-tabs-primary: #6366f1;
    --ds-tabs-primary-hover: #4f46e5;
    --ds-tabs-primary-font: 'Manrope', sans-serif;
    --ds-tabs-bg: #f8fafc;
    --ds-tabs-border: #e2e8f0;
    --ds-tabs-text: #1e293b;
    --ds-tabs-muted: #64748b;
    --ds-tabs-white: #ffffff;
    --ds-tabs-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Desktop (Default) */
.ds-search-fe-wrapper {
    min-width: 900px;
}

.ds-search-fe-wrapper {
    /* max-width: 900px; */
    margin: 20px auto;
    background: var(--ds-tabs-white);
    border-radius: 12px;
    box-shadow: var(--ds-tabs-shadow);
    overflow: visible;
    border: 1px solid var(--ds-tabs-border);
    position: relative;
    z-index: 10;
}

.ds-search-fe-header {
    padding: 24px 24px 0 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 30;
}

.ds-search-fe-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.ds-title-and-all {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ds-search-fe-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #1e293b;
    margin: 0 !important;
}

.ds-search-fe-view-all {
    color: var(--ds-tabs-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.ds-search-fe-view-all {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.ds-search-fe-tabs-container {
    display: flex;
    align-items: center;
    /* border-bottom: 1px solid #f1f5f9; */
    position: relative;
    z-index: 100;
}

.ds-search-fe-tabs {
    display: flex;
    overflow: hidden;
    flex-grow: 1;
    gap: 0;
    min-width: 0;
    /* Important for flex-shrink/overflow behavior */
}

.ds-search-fe-tab-item {
    padding: 8px 16px 12px 16px;
    cursor: pointer;
    font-weight: 700;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 14px;
}

.ds-search-fe-tab-item.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    font-weight: 900;
}

.ds-search-fe-tab-more {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin-left: 12px;
    color: #64748b;
    margin-bottom: 3px;
    flex-shrink: 0;
    position: relative;
    z-index: 200;
    /* Extremely high to stay above input row */
}

.ds-search-fe-subtabs-outer {
    display: none;
    background: #fcfdfe;
    border-bottom: 1px solid var(--ds-tabs-border);
    border-top: 1px solid var(--ds-tabs-border);
    padding: 10px 12px;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 20;
}

.ds-search-fe-subtabs-outer.show {
    display: flex;
}

.ds-search-fe-subtabs-container {
    display: flex;
    gap: 8px;
    overflow: hidden;
    flex-grow: 1;
    flex-wrap: nowrap;
}

.ds-search-fe-subtab {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ds-tabs-muted);
    background: white;
    border: 1px solid var(--ds-tabs-border);
    border-radius: 99px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ds-search-fe-subtab.active {
    background: var(--ds-tabs-primary);
    color: white;
    border-color: var(--ds-tabs-primary);
}

.ds-search-fe-more-btn {
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: white;
    border: 1px solid var(--ds-tabs-border);
    border-radius: 6px;
    color: var(--ds-tabs-muted);
    margin-left: 8px;
    flex-shrink: 0;
    z-index: 50;
    min-width: 36px;
    min-height: 34px;
}

.ds-search-fe-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: white;
    border: 1px solid var(--ds-tabs-border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 200px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    max-height: 250px;
    overflow-y: auto;
}

.ds-search-fe-dropdown.show {
    display: flex;
}

.ds-search-fe-dropdown-item {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--ds-tabs-text);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.ds-search-fe-dropdown-item:hover {
    background-color: var(--ds-tabs-bg);
    color: var(--ds-tabs-primary);
}

.ds-search-fe-form-body {
    padding: 0 24px 32px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 100px;
    gap: 20px;
    align-items: end;
    position: relative;
    z-index: 10;
}

.ds-search-fe-form-body.mlbb-mode {
    grid-template-columns: 1fr 1fr 1fr auto;
}

@media (max-width: 768px) {

    /* Mobile Override */
    .ds-search-fe-wrapper {
        min-width: 0;
        /* Must reset the 900px rule first */
        width: 100%;
        /* Set to full width */
        margin: 0;
        /* Optional: removes side margins for a true full-bleed look */
        border-radius: 0;
        /* Optional: square edges look better at 100% width */
    }

    .ds-search-fe-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ds-search-fe-form-body {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ds-search-fe-form-body,
    .ds-search-fe-form-body.mlbb-mode {
        grid-template-columns: 1fr;
        padding-bottom: 24px;
    }

    .ds-search-fe-tab-item {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 12px;
        letter-spacing: -0.5px;
        margin-right: 0;
    }
}

.ds-search-fe-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.ds-search-fe-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ds-tabs-muted);
}

.ds-search-fe-wrapper .ds-search-fe-input {
    font-family: var(--ds-tabs-primary-font) !important;
    font-weight: 400 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid var(--ds-tabs-border) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    outline: none !important;
    transition: all 0.2s !important;
    color: var(--ds-tabs-text) !important;
    background: white !important;
    /* height: 48px !important; */
    margin: 0 !important;
    display: block !important;
}

.ds-search-fe-input:focus {
    border-color: var(--ds-tabs-primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.ds-search-fe-wrapper .ds-search-fe-provider-logo {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50.5%) !important;
    width: 38px !important;
    height: 24px !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    z-index: 5 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.ds-search-fe-provider-logo.bg-red-600 {
    background-color: #dc2626;
    color: #fff !important;
}

.ds-search-fe-provider-logo.bg-yellow-400 {
    background-color: #facc15;
    color: #000 !important;
}

.ds-search-fe-provider-logo.bg-blue-700 {
    background-color: #1d4ed8;
    color: #fff !important;
}

.ds-search-fe-provider-logo.bg-purple-600 {
    background-color: #9333ea;
    color: #fff !important;
}

.ds-search-fe-provider-logo.bg-orange-600 {
    background-color: #ea580c;
    color: #fff !important;
}

.ds-search-fe-provider-logo.bg-pink-600 {
    background-color: #db2777;
    color: #fff !important;
}

.ds-search-fe-select {
    font-family: var(--ds-tabs-primary-font) !important;
    font-weight: 400 !important;
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 1px solid var(--ds-tabs-border) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background-color: white !important;
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
}

.ds-search-fe-btn-submit {
    padding: 12px 32px;
    background-color: var(--ds-tabs-border);
    color: var(--ds-tabs-muted);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: not-allowed;
    height: 48px;
    transition: all 0.2s;
}

.ds-search-fe-btn-submit.ready {
    background-color: var(--ds-tabs-primary);
    color: white;
    cursor: pointer;
}

.ds-search-fe-helper-text {
    font-size: 11px;
    /* position: absolute; */
    bottom: -24px;
    left: 0;
    width: 100%;
    color: var(--ds-tabs-muted);
}

.ds-search-fe-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ds-search-fe-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: var(--ds-tabs-muted);
    width: 100%;
}

/* Nominal Grid */
.ds-nominal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.ds-nominal-card {
    background: #fff;
    border: 2px solid var(--ds-tabs-border);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.ds-nominal-card:hover {
    border-color: var(--ds-tabs-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.ds-nominal-card.active {
    border-color: var(--ds-tabs-primary);
    background-color: rgba(99, 102, 241, 0.04);
}

.ds-nominal-card.active::after {
    content: '?';
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--ds-tabs-primary);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.ds-nominal-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ds-tabs-text);
}

.ds-nominal-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--ds-tabs-muted);
}

.ds-nominal-grid .active .ds-nominal-price {
    color: var(--ds-tabs-primary);
}

/* Skeleton Loaders */
@keyframes ds-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.ds-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: ds-shimmer 1.5s infinite linear;
    border-radius: 8px;
    display: block;
}

.ds-skeleton-pill {
    height: 32px;
    width: 80px;
    border-radius: 99px;
}

.ds-skeleton-card {
    height: 60px;
    border-radius: 10px;
}

.ds-skeleton-field {
    height: 48px;
    border-radius: 8px;
}

.ds-skeleton-label {
    height: 16px;
    width: 100px;
    margin-bottom: 8px;
}

/* Layout Adjustments */
.ds-search-fe-form-body {
    padding: 24px 24px 48px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 10;
}

.ds-search-fe-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr min(25%, 180px);
    gap: 16px;
    width: 100%;
    align-items: start;
}

.ds-search-fe-col-account {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.ds-search-fe-col-account .ds-search-fe-field-group {
    flex: 1;
}

.ds-search-fe-submit-wrap {

    /* Dropdown search styling */
    .ds-search-fe-dropdown-search-wrap {
        padding: 10px;
        border-bottom: 1px solid var(--ds-tabs-border);
        position: sticky;
        top: 0;
        background: white;
        z-index: 5;
    }

    .ds-search-fe-dropdown-search {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid var(--ds-tabs-border);
        border-radius: 6px;
        font-size: 13px;
        outline: none;
        background: #f8fafc;
    }

    .ds-search-fe-dropdown-search:focus {
        border-color: var(--ds-tabs-primary);
        background: #fff;
    }

    .ds-search-fe-dropdown-list {
        flex: 1;
        overflow-y: auto;
    }

    /* --- SCREENSHOT MATCH REFINEMENTS --- */

    /* Header & Title Row */
    .ds-search-fe-title-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .ds-search-fe-title {
        font-size: 24px;
        font-weight: 800;
        color: #1e293b;
        margin: 0;
    }

    .ds-search-fe-view-all {
        color: #6366f1;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        transition: color 0.2s;
    }

    .ds-search-fe-view-all:hover {
        color: #4f46e5;
    }

    /* Tab Item Underline Style */
    .ds-search-fe-tab-item {
        padding: 12px 0;
        margin-right: 24px;
        background: none;
        border: none;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        font-weight: 700;
        color: #64748b;
        cursor: pointer;
        transition: all 0.2s;
    }

    .ds-search-fe-tab-item:hover {
        color: #1e293b;
        background: none;
    }

    .ds-search-fe-tab-item.active {
        color: #6366f1;
        border-bottom-color: #6366f1;
        background: none;
    }

    /* Single-Row Form Layout */
    .ds-search-fe-fields-row {
        display: grid;
        grid-template-columns: 1fr 1fr min(25%, 180px);
        gap: 16px;
        align-items: flex-end;
        width: 100%;
    }

    .ds-search-fe-field-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0;
    }

    .ds-search-fe-input,
    .ds-search-fe-select {
        height: 48px;
        padding: 0 16px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 15px;
        background: #fff;
        width: 100%;
        color: #1e293b;
        transition: border-color 0.2s;
    }

    .ds-search-fe-input:focus,
    .ds-search-fe-select:focus {
        border-color: #6366f1;
        outline: none;
    }

    /* Submit Button Style */
    .ds-search-fe-btn-submit {
        height: 48px;
        padding: 0 32px;
        background: #e2e8f0;
        /* Grey when disabled as per screenshot */
        color: #64748b;
        font-weight: 700;
        border-radius: 8px;
        border: none;
        cursor: default;
        transition: all 0.2s;
        min-width: 100px;
    }

    .ds-search-fe-btn-submit.ready {
        background: #6366f1;
        color: #fff;
        cursor: pointer;
    }

    .ds-search-fe-btn-submit.ready:hover {
        background: #4f46e5;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    }

    /* Badge for Provider */
    .ds-tabs-badge {
        padding: 2px 6px;
        border-radius: 4px;
        color: white;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .ds-search-fe-wrapper .ds-search-fe-provider-logo {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50.5%);
        z-index: 5;
        margin: 0 !important;
    }

    .ds-search-fe-submit-wrap {
        display: flex;
        justify-content: flex-end;
        margin-top: 12px;
    }

    @media (max-width: 768px) {
        .ds-search-fe-fields-row {
            grid-template-columns: 1fr;
        }

        .ds-search-fe-btn-submit {
            width: 100%;
        }
    }

    @media (max-width: 600px) {
        .ds-nominal-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .ds-search-fe-submit-wrap {
            justify-content: stretch;
        }

        .ds-search-fe-btn-submit {
            width: 100%;
        }
    }
}

/* Custom Product Dropdown */
.ds-search-fe-product-dropdown {
    position: relative;
    width: 100%;
    margin: 0;
}

.ds-search-fe-dropdown-trigger {
    font-family: var(--ds-tabs-primary-font) !important;
    font-weight: 400 !important;
    box-sizing: border-box !important;
    /* height: 48px; */
    padding: 12px 16px !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    width: 100%;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ds-search-fe-dropdown-trigger:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #64748b;
    margin-left: 10px;
}

.ds-search-fe-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    flex-direction: column;
}

.ds-search-fe-dropdown-menu.show {
    display: flex;
}

.ds-search-fe-dropdown-search-wrap {
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    display: flex;
}

.ds-search-fe-dropdown-search {
    width: 100%;
    padding: 8px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    outline: none !important;
    background: #f8fafc !important;
    height: auto !important;
}

.ds-search-fe-dropdown-options {
    overflow-y: auto;
    flex: 1;
}

.ds-search-fe-dropdown-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 14px;
    color: #1e293b;
}

.ds-search-fe-dropdown-option:hover {
    background: #f1f5f9;
}

.ds-search-fe-dropdown-option.selected {
    background: #eff6ff;
    color: #6366f1;
    font-weight: 700;
}

.ds-search-fe-col-product {
    display: block;
}

.ds-search-fe-col-submit {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ds-search-fe-dropdown-trigger.placeholder {
    color: #64748b;
}

.ds-skeleton-submit {
    height: 48px;
    border-radius: 8px;
    width: 100%;
}

@media (max-width: 768px) {
    .ds-search-fe-fields-row {
        grid-template-columns: 1fr !important;
    }

    .ds-search-fe-col-account,
    .ds-search-fe-col-product,
    .ds-search-fe-col-submit {
        width: 100% !important;
    }

    .ds-search-fe-col-account {
        flex-direction: column;
        gap: 16px;
    }

    .ds-search-fe-btn-submit {
        width: 100% !important;
        max-width: none !important;
    }
}