.sd-marketing-href {
    display: none;
}

.sd-marketing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sd-marketing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 10px 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--sd-neutral-300);
    font-size: 14px;
    font-weight: 500;
    color: var(--sd-neutral-600);
}

.sd-marketing-configs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sd-marketing-configs-toggle-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.sd-marketing-controller-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -16px;
}

/* Main Container */
.sd-marketing-container {
    padding: 32px 44px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: 100%;
    overflow: scroll;
}

.sd-marketing-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sd-marketing-enable-card {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--sd-neutral-300);
    border-radius: 12px;
}

.sd-marketing-enable-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sd-marketing-enable-card-title {
    font-size: 16px;
    font-weight: 700;
}

.sd-marketing-enable-card-icon {
    display: flex;
    padding: 8px;
    border-radius: 8px;
    background: #EBFEF6;
}

.sd-marketing-enable-card-subtitle {
    font-size: 15px;
    font-weight: 350;
}

.sd-marketing-enable-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.sd-marketing-enable-card-right label {
    margin: 0 !important;
    font-size: 15px;
    font-style: normal;
    font-weight: 350;
}

.sd-input-error {
    border: 1px solid var(--sd-error-red-v2) !important;
}

.sd-marketing-empty-state-icon {
    width: 44px;
    height: 44px;
}

.sd-marketing-empty-state-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
    margin-top: -10%;
}

.sd-marketing-empty-state-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    color: var(--sd-neutral-800);
}

.sd-marketing-new-campaign-btn-empty-state {
    margin-top: 16px;
    padding: 12px 20px 12px 16px !important;
    gap: 8px !important;
    font-size: 16px !important;
}

.sd-marketing-empty-state-desc {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

/* Main Title */
.sd-marketing-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sd-marketing-title {
    font-size: 26px;
    margin-top: 8px;
    font-weight: 600;
    color: var(--sd-neutral-900);
    line-height: 32px;
}

.sd-marketing-subtitle {
    font-size: 16px;
    color: var(--sd-neutral-600);
}

/* Section Styling */
.sd-marketing-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    margin: 0 auto;
}

.sd-marketing-section-header {
    display: flex;
    justify-content: end;
    align-items: flex-start;
}

.sd-marketing-section-title {
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    color: var(--sd-neutral-800);
    line-height: 32px;
    margin-bottom: 4px;
}

.sd-marketing-section-subtitle {
    color: var(--sd-neutral-600);
    font-size: 16px;
    line-height: 24px;
    font-weight: 350;
}

/* New Campaign Button */
.sd-marketing-new-campaign-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--sd-dark-green);
    color: white;
    padding: 8px 16px 8px 11px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.sd-marketing-new-campaign-btn:disabled {
    background-color: var(--sd-neutral-400);
    color: var(--sd-neutral-100);
}

/* Stats Grid */
.sd-marketing-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sd-marketing-stats-main {
    max-width: 980px;
}

.sd-marketing-stats-grid-consented-customers {
    grid-template-columns: repeat(3, 1fr);
    margin: 40px 0 8px;
}

.sd-marketing-campaign-details-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-height: 130px;
    margin-top: 32px;
}

.sd-marketing-stat-card {
    padding: 24px 20px;
    border: 1px solid var(--sd-neutral-300);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex: 1 0 0;
}

.sd-marketing-cc-card {
    cursor: pointer;
}

.sd-marketing-cc-card.active {
    border: 1px solid var(--sd-card-border) !important;
    background: var(--sd-card-background);
}

.sd-marketing-cc-card:hover {
    border: 1px solid var(--sd-neutral-400);
}

.sd-marketing-stat-label {
    color: var(--sd-neutral-600);
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sd-marketing-consented-customers-list-view-btn {
    text-decoration: underline;
    cursor: pointer;
}

.sd-marketing-list-view-btn {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color: #03624C;
    cursor: pointer;
}

.sd-marketing-list-view-btn:hover {
    color: var(--sd-dark-green);
}

.sd-marketing-stat-value {
    color: var(--sd-neutral-800);
    font-size: 40px;
    font-weight: 900;
    line-height: 40px;
    height: 32px;
}

/* Subsection Styling */
.sd-marketing-subsection {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sd-marketing-subsection-title {
    color: var(--sd-neutral-800);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 26px;
}

/* Table Styling */
.sd-marketing-table-wrapper {
    border: 1px solid var(--sd-neutral-200);
    border-radius: 8px;
    overflow: hidden;
}

.sd-marketing-table {
    width: 100%;
    border-collapse: collapse;
}

.sd-marketing-table th {
    background: var(--sd-neutral-50);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: var(--sd-neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--sd-neutral-200);
}

.sd-marketing-table td {
    padding: 16px;
    font-size: 14px;
    line-height: 20px;
    color: var(--sd-neutral-700);
    border-bottom: 1px solid var(--sd-neutral-100);
}

.sd-marketing-table tr:last-child td {
    border-bottom: none;
}

/* Status Badge */
.sd-marketing-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

/* Status specific styles */
.sd-marketing-status.status-pending {
    background: rgba(241, 154, 55, 0.11) !important;
    color: #F19A37 !important;
}

.sd-marketing-status.status-approved {
    background: rgba(102, 90, 255, 0.12) !important;
    color: #665AFF !important;
}

.sd-marketing-status.status-rejected {
    background: rgba(235, 78, 61, 0.11) !important;
    color: #EB4E3D !important;
}

.sd-marketing-status.status-in-progress {
    background: rgba(0, 123, 255, 0.12) !important;
    color: #007BFF !important;
}

.sd-marketing-status.status-completed {
    background: var(--sd-card-background) !important;
    color: var(--sd-dark-green) !important;
}

.sd-marketing-status.status-default {
    background: var(--sd-neutral-200) !important;
    color: var(--sd-neutral-500) !important;
}

/* Added status for cancel */
.sd-marketing-status.status-cancel {
    background: rgba(160, 160, 160, 0.11) !important;
    color: #A0A0A0 !important;
}

.sd-marketing-status.status-scheduled {
    background: rgba(88, 86, 206, 0.11) !important;
    color: #5856CE !important;
}

/* Performance Cards Grid */
.sd-marketing-performance-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Performance Card Base Styles */
.sd-marketing-card {
    border: 1px solid var(--sd-neutral-300);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Card Content */
.sd-marketing-card-label {
    color: var(--sd-neutral-600);
    margin-bottom: 4px;
}

.sd-marketing-card-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--sd-neutral-800);
}

/* Campaigns Section */
.sd-marketing-campaigns-section {
    margin-bottom: 2.5rem;
}

.sd-marketing-campaigns-header {
    margin-bottom: 1.5rem;
}

.sd-marketing-campaigns-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--sd-neutral-800);
}

.sd-marketing-table-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sd-marketing-campaign-details-btn {
    color: var(--sd-dark-green);
    cursor: pointer;
    background: none;
    border: none;
    text-align: center;
}

