/* ==========================================================================
   Case Study Cards Section - Interactive Stacking Cards
   Inspired by casestudy-cards.mp4 & adapted to Saurjya Portfolio Brand
   ========================================================================== */

/* Section Outer Wrapper */
.cs-cards-section {
    position: relative;
    padding-top: 100px;
    padding-bottom: 0;
    background-color: #0f0f0f;
    overflow: visible;
    z-index: 10;
}

/* Subtle Ambient Glow Behind Section (Seamless Soft Dispersion with No Cutoff & Zero GPU Penalty) */
.cs-cards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: 1000px;
    max-width: 100%;
    height: 520px;
    background: radial-gradient(ellipse 65% 55% at 50% 40%, rgba(253, 91, 56, 0.08) 0%, rgba(253, 91, 56, 0.04) 25%, rgba(253, 91, 56, 0.015) 45%, rgba(253, 91, 56, 0.003) 60%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* Section Header Spacing & Layout */
.cs-cards-header {
    position: relative;
    margin-bottom: 90px;
    z-index: 2;
}

.cs-cards-header .sec-head {
    margin-bottom: 0 !important;
}

.cs-cards-header-desc {
    font-size: 17px;
    line-height: 1.6;
    color: #a3a3a3;
    max-width: 540px;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Pin Area & Container */
.cs-cards-pin-area {
    position: relative;
    width: 100%;
    z-index: 5;
}

.cs-cards-stack {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* ==========================================================================
   Individual Case Study Card
   ========================================================================== */
.cs-card-item {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
    padding: 44px 48px;
    border-radius: 28px;
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transition: border-color 0.35s ease;
    overflow: hidden;
    z-index: 1;
    /* Hardware acceleration & smooth compositing to eliminate 1st scroll hitch */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: 95% calc(5% + 160px) 0px;
}

.cs-card-item:last-child {
    margin-bottom: 0;
}

.cs-card-item:nth-child(1) {
    z-index: 2;
}

.cs-card-item:nth-child(2) {
    z-index: 3;
}

.cs-card-item:nth-child(3) {
    z-index: 4;
}

.cs-card-item:nth-child(4) {
    z-index: 5;
}

/* Card Specific Theme Accents */
.cs-card-item[data-theme="drivo"] {
    --card-accent: #fd5b38;
    --card-accent-rgb: 253, 91, 56;
}

.cs-card-item[data-theme="prakriti"] {
    --card-accent: #10b981;
    --card-accent-rgb: 16, 185, 129;
}

.cs-card-item[data-theme="bellagio"] {
    --card-accent: #f59e0b;
    --card-accent-rgb: 245, 158, 11;
}

.cs-card-item[data-theme="akatsuki"] {
    --card-accent: #ef4444;
    --card-accent-rgb: 239, 68, 68;
}

.cs-card-item:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

/* Card Header (Index, Tag & Title) */
.cs-card-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    z-index: 1;
}

.cs-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* Minimal Category Badge (Clean Dark Pill matching User Reference, No Hover Glow, Bare Icon) */
.cs-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 18px 7px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    cursor: default;
}

.cs-card-tag:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: none !important;
}

.cs-card-tag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--card-accent);
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.cs-card-tag-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.cs-card-tag-text {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.cs-card-index {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Poppins', sans-serif;
}

.cs-card-title-row {
    position: relative;
    margin-bottom: 30px;
    z-index: 1;
}

.cs-card-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.22;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0;
}

.cs-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.cs-card-title a:hover {
    color: var(--card-accent);
}

/* ==========================================================================
   Card Content Body (Split Layout: Media Left, Details Right)
   ========================================================================== */
.cs-card-body {
    position: relative;
    display: flex;
    align-items: center;
    gap: 44px;
    z-index: 1;
}

/* Left: Thumbnail Media */
.cs-card-media {
    flex: 0 0 46%;
    max-width: 46%;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background-color: #1a1a1d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.cs-card-media-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
    text-decoration: none;
}

.cs-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs-card-item:hover .cs-card-thumb {
    transform: scale(1.04);
}

/* Floating Hover Badge on Thumbnail */
.cs-card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.65) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cs-card-item:hover .cs-card-media-overlay {
    opacity: 1;
}

.cs-card-overlay-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(18, 18, 20, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    transform: translateY(6px);
    transition: transform 0.3s ease;
}

