#poss h2 {
    margin-bottom: 20px; /* Add margin-bottom to the h2 element */
    color: var(--primary-light);
    font-weight: 1000;
}

.poss-subtitle {
    text-align: center;
    color: var(--primary-dark);
    font-size: 2rem;
    margin: 30px 0 20px;
    font-weight: 1000;
}

.poss-description {
    text-align: center;
    color: var(--text-color);
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

/* Update the grid layout in poss.css */
.pos-widgets-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.pos-widget {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pos-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.pos-widget-image {
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pos-widget-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease; 
    padding: 10px; 
}

.pos-widget:hover .pos-widget-image img {
    transform: scale(1.2);
}

.pos-widget h4 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin: 10px 0;
}

.pos-widget p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.5;
    flex: 1;
}

.pos-button {
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pos-button:hover {
    background-color: var(--primary-dark);
}

.pos-widget button:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.7;
}

.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 5;
}

.no-code-tag {
    background-color: #E3F9E5;
    color: #31B237;
}

.low-code-tag {
    background-color: #EFF6FF;
    color: #3B82F6;
}

.code-tag {
    background-color: #FAF5FF;
    color: #8B5CF6;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 6px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    border-radius: 12px;
    width: 1100px;
    max-width: 70%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #718096;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--primary-dark);
}

.modal-body {
    padding: 20px;
}

/* Walkthrough Stepper */
.walkthrough-stepper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.walkthrough-stepper .step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 15px;
    position: relative;
}

.walkthrough-stepper .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    height: 2px;
    width: 30px;
    background-color: #e2e8f0;
}

.walkthrough-stepper .step.active {
    background-color: var(--primary-color);
    color: white;
}

.walkthrough-stepper .step.completed {
    background-color: #48BB78;
    color: white;
}

.walkthrough-stepper .step.completed::after {
    background-color: #48BB78;
}

/* Step Content */
.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.step-panel h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

/* Additional Details Step Styles */
.additional-details-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.webhook-section,
.customer-id-section {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.webhook-section h5,
.customer-id-section h5 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 0 0 10px 0;
}

.webhook-input-group {
    margin-top: 15px;
}