.sd-marketing-campaign-details-btn:hover {
    color: var(--sd-primary-100);
}

/* Wrapper */
.sd-table-v3-wrapper {
    border: 1px solid var(--sd-neutral-300) !important;
    border-radius: 12px !important;
    overflow: visible !important;
}

.sd-table-v3-wrapper .sd-action-dropdown button.dropdown-toggle {
    height: 34px;
    width: 40px;
}

/* Ensure dropdown menus are visible and properly positioned */
.sd-table-v3-wrapper .sd-action-dropdown .dropdown-menu {
    position: absolute !important;
    z-index: 1050 !important;
    right: 0;
    left: auto;
    min-width: 160px;
    border: 1px solid var(--sd-neutral-300);
    border-radius: 8px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.1);
}

/* Special positioning for last row dropdown to prevent going under pagination */
.sd-table-v3-wrapper tbody tr:last-child .sd-action-dropdown .dropdown-menu {
    top: -62px !important;
    bottom: auto !important;
}

/* Handle single row scenario (first and last child) */
.sd-table-v3-wrapper tbody tr:first-child:last-child .sd-action-dropdown .dropdown-menu {
    top: -62px !important;
    bottom: auto !important;
}

.sd-table-v3 {
    width: 100% !important;
    overflow: hidden;
    border-radius: 11px;
}

.sd-table-v3.no-footer {
    border-bottom: none !important;
}

/* Table Head */
.sd-table-v3 thead {
    background: var(--sd-neutral-200);
    border-radius: 11px 11px 0 0;
}

.sd-table-v3 thead th:first-child {
    border-top-left-radius: 11px;
}

.sd-table-v3 thead th:last-child {
    border-top-right-radius: 11px;
}

.sd-table-v3 thead th {
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--sd-neutral-600) !important;
    text-align: left !important;
    border-bottom: 1px solid var(--sd-neutral-300) !important;
    background: transparent !important;
}

/* Table Body */
.sd-table-v3 tbody td {
    padding: 16px !important;
    font-size: 14px !important;
    color: var(--sd-neutral-900) !important;
    border-bottom: 1px solid var(--sd-neutral-200) !important;
    vertical-align: middle !important;
}

/* Remove border from last row */
.sd-table-v3 tbody tr:last-child td {
    border-bottom: none !important;
}

.sd-table-v3-wrapper .dataTables_scrollHeadInner {
    width: 100% !important;
}

.sd-table-v3-wrapper .dataTables_scrollBody thead {
    display: none !important;
}

.sd-table-v3-wrapper .no-footer .dataTables_scrollBody {
    border-bottom: 1px solid var(--sd-neutral-300) !important;
}

/* ---------- STATUS PILL ---------- */
.sd-state-pill {
    display: inline-block !important;
    padding: 4px 14px !important;
    border-radius: 9999px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-transform: capitalize !important;
}

/* Accepted  | add others (pending, error…) if needed */
.sd-state-accepted {
    background: var(--sd-card-background) !important;
    color: var(--sd-pill-text) !important;
}

.sd-state-unsubscribed {
    background: var(--sd-neutral-200) !important;
    color: var(--sd-neutral-500) !important;
}

/* ---------- PAGINATION / FOOTER ---------- */
.sd-table-v3-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 24px 16px !important;
}

.sd-table-v3-footer .dataTables_info {
    margin: 0 !important;
}

.sd-table-v3-wrapper .dataTables_paginate {
    display: flex !important;
    gap: 12px !important;
    padding: 16px 24px !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid var(--sd-neutral-300) !important;
}

.sd-table-v3-pagination-btn {
    padding: 10px 24px !important;
    background: var(--sd-neutral-100) !important;
    border: 1px solid var(--sd-neutral-300) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: var(--sd-neutral-600) !important;
    cursor: pointer !important;
}

.sd-table-v3-pagination-btn:hover {
    background: var(--sd-neutral-200) !important;
}

.sd-table-v3-pagination-btn-disabled {
    cursor: default !important;
    color: var(--sd-neutral-400) !important;
}

.sd-table-v3-wrapper .dataTables_info {
    padding: 26px !important;
}

/* Plain Status Text */
.sd-table-v3 .sd-marketing-status {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--sd-neutral-900);
    text-transform: capitalize !important;
    padding: 7px 12px;
    border-radius: 99px;
    cursor: pointer;
}

.sd-marketing-status.completed {
    background: rgba(208, 251, 231, 0.70);
    color: var(--sd-dark-green) !important;
}

.sd-marketing-status.ongoing {
    background: rgba(88, 86, 206, 0.11);
    color: #5856CE !important;
}

.sd-marketing-status.scheduled {
    background: rgba(241, 154, 55, 0.11);
    color: #F19A37 !important;
}

.sd-marketing-status.canceled, .sd-marketing-status.failed {
    background: rgba(235, 78, 61, 0.11);
    color: #EB4E3D !important;
}

.sd-table-page-info {
    color: var(--sd-neutral-600) !important;
}

/* Empty Table State */
.sd-table-v3 .empty-table-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 48px 16px !important;
    background: var(--sd-neutral-100) !important;
}

.sd-table-v3 .empty-table-container-sm {
    padding: 32px 16px !important;
}

.sd-table-v3 .empty-table-header {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--sd-neutral-600) !important;
    text-align: center !important;
}

/* Responsive for mobile */
@media (max-width: 600px) {
    .sd-table-v3 thead th,
    .sd-table-v3 tbody td {
        padding: 12px 12px !important;
    }
}

.sd-name-with-icon {
    display: flex !important;
    gap: 4px;
    align-items: center;
}

.sd-name-icon {
    height: 26px;
    width: 26px;
    font-size: 12px;
    color: var(--sd-neutral-500) !important;
    background: var(--sd-metric-bg-positive) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
    text-decoration: none !important;
}

.sd-col-name {
    width: 20% !important;
}

.sd-col-email {
    width: 20% !important;
}

.sd-col-phone {
    width: 15% !important;
}

.sd-col-state {
    width: 15% !important;
}

.sd-col-dates {
    width: 15% !important;
}

/* AI Assistant Modal Styles */

.sd-marketing-ai-assistant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--sd-neutral-100);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.sd-white-space-36 {
    height: 36px;
    width: 100%;
    position: fixed;
    top: 0;
    background: var(--sd-neutral-100);
    z-index: 99;
}

.sd-marketing-ai-assistant-modal.sd-marketing-open {
    transform: translateY(0);
    opacity: 1;
}

.sd-marketing-ai-assistant-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sd-marketing-create-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
}

.sd-marketing-ai-assistant-top {
    display: flex;
    width: 100%;
    justify-content: space-between;
    height: calc(100% - 108px);
}

.sd-marketing-ai-assistant-top-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 36px 36px;
    border-right: 1px solid var(--sd-neutral-300);
    width: 60%;
    overflow: scroll;
}