.cs-card-item:hover .cs-card-overlay-badge {
    transform: translateY(0);
}

.cs-card-overlay-badge svg {
    width: 12px;
    height: 12px;
    color: var(--card-accent);
}

/* Right: Content Details */
.cs-card-details {
    flex: 1 1 54%;
    display: flex;
    flex-direction: column;
}

.cs-card-desc {
    font-size: 16.5px;
    line-height: 1.65;
    color: #c4c5c7;
    margin-bottom: 28px;
}

/* 2x2 Feature Highlights Grid */
.cs-card-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
    margin-bottom: 34px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-card-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #e5e7eb;
}

/* Bespoke Sparkle Star SVG Icon (Matching casestudy-cards.mp4 reference) */
.cs-feature-sparkle {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--card-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-feature-sparkle svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Actions Row */
.cs-card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Primary Action Button using Saurjya Design Language (Desktop & Tablet) */
@media (min-width: 768px) {
    .cs-btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 13px 26px;
        border-radius: 50px;
        background: #ffffff;
        color: #0f0f0f !important;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.3px;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: none;
    }

    .cs-btn-primary:hover {
        background: var(--card-accent);
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: none;
    }

    .cs-btn-icon-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: rgba(15, 15, 15, 0.1);
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .cs-btn-primary:hover .cs-btn-icon-circle {
        transform: translateX(3px);
        background: rgba(255, 255, 255, 0.2);
    }

    .cs-btn-icon-circle svg {
        width: 13px;
        height: 13px;
        stroke: currentColor;
        fill: none;
    }
}