.webhook-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.webhook-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.webhook-help-text {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.primary-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.confirmation-row.webhook-row {
    display: none;
}

@media (max-width: 768px) {
    .webhook-input {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .customer-id-section .code-block {
        font-size: 0.8rem;
    }
}

/* Customer ID Example Styles */
.url-example {
    margin: 15px 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

.base-url {
    background-color: #f1f5f9;
    padding: 10px 15px;
    border-radius: 6px 6px 0 0;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.modified-url {
    background-color: #f8fafc;
    padding: 10px 15px;
    border-radius: 0 0 6px 6px;
    border: 1px solid #e2e8f0;
    border-top: none;
    color: #334155;
}

.highlight-param {
    color: var(--primary-color);
    font-weight: bold;
}

.code-block {
    background-color: #1a202c;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: #f8f9fa;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-image {
    margin: 20px 0;
    text-align: center;
}

.step-image img {
    max-width: 100%;
    max-height: 300px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.completion-message {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background-color: #F0FFF4;
    border-radius: 8px;
    border: 1px solid #C6F6D5;
}

.download-btn {
    padding: 8px 20px;
    background-color: #48BB78;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.download-btn:hover {
    background-color: #38A169;
}

/* Navigation buttons */
.walkthrough-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.nav-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-btn:hover:not(:disabled) {
    background-color: var(--primary-dark);
}

.nav-btn:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .pos-widgets-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pos-widgets-container {
        grid-template-columns: 1fr;
    }
}

.input-checklist {
    margin: 25px 0;
}

.input-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.input-item:last-child {
    border-bottom: none;
}

.check-circle {
    width: 30px;
    height: 30px;
    background-color: #4dbb9a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.input-details {
    flex: 1;
}

.input-details h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.input-details p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

.code-block {
    background-color: #1e1e1e;
    border-left: 4px solid #4dbb9a;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.code-block pre {
    margin: 0;
    padding: 15px;
}

.code-block code {
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block {
    position: relative;
}

.code-block::before {
    content: "HTML";
    position: absolute;
    top: 0;
    right: 0;
    background: #4dbb9a;
    color: white;
    padding: 4px 10px;
    border-bottom-left-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    font-family: sans-serif;
}

.code-block.js::before {
    content: "JavaScript";
    background: #f7df1e;
    color: #000;
}

.code-block code .highlight {
    color: #4dbb9a;
    font-weight: bold;
}

.code-block code .tag {
    color: #569CD6;
    position: static;
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-weight: normal;
}

.highlight-green {
    color: #4dbb9a;
    font-weight: bold;
}

.highlight-orange {
    color: #CE9178;
    font-weight: bold;
}

.highlight-white {
    color: #ffffff;
    font-weight: bold;
}

.insights-overview {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.insight-card {
    flex: 1;
    display: flex;
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.insight-icon {
    font-size: 28px;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.insight-details {
    flex: 1;
}

.insight-details h5 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.insight-details p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-tip {
    background-color: #FEFCBF;
    border-left: 4px solid #ECC94B;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.step-tip p {
    margin: 0;
    color: #744210;
}

.step-tip strong {
    color: #744210;
}

.step-panel[data-step="5"] .completion-message {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .insights-overview {
        flex-direction: column;
    }
}

/* Links table step */

.links-table-container {
    max-height: 250px;
    overflow-y: auto;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

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

.links-table th,
.links-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.links-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #4a5568;
}

.links-table tr:hover {
    background-color: #f8fafc;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background-color: #C6F6D5;
    color: #22543D;
}

.status-inactive {
    background-color: #FED7D7;
    color: #822727;
}

.copy-link-btn {
    margin-left: 8px;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

copy-link-btn:hover {
    color: var(--primary-dark);
}

.create-new-link {
    margin-top: 20px;
    text-align: center;
}

.primary-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

/* Chains step */

.chains-selection {
    margin: 20px 0;
}

.chain-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.chain-logo-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.chain-logo {
    max-width: 40px;
    max-height: 40px;
}

.chain-details {
    flex: 1;
}

.chain-details h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.chain-details p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

/* Amount step */

.amount-container {
    margin: 30px 0;
}

/* Currency dropdown inside amount input group */
.amount-input-group {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: visible;
}

.payment-amount-input {
    flex: 1;
    padding: 10px 10px 10px 10px;
    font-size: 1.5rem;
    border: none;
    outline: none;
    transition: border-color 0.3s;
}

.currency-dropdown {
    position: relative;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-right: 2px solid #e2e8f0;
    background-color: #f8fafc;
    z-index: 10;
}

.currency-symbol {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a5568;
    position: relative;
}

.currency-symbol:after {
    content: '';
    position: absolute;
    top: 47%;
    right: -15px;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #4a5568;
}

.currency-options {
    position: absolute;
    top: 100%;
    left: -2px;
    width: auto;
    min-width: 120px;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
}

.currency-dropdown.active .currency-options {
    display: block;
}

.currency-option {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.currency-option:hover {
    background-color: #f7fafc;
    color: var(--primary-color)
}

.currency-option-icons {
    display: flex;
    margin-right: 10px;
    align-items: center;
}

.currency-icon {
    width: 20px;
    height: 20px;
    margin-right: 2px;
}

@media (max-width: 768px) {
    .amount-input-group {
        display: flex;
    }
    
    .payment-amount-input {
        padding: 12px 10px 12px 5px;
        font-size: 1.2rem;
    }
    
    .currency-dropdown {
        padding: 12px 10px;
    }
    
    .currency-symbol {
        font-size: 1rem;
    }
}

.common-amounts {
    margin-top: 20px;
}

.common-amounts p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #718096;
}

.amount-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amount-chip {
    padding: 8px 15px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-chip:hover {
    background-color: #e2e8f0;
}


/* Confirmation step */

.confirmation-details {
    margin: 30px 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: white;
    max-width: 750px;
    margin: 30px auto;
}

.confirmation-row {
    display: flex;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f4f8;
    transition: background-color 0.2s ease;
}

.confirmation-row:hover {
    background-color: #f9fafb;
}

.confirmation-row:last-child {
    border-bottom: none;
}

.confirmation-label {
    display: flex;
    align-items: center;
    margin-right: 20px;
    flex: 0 0 200px;
    font-weight: 500;
}

.confirmation-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
}

.confirmation-value {
    position: relative;
    color: var(--primary-dark);
    font-weight: 500;
}

.webhook-value {
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#confirm-chains, #confirm-amount {
    color: var(--primary-light);
    position: relative;
    font-weight: 600;
}

.confirmation-details::before {
    content: 'Summary';
    display: block;
    background-color: #f8fafc;
    padding: 12px 20px;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-panel[data-step="4"] {
    max-width: 650px;
    margin: 0 auto;
}

.confirmation-row {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.confirmation-row:last-child {
    border-bottom: none;
}

.payment-link-result {
    margin: 30px 0;
    text-align: center;
}

.payment-link-container {
    display: flex;
    margin: 20px 0;
}

.payment-link-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 1rem;
}

.copy-payment-link-btn {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-payment-link-btn:hover {
    background-color: var(--primary-dark);
}

/* Add these styles for the links table */
.links-table-header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 15px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.links-table td:first-child {
    display: flex;
    align-items: center;
    gap: 5px;
}

.links-table-header h5 {
    margin: 0;
    color: #2d3748;
    font-size: 1rem;
}

.refresh-btn {
    background: none;
    color: var(--primary-color);
    border: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 4px;
}

.refresh-btn:hover {
    background-color: #edf2f7;
}

.loading-links, .empty-links, .error-links {
    text-align: center;
    padding: 30px 15px;
    color: #718096;
}

.loading-links .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(77, 187, 154, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

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

.empty-links i, .error-links i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.error-links {
    color: #e53e3e;
}

.fa-spin {
    animation: spin 1s linear infinite;
}

.step-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.step-header-actions p {
    margin: 0;
}

/* Date tooltip styles */
.links-table td:nth-child(3) {
    position: relative;
    cursor: help;
    text-decoration: underline dotted;
    color: #4a5568;
}

.links-table td:nth-child(3):hover::after {
    content: attr(data-full-date);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2d3748;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.links-table td:nth-child(3):hover::before {
    content: '';
    position: absolute;
    bottom: 98%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top: 6px solid #2d3748;
    z-index: 10;
}


@media (max-width: 768px) {
    .modal-container {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .walkthrough-stepper {
        margin-bottom: 20px;
    }
    
    .walkthrough-stepper .step {
        width: 32px;
        height: 32px;
        margin: 0 8px;
        font-size: 14px;
    }
    
    .walkthrough-stepper .step:not(:last-child)::after {
        right: -16px;
        width: 16px;
    }
    
    .chain-option {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 10px;
    }
    
    .chain-option .toggle-switch {
        position: absolute;
        right: 15px;
        top: 15px;
    }
    
    .chain-logo-wrapper {
        margin-bottom: 10px;
    }
    
    .payment-amount-input {
        font-size: 1.2rem;
        padding: 12px 12px 12px 30px;
    }
    
    .currency-symbol {
        font-size: 1.1rem;
        left: 12px;
    }
    
    .amount-chips {
        gap: 8px;
    }
    
    .amount-chip {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .confirmation-row {
        flex-direction: column;
        padding: 12px 15px;
    }
    
    .confirmation-label {
        margin-bottom: 5px;
        flex: none;
    }

    .webhook-value {
        max-width: 100%;
    }
    
    .payment-link-container {
        flex-direction: column;
        margin: 20px 0;
    }
    
    .payment-link-input {
        border-radius: 8px 8px 0 0;
        border-right: 2px solid #e2e8f0;
        font-size: 0.9rem;
        padding: 10px 12px;
        text-overflow: ellipsis;
    }
    
    .copy-payment-link-btn {
        border-radius: 0 0 8px 8px;
        width: 100%;
    }
    
    /* Adjust table for mobile scrolling */
    .links-table-container {
        max-height: 200px;
    }
    
    .links-table {
        min-width: 650px; /* Force horizontal scrolling */
    }
    
    .links-table th, 
    .links-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    /* Adjust walkthrough navigation */
    .walkthrough-navigation {
        margin-top: 20px;
        padding-top: 10px;
    }
    
    .nav-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* Make sure chain-option has position relative for absolute positioning to work */
    .chain-option {
        position: relative;
        padding-right: 60px; /* Add space for the toggle */
    }

    /* Fix toggle position on mobile */
    .chain-option .toggle-switch {
        position: absolute;
        right: 15px;
        top: 15px;
        z-index: 5; /* Ensure it's above other elements */
    }

    /* Ensure the toggle slider has proper dimensions */
    .toggle-switch .toggle-slider {
        display: block;
        width: 50px; /* Make it a bit larger on mobile for easier tapping */
    }
    
    /* Make toggle more visible */
    .toggle-switch {
        display: block;
        min-width: 40px;
        min-height: 20px;
        background-color: rgba(255, 255, 255, 0.8); /* Add slight background */
        border-radius: 20px;
        padding: 2px;
    }
}

@media (max-width: 480px) {
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .step-panel h4 {
        font-size: 1rem;
    }
    
    /* Adjust POSs widgets for very small screens */
    .pos-widget {
        padding: 15px;
    }
    
    .pos-widget-image {
        width: 100%;
        height: auto;
        max-height: 250px;
    }
    
    .pos-widget h4 {
        font-size: 1.2rem;
    }
    
    .pos-widget p {
        font-size: 0.9rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    /* Make more room for content */
    .walkthrough-content {
        font-size: 0.9rem;
    }
    
    /* Center the insights cards for very small screens */
    .insights-overview {
        flex-direction: column;
    }
    
    .insight-card {
        margin-bottom: 15px;
    }
    
    /* Make code blocks more readable on small screens */
    .code-block {
        font-size: 0.75rem;
    }
    
    .code-block pre {
        padding: 10px;
    }

    /* For even smaller screens */
    .chain-option {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    /* Add more visual distinction to the toggle area */
    .chain-option .toggle-switch {
        top: 10px;
        right: 10px;
    }
}