.sd-marketing-solo {
    width: 100% !important;
    border: none !important;
}

.sd-marketing-ai-assistant-header {
    text-align: left;
}

.sd-marketing-ai-assistant-top-left-title {
    position: sticky;
    top: 36px;
    background: var(--sd-neutral-100);
    padding-bottom: 20px;
    z-index: 99;
}

.sd-marketing-ai-assistant-top-left-title-text, .ai-marketing-agent-config-title, .sd-marketing-offer-title-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--sd-neutral-900);
    margin-bottom: 8px;
}

.sd-marketing-ai-assistant-top-left-title-desc {
    font-size: 16px;
    color: var(--sd-neutral-600);
}

.sd-marketing-campaign-form-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 44px 0;
}

.sd-marketing-ai-assistant-form {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sd-marketing-ai-assistant-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sd-marketing-ai-assistant-input-group label {
    font-size: 18px;
    font-weight: 700;
    color: var(--sd-neutral-700);
}

.sd-marketing-ai-assistant-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--sd-neutral-800);
    border: 1px solid var(--sd-neutral-300);
    line-height: 20px !important;
    outline: none;
}

.sd-marketing-ai-assistant-input-group-inner {
    border: 1px solid var(--sd-neutral-300);
    border-radius: 10px;
}

.sd-marketing-ai-assistant-textarea {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--sd-neutral-900);
    resize: none;
    border: none;
    outline: none;
}

.sd-marketing-ai-assistant-textarea::placeholder, .sd-marketing-ai-assistant-input::placeholder {
    color: var(--sd-neutral-500);
}

.sd-marketing-ai-assistant-input:focus, .sd-marketing-ai-assistant-input-group:has(.sd-marketing-ai-assistant-textarea:focus) .sd-marketing-ai-assistant-input-group-inner {
    border: 1px solid var(--sd-neutral-400);
    transition: border 0.1s ease-in-out;
}

.sd-marketing-select-dropdown::before {
    top: 19px !important;
}


.sd-marketing-ai-assistant-char-count {
    font-size: 12px;
    color: var(--sd-neutral-600);
    background: var(--sd-neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px;
    border-radius: 0 0 10px 10px;
    height: 40px;
}

.sd-marketing-ai-assistant-char-count-value-wrap {
    margin: auto 0 auto auto;
}

.sd-marketing-character-count {
    font-size: 12px;
    color: var(--sd-neutral-500);
    text-align: right;
    margin-top: 4px;
    padding-right: 10px;
}

.sd-marketing-character-count .sd-character-count-warning {
    color: var(--sd-warning-600);
    font-weight: 500;
}

/* Selected Offer Display */
.sd-marketing-ai-assistant-selected-offer {
    display: flex;
    align-items: center;
    max-width: 250px;
    overflow: hidden;
}

.sd-marketing-selected-offer-content {
    background: #e5ecfc;
    color: #2d31a6;
    border-radius: 99px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sd-marketing-selected-offer-content:hover {
    background: #d1d9f7;
}

.sd-marketing-selected-offer-text {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.sd-marketing-selected-offer-remove {
    background: none;
    border: none;
    color: #2d31a6;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sd-marketing-selected-offer-remove:hover {
    background: rgba(45, 49, 166, 0.1);
    color: #1a1d7a;
}

.sd-marketing-ai-assistant-input-group-date {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: start;
}

.sd-marketing-ai-assistant-input-group-date-error, .sd-marketing-ai-assistant-input-group-end-date-error {
    color: var(--sd-neutral-500);
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    margin-top: 8px;
}

/* Preview Section */
.sd-marketing-ai-assistant-top-right {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    padding-top: 100px;
    position: relative;
    width: 40%;
    height: 100%;
    overflow: scroll;
}

.sd-marketing-ai-assistant-preview-container {
    width: 100%;
    height: max-content;
    overflow: scroll;
}

.sd-marketing-ai-assistant-preview {
    display: flex;
    justify-content: center;
    align-items: start;
    position: relative;
    overflow: hidden;
    height: max-content;
}

.sd-marketing-ai-assistant-preview-phone {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: flex-start;
    width: 300px;
    height: 100%;
    background: var(--sd-neutral-100);
    border-radius: 40px;
    border: 10px solid var(--sd-neutral-300);
    height: 560px;
}

.sd-marketing-ai-assistant-preview-phone-banner {
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid var(--sd-neutral-300);
}

.sd-marketing-ai-assistant-preview-phone-msg {
    padding: 20px 10px;
    position: relative;
}

.sd-marketing-ai-assistant-preview-phone-msg-text-container, .ai-marketing-agent-preview-phone-msg-text-container {
    font-size: 14px;
    font-weight: 500;
    color: var(--sd-neutral-600);
    background: var(--sd-neutral-300);
    padding: 8px 10px 10px 10px;
    border-radius: 8px;
    max-width: 200px;
    width: 100%;
    word-break: break-word;
}

.sd-marketing-ai-assistant-preview-phone-msg-arrow {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translate(8px, -10px);
}

.sd-marketing-at-assistant-preview-phone-bottom {
    position: absolute;
    bottom: 0;
}

.sd-marketing-ai-assistant-preview-phone-top-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 300px;
}

.sd-marketing-test-init-btn, .sd-cus-profile-send-offer-btn {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 7px 8px;
    gap: 6px;
    border-radius: 8px;
    color: var(--sd-dark-green);
    line-height: 24px;
    transition: background-color 0.2s ease-in-out;
}

.sd-marketing-test-init-btn:hover, .sd-cus-profile-send-offer-btn:hover {
    background: var(--sd-card-background);
}

/* Footer */
.sd-marketing-ai-assistant-footer {
    display: flex;
    justify-content: flex-end;
    padding: 32px;
    gap: 24px;
}

.sd-marketing-ai-assistant-cancel-btn, .sd-marketing-template-modal-footer-cancel-btn {
    background: var(--sd-neutral-100);
    padding: 11px 23px;
    border: 1px solid var(--sd-neutral-300);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

.sd-marketing-ai-assistant-cancel-btn:hover, .sd-marketing-template-modal-footer-cancel-btn {
    border: 1px solid var(--sd-neutral-400);
}

.sd-marketing-ai-assistant-launch-btn, .sd-marketing-template-modal-footer-btn, .sd-marketing-configs-modal-footer-btn, .sd-marketing-primary-btn {
    background: var(--sd-dark-green);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sd-marketing-ai-assistant-launch-btn:disabled, .sd-marketing-template-modal-footer-btn:disabled, .sd-marketing-configs-modal-footer-btn:disabled, .sd-marketing-primary-btn:disabled {
    background: var(--sd-neutral-400);
    cursor: default;
}

.sd-marketing-ai-assistant-launch-btn-disabled {
    background: var(--sd-neutral-400);
    cursor: default;
}

.sd-marketing-consented-customer-list {
    display: none;
}

.sd-marketing-consented-customer-list-header {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 4px;
}

.sd-marketing-consented-customer-list-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--sd-neutral-800);
    line-height: 32px;
}

.sd-marketing-consented-customer-list-desc {
    font-size: 16px;
    color: var(--sd-neutral-600);
    font-weight: 400;
    line-height: 24px;
}

.sd-customer-list-wrap {
    width: 100%;
    height: 90%;
    margin-top: 32px;
}

.sd-container-with-back-btn {
    display: flex;
    gap: 10px;
}

.sd-back-btn {
    cursor: pointer;
    height: 28px;
    width: 28px;
    margin-left: -38px;
    margin-top: 4px;
    padding: 2px;
    border-radius: 4px;
    transition: background 0.2s ease-in-out;
}

.sd-back-btn:hover {
    background: var(--sd-neutral-300);
}

.sd-secondary-container {
    width: calc(100% - 160px);
    height: max-content;
    margin: 0 auto 40px;
}

.sd-secondary-container-full {
    width: calc(100% - 80px);
    height: 100%;
    margin: 0 0 40px 80px;
}

.sd-marketing-campaign-details-container {
    display: none;
}

.sd-marketing-campaign-details-content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sd-marketing-campaign-details-content-left {
    width: 60%;
    padding-right: 6%;
}

.sd-marketing-campaign-name {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    color: var(--sd-neutral-800);
}

.sd-marketing-campaign-dec {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    color: var(--sd-neutral-600);
}

.sd-marketing-campaign-details-preview-container {
    position: sticky;
    width: 40%;
    min-height: 660px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;
    padding: 0 32px;
    margin-top: -60px;
    border-left: 1px solid var(--sd-neutral-300);
    top: 0;
}

.sd-marketing-campaign-details-preview-container-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sd-marketing-campaign-details-preview-container-top {
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
}

.sd-marketing-campaign-chart-container {
    margin-top: 32px;
    border-radius: 16px;
}

.sd-marketing-campaign-chart-container-top {
    margin-bottom: 24px;
}

.sd-marketing-campaign-chart-container-top-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sd-neutral-800);
}