/* Secondary Action Button (Live Demo Link) */
.cs-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cs-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.cs-btn-secondary svg {
    width: 13px;
    height: 13px;
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cs-btn-secondary:hover svg {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Floating Live Button in Notch (Hidden on Desktop & Tablet) */
.cs-card-notch-btn {
    display: none !important;
}

/* ==========================================================================
   Section Divider (Centered Between Case Studies & Tool Stack)
   ========================================================================== */
.cs-cards-footer {
    display: none !important;
}

/* Subtle Gradient Divider Line (Matching Image 2 Reference) */
.cs-section-divider {
    position: relative;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #ffffff 50%, transparent 100%);
    opacity: 0.3;
    margin-top: 80px;
    margin-bottom: 0;
}

/* Perfectly symmetrical breathing room for the following Tool Stack section */
.my-skills.section-padding {
    padding-top: 80px !important;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Laptops / Smaller Desktops */
@media (max-width: 1199px) {
    .cs-card-item {
        padding: 38px 40px;
    }

    .cs-card-title {
        font-size: 32px;
    }

    .cs-card-body {
        gap: 32px;
    }

    .cs-card-features-grid {
        gap: 14px 16px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .cs-cards-section {
        padding-top: 80px;
        padding-bottom: 0;
    }

    .cs-section-divider {
        margin-top: 60px;
        margin-bottom: 0;
    }

    .my-skills.section-padding {
        padding-top: 60px !important;
    }

    .cs-cards-header {
        margin-bottom: 65px;
    }

    .cs-cards-header h2 {
        font-size: 38px;
    }

    .cs-card-item {
        padding: 32px;
        border-radius: 24px;
        margin-bottom: 40px;
    }

    .cs-card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .cs-card-media {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .cs-card-details {
        flex: 0 0 100%;
        width: 100%;
    }

    .cs-card-title {
        font-size: 28px;
    }

    .cs-card-features-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 26px;
        padding-bottom: 22px;
    }

    .cs-cards-footer {
        margin-top: 50px;
    }
}

/* Mobile Screens (< 768px) - Modern App Card Design matching Disarto reference */
@media (max-width: 767px) {
    .cs-cards-section {
        padding-top: 50px;
        padding-bottom: 0;
        overflow-x: clip;
    }

    .cs-cards-header {
        margin-bottom: 35px;
    }

    .cs-cards-header h2 {
        font-size: 28px;
    }

    .cs-cards-header-desc {
        font-size: 14.5px;
        line-height: 1.55;
    }

    /* Reference Card Container: Minimal squircle shell with refined corner radius */
    .cs-card-item {
        display: flex;
        flex-direction: column;
        padding: 0;
        border-radius: 20px;
        margin-bottom: 26px;
        background: #131316;
        border: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.55);
        transform: none !important;
        will-change: auto;
        overflow: hidden;
    }

    /* Unbox .cs-card-body so flex ordering applies directly to media and details */
    .cs-card-body {
        display: contents;
    }

    /* 1. Media Banner Flush at Top of Card */
    .cs-card-media {
        order: 1;
        position: relative;
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        aspect-ratio: 16 / 10;
        margin: 0;
        border: none;
        border-radius: 0;
        background-color: #18181b;
        overflow: hidden;
    }

    .cs-card-media-link {
        display: block;
        width: 100%;
        height: 100%;
    }

    .cs-card-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .cs-card-media-overlay {
        display: none;
    }

    /* Signature White Circle with Upright Arrow (↗) in the Notch */
    .cs-card-notch-btn {
        display: flex !important;
        position: absolute;
        bottom: 6px;
        right: 14px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #ffffff;
        color: #0f0f0f;
        align-items: center;
        justify-content: center;
        z-index: 10;
        text-decoration: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
    }

    .cs-card-notch-btn:active {
        transform: scale(0.92);
    }

    .cs-card-notch-btn svg {
        width: 15px;
        height: 15px;
        stroke: #0f0f0f;
        stroke-width: 2.3;
        stroke-linecap: round;
        stroke-linejoin: round;
        fill: none;
    }

    /* 2. Metadata Row with Smooth S-Curve Notch Cap */
    .cs-card-top {
        order: 2;
        position: relative;
        background: #131316;
        padding: 14px 22px 0;
        margin-top: -22px;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        z-index: 2;
    }

    /* Mathematical S-Curve Mask Notch Cap */
    .cs-card-top::before {
        content: '';
        position: absolute;
        top: -22px;
        left: 0;
        width: 100%;
        height: 23px;
        background-color: #131316;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 350 23' preserveAspectRatio='none'%3E%3Cpath d='M0,23 L0,0 L266,0 C278,0 284,23 298,23 L350,23 Z' fill='%23000'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 350 23' preserveAspectRatio='none'%3E%3Cpath d='M0,23 L0,0 L266,0 C278,0 284,23 298,23 L350,23 Z' fill='%23000'/%3E%3C/svg%3E");
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        pointer-events: none;
    }

    /* Breathable Minimal Metadata Row */
    .cs-card-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11.5px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.45);
        letter-spacing: 0.3px;
    }

    .cs-card-tag {
        background: none;
        border: none;
        padding: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    /* Glowing Status Dot per Theme */
    .cs-card-tag::before {
        content: '';
        width: 5.5px;
        height: 5.5px;
        border-radius: 50%;
        display: inline-block;
        background: #fd5b38;
        box-shadow: 0 0 6px rgba(253, 91, 56, 0.7);
    }

    .cs-card-item[data-theme="drivo"] .cs-card-tag::before {
        background: #fd5b38;
        box-shadow: 0 0 6px rgba(253, 91, 56, 0.7);
    }

    .cs-card-item[data-theme="prakriti"] .cs-card-tag::before {
        background: #10b981;
        box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
    }

    .cs-card-item[data-theme="bellagio"] .cs-card-tag::before {
        background: #d4af37;
        box-shadow: 0 0 6px rgba(212, 175, 55, 0.7);
    }

    .cs-card-item[data-theme="akatsuki"] .cs-card-tag::before {
        background: #ef4444;
        box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
    }

    .cs-card-tag-icon {
        display: none;
    }

    .cs-card-tag-text {
        font-size: 11.5px;
        letter-spacing: 0.3px;
        color: rgba(255, 255, 255, 0.55);
        font-weight: 500;
    }

    .cs-card-index {
        font-size: 11.5px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.4);
        letter-spacing: 0.4px;
        display: inline-flex;
        align-items: center;
    }

    .cs-card-index::before {
        content: '•';
        margin-right: 8px;
        opacity: 0.3;
        display: inline-block;
        font-size: 10px;
    }

    /* 3. Title Row - Breathable & Minimal */
    .cs-card-title-row {
        order: 3;
        background: #131316;
        padding: 10px 22px 18px;
        margin-bottom: 0;
        position: relative;
        z-index: 2;
    }

    .cs-card-title {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.45;
        letter-spacing: -0.25px;
        color: #f4f4f5;
    }

    .cs-card-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    /* 4. Details Container with Divider & Action Buttons - Breathable spacing */
    .cs-card-details {
        order: 4;
        background: #131316;
        padding: 0 22px 22px;
        margin-top: 0;
        border-top: none;
        position: relative;
        z-index: 2;
        width: 100%;
        flex: 0 0 auto;
    }

    /* Faint Minimal Hairline Divider */
    .cs-card-details::before {
        content: '';
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.06);
        margin-bottom: 18px;
    }

    /* Hide case study description and features on mobile view */
    .cs-card-desc,
    .cs-card-features-grid {
        display: none !important;
    }

    /* Sleek Action Bar */
    .cs-card-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    /* Remove the bottom Live Website button on mobile view */
    .cs-btn-secondary {
        display: none !important;
    }

    /* Primary Pill Button - Matching Saurjya Hero Secondary Button & Interactive Hover Animation */
    .cs-btn-primary {
        position: relative !important;
        width: 100% !important;
        height: 48px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 52px 0 24px !important;
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 9999px !important;
        color: #ffffff !important;
        font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        letter-spacing: 0.1px !important;
        text-decoration: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        cursor: pointer !important;
        transition: padding 0.4s cubic-bezier(0.34, 1.35, 0.64, 1),
            background 0.35s ease,
            border-color 0.35s ease,
            transform 0.2s ease !important;
        will-change: padding, background, transform;
        -webkit-tap-highlight-color: transparent;
    }

    .cs-btn-primary span:not(.cs-btn-icon-circle) {
        font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        z-index: 2 !important;
        pointer-events: none !important;
        transition: color 0.3s ease;
    }

    /* Orange Circular Arrow Icon Container - Default Position on Right */
    .cs-btn-primary .cs-btn-icon-circle {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: calc(100% - 44px) !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: #fd5b38 !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 2 !important;
        pointer-events: none !important;
        transition: left 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
            background 0.35s ease !important;
        will-change: left;
    }

    .cs-btn-primary .cs-btn-icon-circle svg {
        width: 15px !important;
        height: 15px !important;
        stroke: #ffffff !important;
        stroke-width: 2.2 !important;
        fill: none !important;
        transition: transform 0.35s ease;
    }

    /* Interactive Hover State (Exact match to media_1793310273267.png):
       Orange icon slides to the left edge (left: 6px) & padding flips so text shifts right */
    .cs-btn-primary:hover,
    .cs-btn-primary:focus-visible {
        padding: 0 24px 0 52px !important;
        background: #242424 !important;
        border-color: rgba(255, 255, 255, 0.45) !important;
        color: #ffffff !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .cs-btn-primary:hover .cs-btn-icon-circle,
    .cs-btn-primary:focus-visible .cs-btn-icon-circle {
        left: 6px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: #fd5b38 !important;
    }

    .cs-btn-primary:hover .cs-btn-icon-circle svg,
    .cs-btn-primary:focus-visible .cs-btn-icon-circle svg {
        stroke: #ffffff !important;
        transform: translateX(1px);
    }

    .cs-btn-primary:active {
        transform: scale(0.97) !important;
        box-shadow: none !important;
    }

    .cs-cards-footer {
        display: none !important;
    }

    /* Subtle Gradient Divider Line on Mobile */
    .cs-section-divider {
        margin-top: 45px;
        margin-bottom: 0;
    }

    /* Balanced top padding on Mobile for Tool Stack */
    .my-skills.section-padding {
        padding-top: 45px !important;
    }
}

/* Extra Small Mobile (< 576px) */
@media (max-width: 576px) {
    .cs-btn-primary {
        height: 44px !important;
        padding: 0 44px 0 18px !important;
    }

    .cs-btn-primary span:not(.cs-btn-icon-circle) {
        font-size: 13px !important;
    }

    .cs-btn-primary .cs-btn-icon-circle {
        width: 32px !important;
        height: 32px !important;
        left: calc(100% - 38px) !important;
    }

    .cs-btn-primary .cs-btn-icon-circle svg {
        width: 14px !important;
        height: 14px !important;
    }

    .cs-btn-primary:hover,
    .cs-btn-primary:focus-visible {
        padding: 0 18px 0 44px !important;
    }

    .cs-btn-primary:hover .cs-btn-icon-circle,
    .cs-btn-primary:focus-visible .cs-btn-icon-circle {
        left: 5px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: #fd5b38 !important;
    }
}