.sd-marketing-campaign-chart {
    height: 250px;
    position: relative;
}

.sd-marketing-campaign-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.sd-marketing-members-table-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 0;
    margin-right: -30px;
}

.sd-marketing-segmented-control {
    display: flex;
    gap: 8px;
    background: var(--sd-neutral-200);
    padding: 4px;
    border-radius: 8px;
    width: 100%;
    position: relative;
    border: 1px solid var(--sd-neutral-300);
}

.sd-marketing-segmented-control-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--sd-neutral-600);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1;
    width: 100%;
}

.sd-marketing-segmented-control-btn.active {
    color: var(--sd-neutral-900);
}

.sd-marketing-segmented-control::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--sd-neutral-100);
    border-radius: 6px;
    border: 1px solid var(--sd-neutral-300);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.sd-marketing-segmented-control[data-selected="scheduled"]::before {
    transform: translateX(100%);
}

.sd-marketing-segmented-control-btn:hover:not(.active) {
    color: var(--sd-neutral-900);
}

.sd-marketing-campaign-error {
    display: none;
    color: var(--sd-error-red-v2);
    font-size: 14px;
    font-weight: 500;
    margin-top: 30px;
    bottom: 0;
    padding: 12px 24px;
}

/* --- Campaign Templates Modal & Cards --- */
.sd-marketing-campaign-templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    height: 100%;
    overflow: scroll;
}

.sd-marketing-campaign-template-card {
    background: var(--sd-neutral-100);
    border: 1px solid var(--sd-neutral-300);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.sd-marketing-campaign-template-card.selected {
    border: 1px solid var(--sd-dark-green);
    background: var(--sd-card-background);
}

.sd-marketing-campaign-template-card:hover {
    border: 1px solid var(--sd-dark-green);
}

.sd-marketing-campaign-template-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sd-marketing-campaign-template-icon {
    margin-bottom: 6px;
    height: 28px;
    width: 28px;
    background: var(--sd-neutral-300);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.sd-marketing-campaign-template-checkbox {
    display: none;
}

.sd-marketing-campaign-template-card.selected .sd-marketing-campaign-template-checkbox {
    display: block;
}

.sd-marketing-campaign-template-header {
    font-weight: 700;
    font-size: 16px;
    color: var(--sd-neutral-900);
    margin-bottom: -10px;
}

.sd-marketing-campaign-template-content {
    font-size: 14px;
    color: var(--sd-neutral-700);
    line-height: 1.4;
}

.sd-marketing-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sd-marketing-template-modal-btn {
    display: flex;
    align-items: center;
    padding: 8px 14px 8px 10px;
    gap: 8px;
    border-radius: 8px;
    background: var(--sd-card-background);
    color: var(--sd-neutral-800);
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
}

.sd-marketing-template-modal-footer {
    padding: 16px 32px 32px;
    gap: 12px;
    display: flex;
    justify-content: flex-end;
}

.sd-date-input-group, .sd-time-input-group {
    width: 50%;
}

.sd-date-time-container {
    display: flex;
    gap: 16px;
    width: 100%;
}

.sd-time-selector {
    display: flex;
    gap: 8px;
}

.sd-time-selector .sd-marketing-segmented-control {
    min-width: 120px;
    height: 42px;
    padding: 3px;
}

.sd-time-selector .sd-marketing-segmented-control-btn {
    height: 100%;
    font-size: 14px;
    padding: 0 16px;
}

.sd-marketing-ai-assistant-input {
    height: 42px;
}

/* Remove old time period control styles */
.sd-time-period-control {
    height: 42px;
}

.sd-time-period-btn {
    height: 100%;
}

.sd-time-period-segmented-control {
    display: flex;
    gap: 8px;
    background: var(--sd-neutral-200);
    padding: 4px;
    border-radius: 8px;
    height: 42px;
    position: relative;
    border: 1px solid var(--sd-neutral-300);
}

.sd-time-period-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--sd-neutral-600);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1;
    width: 100%;
}

.sd-time-period-btn.active {
    color: var(--sd-neutral-900);
}

.sd-time-period-segmented-control::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--sd-neutral-100);
    border-radius: 6px;
    border: 1px solid var(--sd-neutral-300);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.sd-time-period-segmented-control[data-selected="PM"]::before {
    transform: translateX(100%);
}

.sd-time-period-btn:hover:not(.active) {
    color: var(--sd-neutral-900);
}

.sd-time-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.sd-time-input-wrapper input {
    padding-right: 36px;
    text-align: left;
}

.sd-time-input-wrapper svg {
    position: absolute;
    right: 12px;
    width: 20px;
    height: 20px;
    color: var(--sd-neutral-600);
    pointer-events: none;
}

.sd-marketing-phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.sd-marketing-test-phone-code {
    position: absolute;
    left: 16px;
    color: var(--sd-neutral-800);
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
}

.sd-marketing-phone-input-wrapper .sd-marketing-ai-assistant-input {
    padding-left: 40px;
    border: 1px solid var(--sd-neutral-500);
}

.sd-marketing-campaign-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sd-marketing-campaign-dropdown {
    position: relative;
    display: inline-block;
}

.sd-marketing-campaign-dropdown-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sd-marketing-campaign-dropdown-btn:hover {
    background-color: #f5f5f5;
}

.sd-marketing-campaign-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
    padding: 4px 0;
}

.sd-marketing-campaign-dropdown.active .sd-marketing-campaign-dropdown-content {
    display: block;
}

.sd-marketing-campaign-dropdown-content button {
    width: 100%;
    padding: 8px 16px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--sd-neutral-600);
    font-size: 14px;
    transition: background-color 0.2s;
}

.sd-marketing-campaign-dropdown-content button:hover {
    background-color: var(--sd-neutral-100);
}

.sd-marketing-campaign-dropdown-content button:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.sd-marketing-campaign-dropdown-content button:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.sd-marketing-campaign-dropdown-content button.sd-marketing-campaign-cancel-btn {
    color: #dc3545;
} 

.sd-error-red-v2 {
    color: var(--sd-error-red-v2);
}

.sd-marketing-cancel-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--sd-neutral-800);
}

#sd-cancel-campaign-confirm-btn, #sd-stop-collecting-consent-btn, #sd-deactivate-offer-confirm-btn, #sd-delete-offer-confirm-btn {
    background: var(--sd-error-red-400)
}

#sd-cancel-campaign-confirm-btn:hover, #sd-stop-collecting-consent-btn:hover, #sd-deactivate-offer-confirm-btn:hover, #sd-delete-offer-confirm-btn:hover {
    background: var(--sd-error-red-v2)
}

.sd-marketing-recurring-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.sd-marketing-recurring-option label {
    margin: 0;
}

.sd-marketing-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0 !important;
    accent-color: var(--sd-dark-green);
}

.sd-marketing-ending-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.sd-marketing-ending-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sd-marketing-ending-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--sd-neutral-500);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin-top: 2px;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-marketing-ending-option input[type="radio"]:checked {
    border: 2px solid #01AD85;
    background: var(--sd-neutral-100);
}

.sd-marketing-ending-option input[type="radio"]:checked:before {
    height: 10px;
    width: 10px;
    background: #01AD85;
    border-radius: 14px;
    position: absolute;
    content: '';
    left: 20%;
    top: 20%;
}

.sd-marketing-ending-option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sd-marketing-ending-option-content label {
    font-weight: 500;
    color: var(--sd-neutral-900);
    cursor: pointer;
}

.sd-marketing-ending-sublabel {
    font-size: 15px;
    color: var(--sd-neutral-500);
    font-weight: 400;
    margin-top: 0;
}

.sd-marketing-recurring-section {
    margin-top: 24px;
    padding: 0;
}

.sd-marketing-label-bold {
    font-weight: 700;
    font-size: 17px;
    color: var(--sd-neutral-800);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sd-marketing-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--sd-neutral-100);
    border-radius: 50%;
    border: 1px solid var(--sd-neutral-300);
    color: var(--sd-neutral-500);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 4px;
    transition: background 0.2s, color 0.2s;
}

.sd-marketing-tooltip:focus, .sd-marketing-tooltip:hover {
    background: var(--sd-neutral-200);
    color: var(--sd-neutral-700);
    outline: none;
}

.sd-marketing-ending-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--sd-neutral-900);
    margin-bottom: 2px;
}

.sd-marketing-recurring-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sd-campaign-name-link:hover {
    text-decoration: underline;
    color: initial !important;
    cursor: pointer !important;
}

.sd-marketing-toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin-right: 10px;
}

.sd-marketing-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sd-marketing-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s ease-in-out;
    border-radius: 24px;
}

.sd-marketing-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s ease-in-out;
    border-radius: 50%;
}

input:checked + .sd-marketing-toggle-slider {
    background-color: var(--sd-dark-green);
}

input:checked + .sd-marketing-toggle-slider:before {
    transform: translateX(16px);
}

.sd-marketing-toggle-label {
    cursor: pointer;
    vertical-align: middle;
}

.sd-marketing-recurring-option {
    display: flex;
    align-items: center;
}

#sd-marketing-ending-date-value {
    width: 50%;
}

.sd-marketing-toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}
.sd-marketing-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.sd-marketing-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #53ad91;
  border-radius: 24px;
  transition: background 0.2s;
}
.sd-marketing-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.sd-marketing-toggle-switch input:checked + .sd-marketing-toggle-slider {
  background: #53ad91;
}
.sd-marketing-toggle-switch input:not(:checked) + .sd-marketing-toggle-slider {
  background: #d3d3d3;
}
.sd-marketing-toggle-switch input:checked + .sd-marketing-toggle-slider:before {
  transform: translateX(16px);
}

/* --- Campaign Configs Modal --- */
.sd-campaign-configs-modal-body {
    display: flex; 
    gap: 40px; 
    align-items: flex-start;
    height: 100%;
}

.sd-campaign-configs-left {
    flex: 1; 
    min-width: calc(60% - 20px);
}

.sd-campaign-configs-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--sd-neutral-800);
    margin-bottom: 16px;
}

.sd-campaign-configs-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sd-campaign-configs-option {
    border: 1px solid var(--sd-neutral-300); 
    border-radius: 12px; 
    padding: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    cursor: pointer;
}

.sd-campaign-configs-option .sd-marketing-campaign-config-radio-active {
    display: none;
}

.sd-campaign-configs-option .sd-marketing-campaign-config-radio-inactive {
    display: block;
}

.sd-campaign-configs-option-active {
    border: 2px solid #01AD85;
    padding: 19px;
}

.sd-campaign-configs-option-active .sd-marketing-campaign-config-radio-active {
    display: block;
}

.sd-campaign-configs-option-active .sd-marketing-campaign-config-radio-inactive {
    display: none;
}

.sd-campaign-configs-option-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--sd-neutral-800);
}

.sd-campaign-configs-option-description {
    font-size: 14px;
    font-weight: 400;
    color: var(--sd-neutral-600);
}   

.sd-campaign-configs-option-radio {
    height: 19px;
    width: 19px;
    accent-color: #01AD85;
    background-color: white;
}

.sd-campaign-configs-right {
    min-width: calc(40% - 20px);
    height: 100%;
    border-left: 1px solid var(--sd-neutral-300);
}

.sd-campaign-configs-right-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-campaign-configs-right-preview-img {
    height: 100%;
    object-fit: contain;
    border: 5px solid var(--sd-neutral-400);
    border-radius: 15px;
}

/* AI Generated Segments Styles */
.sd-marketing-segments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 100%;
}

.sd-marketing-segments-header-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.sd-marketing-see-all-link {
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    color: var(--sd-darker-green);
    cursor: pointer;
    transition: color 0.2s ease;
    display: none;
}

.sd-marketing-see-all-link:hover {
    color: var(--sd-dark-green);
}

.sd-marketing-segments-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: -8px;
}

.sd-marketing-segment-card {
    display: flex;
    flex: 1 1 0;
    min-width: 200px;
    padding: 16px 12px 16px 24px;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    border: 1px solid var(--sd-neutral-300);
    transition: all 0.2s ease;
    position: relative;
}

.sd-marketing-segment-card-content {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.sd-marketing-segment-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--sd-neutral-800);
    word-wrap: break-word;
    width: 100%;
}

.sd-marketing-segment-customer-count {
    font-size: 16px;
    font-weight: 350;
    line-height: 24px;
    color: var(--sd-neutral-600);
    word-wrap: break-word;
    width: 100%;
}

.sd-marketing-segment-view-btn {
    display: flex;
    padding: 0 11px 8px 16px;
    justify-content: center;
    align-items: center;
    color: var(--sd-darker-green);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    line-height: 22px;
}

.sd-marketing-segment-view-btn:hover {
    color: var(--sd-dark-green);
}

.sd-marketing-no-segments {
    width: 100%;
    text-align: center;
    padding: 32px;
    color: var(--sd-neutral-600);
    font-size: 16px;
}

/* Responsive adjustments for segments */
@media (max-width: 768px) {
    .sd-marketing-segments-grid {
        flex-direction: column;
    }
    
    .sd-marketing-segment-card {
        min-width: auto;
        width: 100%;
    }
    
    .sd-marketing-segments-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .sd-marketing-segment-card {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .sd-marketing-segment-view-btn {
        width: 100%;
    }
    
    .sd-marketing-segments-header-left {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* Segment Details View Styles */
.sd-marketing-segment-details-container {
    display: none;
}

.sd-marketing-segment-details-container.show {
    display: block;
}

.sd-marketing-segment-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    width: 100%;
}

.sd-marketing-segment-specific-table {
    margin: 0 !important;
}

.sd-marketing-segment-details-header-left {
    flex: 1;
}

.sd-marketing-segment-details-header-right {
    margin-left: 1rem;
}

.sd-marketing-create-campaign-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--sd-primary-100);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sd-marketing-create-campaign-btn:hover {
    background: var(--sd-primary-200);
}

.sd-marketing-create-campaign-btn svg {
    width: 16px;
    height: 16px;
}

.sd-marketing-segment-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    color: var(--sd-neutral-800);
}

.sd-marketing-segment-desc, .sd-marketing-offer-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--sd-neutral-600);
}

.sd-marketing-segment-details-content {
    margin-top: 24px;
}

.sd-marketing-segment-details-content-left {
    width: 100%;
}

.sd-marketing-segment-details-stats-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Interactive Stat Cards */
.sd-marketing-segment-stat-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--sd-neutral-300);
}

.sd-marketing-segment-stat-card:hover {
    border-color: var(--sd-dark-green);
}

.sd-marketing-segment-stat-card.active {
    border-color: var(--sd-dark-green);
}

.sd-marketing-segment-stat-card-customers.active {
    border-color: var(--sd-dark-green);
    background: var(--sd-card-background);
}

.sd-marketing-segment-stat-card-campaigns.active {
    border-color: var(--sd-dark-green);
    background-color: var(--sd-card-background);
}

.sd-marketing-segment-stat-card-engagement {
    cursor: not-allowed;
}

.sd-marketing-segment-stat-card-engagement:hover {
    border-color: var(--sd-neutral-300);
    box-shadow: none;
}

/* Table Title */
.sd-marketing-segment-chart-container-top-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: var(--sd-neutral-800);
    margin-bottom: 16px;
    margin-top: 32px;
}

/* Responsive adjustments for segment details */
@media (max-width: 768px) {
    .sd-marketing-segment-details-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Campaign Status Styles */
.sd-marketing-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.sd-marketing-status.status-completed {
    background: #F0F9F6;
    color: #008062;
}

.sd-marketing-status.status-approved {
    background: #FFF7E6;
    color: #D97706;
}

.sd-marketing-status.status-pending_verification {
    background: #FEF3C7;
    color: #D97706;
}

.sd-marketing-status.status-rejected {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-cancelled {
    background: #F3F4F6;
    color: #6B7280;
}

.sd-marketing-status.status-in_progress {
    background: #EFF6FF;
    color: #2563EB;
}

.sd-marketing-status.status-scheduled {
    background: #F0F9FF;
    color: #0EA5E9;
}

.sd-marketing-status.status-pending {
    background: #FEF3C7;
    color: #D97706;
}

.sd-marketing-status.status-processing {
    background: #EFF6FF;
    color: #2563EB;
}

.sd-marketing-status.status-draft {
    background: #F3F4F6;
    color: #6B7280;
}

.sd-marketing-status.status-failed {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-queued {
    background: #F0F9FF;
    color: #0EA5E9;
}

.sd-marketing-status.status-sent {
    background: #F0F9F6;
    color: #008062;
}

.sd-marketing-status.status-delivered {
    background: #F0F9F6;
    color: #008062;
}

.sd-marketing-status.status-opened {
    background: #EFF6FF;
    color: #2563EB;
}

.sd-marketing-status.status-clicked {
    background: #F0F9F6;
    color: #008062;
}

.sd-marketing-status.status-bounced {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-unsubscribed {
    background: #F3F4F6;
    color: #6B7280;
}

.sd-marketing-status.status-spam {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-unknown {
    background: #F3F4F6;
    color: #6B7280;
}

.sd-marketing-status.status-archived {
    background: #F3F4F6;
    color: #6B7280;
}

.sd-marketing-status.status-deleted {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-expired {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-suspended {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-hold {
    background: #FEF3C7;
    color: #D97706;
}

.sd-marketing-status.status-review {
    background: #FEF3F2;
    color: #DC2626;
}

.sd-marketing-status.status-test {
    background: #F3F4F6;
    color: #6B7280;
}

.sd-marketing-status.status-live {
    background: #F0F9F6;
    color: #008062;
}

.sd-marketing-status.status-paused {
    background: #FEF3C7;
    color: #D97706;
}

.sd-marketing-status.status-resumed {
    background: #F0F9F6;
    color: #008062;
}

.sd-marketing-status.status-stopped {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-error {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-warning {
    background: #FEF3C7;
    color: #D97706;
}

.sd-marketing-status.status-info {
    background: #EFF6FF;
    color: #2563EB;
}

.sd-marketing-status.status-success {
    background: #F0F9F6;
    color: #008062;
}

.sd-marketing-status.status-danger {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-primary {
    background: #EFF6FF;
    color: #2563EB;
}

.sd-marketing-status.status-secondary {
    background: #F3F4F6;
    color: #6B7280;
}

.sd-marketing-status.status-light {
    background: #F9FAFB;
    color: #374151;
}

.sd-marketing-status.status-dark {
    background: #374151;
    color: #F9FAFB;
}

.sd-marketing-status.status-muted {
    background: #F3F4F6;
    color: #6B7280;
}

.sd-marketing-status.status-transparent {
    background: transparent;
    color: #6B7280;
}

.sd-marketing-status.status-ghost {
    background: transparent;
    color: #6B7280;
    border: 1px solid #D1D5DB;
}

.sd-marketing-status.status-outline {
    background: transparent;
    color: #6B7280;
    border: 1px solid #D1D5DB;
}

.sd-marketing-status.status-solid {
    background: #6B7280;
    color: #FFFFFF;
}

.sd-marketing-status.status-soft {
    background: #F3F4F6;
    color: #374151;
}

.sd-marketing-status.status-hard {
    background: #374151;
    color: #FFFFFF;
}

.sd-marketing-status.status-neutral {
    background: #F3F4F6;
    color: #6B7280;
}

.sd-marketing-status.status-positive {
    background: #F0F9F6;
    color: #008062;
}

.sd-marketing-status.status-negative {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-critical {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-urgent {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-important {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-notice {
    background: #FEF3C7;
    color: #D97706;
}

.sd-marketing-status.status-help {
    background: #EFF6FF;
    color: #2563EB;
}

.sd-marketing-status.status-tip {
    background: #F0F9F6;
    color: #008062;
}

.sd-marketing-status.status-new {
    background: #F0F9F6;
    color: #008062;
}

.sd-marketing-status.status-updated {
    background: #EFF6FF;
    color: #2563EB;
}

.sd-marketing-status.status-verified {
    background: #F0F9F6;
    color: #008062;
}

.sd-marketing-status.status-unverified {
    background: #FEF3C7;
    color: #D97706;
}

.sd-marketing-status.status-pending_approval {
    background: #FEF3C7;
    color: #D97706;
}

.sd-marketing-status.status-approved {
    background: #F0F9F6;
    color: #008062;
}

.sd-marketing-status.status-rejected {
    background: #FEF2F2;
    color: #DC2626;
}

.sd-marketing-status.status-cancelled {
    background: #F3F4F6;
    color: #6B7280;
}


/* ========== OFFERS STYLES ========== */

/* Offers Container Styles */
.sd-marketing-offers-list-view-btn {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color: #03624C;
    cursor: pointer;
}

.sd-marketing-offers-container {
    display: none;
}

.sd-marketing-offers-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    width: 100%;
}

.sd-marketing-offers-header-left {
    flex: 1;
}

.sd-marketing-offers-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    color: var(--sd-neutral-800);
}

.sd-marketing-segment-desc, .sd-marketing-offer-desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--sd-neutral-600);
    margin: 0;
}

.sd-marketing-new-offer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px 8px 11px;
    background: var(--sd-dark-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.sd-marketing-new-offer-btn svg {
    width: 24px;
    height: 24px;
}

.sd-marketing-offers-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sd-marketing-offers-stats-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.sd-marketing-offers-stats-grid .sd-marketing-stat-card {
    border: 1px solid var(--sd-neutral-300);
    border-radius: 12px;
    padding: 24px 20px;
    width: 391px;
}

.sd-marketing-offers-stats-grid .sd-marketing-stat-value {
    font-weight: 900;
    font-size: 36px;
    line-height: 44px;
    color: var(--sd-neutral-800);
}

.sd-marketing-offers-table-header {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sd-marketing-offers-table-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    color: var(--sd-neutral-800);
}

.sd-offer-name {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #525252;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.sd-offer-expiry {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #525252;
}

.sd-offer-link {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #525252;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

.sd-offer-status {
    display: flex;
    align-items: center;
}

.sd-offer-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.1;
}

.sd-offer-status-badge.active {
    background: rgba(208, 251, 231, 0.7);
    color: #045040;
}

.sd-offer-status-badge.concluded {
    background: #fff6ed;
    color: #c4320a;
}

.sd-offer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-offer-actions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #737373;
    transition: color 0.2s;
    padding: 0;
}

.sd-offer-actions-btn:hover {
    color: #404040;
}

.sd-offer-actions-btn svg {
    width: 24px;
    height: 24px;
}


/* ========== OFFER CREATOR MODAL STYLES ========== */
.sd-marketing-offer-creator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--sd-neutral-100);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.sd-marketing-offer-creator-modal.sd-marketing-open {
    transform: translateY(0);
    opacity: 1;
}

.sd-marketing-offer-creator-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sd-marketing-offer-create-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    cursor: pointer;
    z-index: 990;
    transition: background-color 0.2s;
}

.sd-marketing-offer-creator-top {
    flex: 1;
    display: flex;
    min-height: 0;
}

.sd-marketing-offer-creator-top-left {
    width: 881px;
    padding: 48px 120px 44px 120px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow-y: auto;
}

.sd-marketing-offer-creator-top-left-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sd-marketing-offer-creator-top-left-title-text {
    font-weight: 800;
    font-size: 24px;
    line-height: 32px;
    color: #0a0a0a;
    letter-spacing: -0.48px;
    margin: 0;
}

.sd-marketing-offer-creator-top-left-title-desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--sd-neutral-600);
    margin: 0;
}

.sd-marketing-offer-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sd-marketing-offer-creator-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sd-marketing-offer-creator-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sd-marketing-offer-creator-input-group label {
    font-weight: 800;
    font-size: 18px;
    line-height: 26px;
    color: var(--sd-neutral-800);
    letter-spacing: -0.36px;
    margin: 0;
}

.sd-marketing-offer-creator-input {
    height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--sd-neutral-300);
    border-radius: 10px;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: var(--sd-neutral-800);
    box-sizing: border-box;
    width: 100%;
}

.sd-marketing-offer-creator-input:focus {
    outline: none;
    border-color: #008062;
    box-shadow: 0 0 0 3px rgba(0, 128, 98, 0.1);
}

.sd-marketing-offer-creator-input::placeholder {
    color: #a3a3a3;
}

.sd-marketing-offer-creator-textarea {
    min-height: 107px;
    padding: 16px;
    border: 1px solid var(--sd-neutral-300);
    border-radius: 10px;
    font-weight: 400;
    font-size: 18px;
    line-height: 25.2px;
    color: var(--sd-neutral-800);
    resize: vertical;
    box-sizing: border-box;
    width: 100%;
}

.sd-marketing-offer-creator-textarea:focus {
    outline: none;
    border-color: var(--sd-dark-green);
    box-shadow: 0 0 0 3px rgba(0, 128, 98, 0.1);
}

.sd-marketing-offer-creator-textarea::placeholder {
    color: var(--sd-neutral-400);
}

.sd-marketing-offer-creator-date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sd-marketing-offer-creator-date-input-wrapper svg {
    position: absolute;
    left: 16px;
    z-index: 2;
    pointer-events: none;
}

.sd-marketing-offer-creator-date-input-wrapper input {
    padding-left: 52px;
}

.sd-marketing-template-buttons-container {
    display: flex;
    gap: 8px;
}

.sd-marketing-template-modal-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    background: #d0fbe7;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sd-marketing-template-modal-btn:hover {
    background: #c2f5e0;
}

.sd-marketing-template-modal-btn span {
    font-weight: 500;
    font-size: 16px;
    line-height: 22.4px;
    color: var(--sd-neutral-800);
}

/* Offer Selection Modal Styles */
.sd-offer-selection-container {
    height: 100%;
    overflow-y: auto;
}

.sd-offer-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    height: 100%;
    overflow: scroll;
}

.sd-offer-selection-card {
    background: var(--sd-neutral-100);
    border: 1px solid var(--sd-neutral-300);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.sd-offer-selection-card.selected {
    border: 1px solid var(--sd-dark-green);
    background: var(--sd-card-background);
}

.sd-offer-selection-card:hover {
    border: 1px solid var(--sd-dark-green);
}

.sd-offer-selection-card-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sd-offer-selection-card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.sd-offer-selection-card-icon img {
    height: 24px;
    width: 24px;
}

.sd-offer-selection-card-checkbox {
    display: none;
}

.sd-offer-selection-card.selected .sd-offer-selection-card-checkbox {
    display: block;
}

.sd-offer-selection-card-header {
    font-weight: 700;
    font-size: 16px;
    color: var(--sd-neutral-900);
    margin-bottom: -10px;
}

.sd-offer-selection-card-content {
    font-size: 14px;
    color: var(--sd-neutral-700);
    line-height: 1.4;
}

.sd-offer-selection-card-details {
    font-size: 12px;
    color: var(--sd-neutral-600);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sd-offer-selection-card-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 8px;
    width: fit-content;
}

.sd-offer-selection-card-status.active {
    background: var(--sd-success-100);
    color: var(--sd-success-700);
}

.sd-offer-selection-card-status.inactive {
    background: var(--sd-neutral-200);
    color: var(--sd-neutral-600);
}

.sd-marketing-offer-creator-top-right {
    width: 558px;
    padding: 32px 120px 78px 0;
    border-left: 1px solid #d9d9d9;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sd-marketing-offer-creator-preview-phone-top-text {
    padding-left: 120px;
}

.sd-marketing-offer-details-preview-container-top {
    font-weight: 800;
    font-size: 18px;
    line-height: 26px;
    color: var(--sd-neutral-800);
    letter-spacing: -0.36px;
}

.sd-marketing-offer-creator-preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 120px;
}

.sd-marketing-offer-creator-preview-phone {
    width: 296px;
    height: 565px;
    border-radius: 25.714px;
    border: 9.146px solid #e5e5e5;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sd-marketing-offer-creator-preview-phone-top {
    height: 33.588px;
    padding: 9.92px 13.82px 0 5.49px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sd-marketing-offer-creator-preview-phone-banner {
    display: flex;
    align-items: center;
    gap: 4.286px;
    padding: 6.429px 10.714px 8.571px 10.714px;
    border-bottom: 0.915px solid #f4f4f8;
}

.sd-marketing-offer-creator-preview-phone-banner-text {
    font-family: 'Graphik', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 19.6px;
    color: #0a0a0a;
}

.sd-marketing-offer-creator-preview-phone-msg {
    flex: 1;
    padding: 21.429px 10.714px;
    display: flex;
    flex-direction: column;
}

.sd-marketing-offer-creator-preview-phone-msg-text-container {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 10px 12px 12px 16px;
    margin-bottom: 15px;
    position: relative;
    max-width: 242.571px;
}

.sd-marketing-offer-creator-preview-phone-msg-text-container::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 10.714px;
    width: 0;
    height: 0;
    border-left: 8.571px solid transparent;
    border-right: 0;
    border-top: 19.286px solid #f5f5f5;
    transform: rotate(180deg) scaleY(-1);
}

#sd-marketing-offer-preview-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 22.4px;
    color: var(--sd-neutral-600);
    margin: 0;
}

.sd-marketing-offer-creator-preview-phone-bottom {
    padding: 2.143px 13.929px;
    display: flex;
    align-items: center;
    gap: 8.571px;
    border-top: 0.915px solid #f4f4f8;
}

.sd-marketing-offer-creator-footer {
    border-top: 1px solid #e3e4eb;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;

}

.sd-marketing-offer-creator-cancel-btn {
    padding: 10px 20px;
    border: 1px solid var(--sd-neutral-300);
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--sd-neutral-600);
    cursor: pointer;
    transition: all 0.2s;
}

.sd-marketing-offer-creator-launch-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--sd-dark-green);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sd-marketing-offer-error {
    margin-top: 16px;
}

.sd-marketing-offer-error .error-message {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.sd-marketing-error-item {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
    color: #c53030;
    font-size: 12px;
}

/* Template Modal Tab Navigation */
.sd-template-modal-tabs {
    margin-bottom: 24px;
    margin-top: -32px;
}

.sd-template-tab-nav {
    position: relative;
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.sd-template-tab-nav-btns {
    display: flex;
    gap: 32px;
}

.sd-template-tab-btn {
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--sd-neutral-600);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
}

.sd-template-tab-btn:hover {
    color: var(--sd-neutral-700);
}

.sd-template-tab-btn.active {
    color: var(--sd-dark-green);
    font-weight: 700;
}

.sd-template-tab-slider {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: var(--sd-dark-green);
    transition: left 0.3s ease, width 0.3s ease;
    border-radius: 1px;
    width: 64px;
}

.sd-template-tab-content {
    position: relative;
    height:  100%;
    min-width: 400px;
    overflow: auto;
}

.sd-template-tab-panel {
    display: none;
}

.sd-template-tab-panel.active {
    display: block;
}

/* Ensure proper spacing for tab content */
.sd-template-tab-panel .sd-marketing-campaign-templates-grid,
.sd-template-tab-panel .sd-offer-selection-container {
    margin-top: 0;
}

/* Offer cards styling to match template cards */
.sd-offer-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 0;
}

.sd-offer-card {
    border: 1px solid var(--sd-neutral-300);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.sd-offer-card:hover {
    border-color: var(--sd-dark-green);
}

.sd-offer-card.selected {
    border-color: var(--sd-dark-green);
    background: var(--sd-card-background);
}

.sd-offer-card-top-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sd-offer-card-icon {
    width: 28px;
    height: 28px;
    background: var(--sd-neutral-300);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-offer-card-checkbox {
    display: none;
}

.sd-offer-card.selected .sd-offer-card-checkbox {
    display: block;
}

.sd-offer-card-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--sd-neutral-900);
}

.sd-offer-card-content {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Empty state for offers */
.sd-offers-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.sd-offers-empty-icon {
    margin-bottom: 16px;
    opacity: 0.6;
}

.sd-offers-empty-text {
    font-size: 16px;
    color: var(--sd-neutral-500);
    font-weight: 500;
}
