/**
 * ShipStation Blocks - Shared Styles
 * 
 * Global styles for section headers and common patterns used across all blocks.
 * This file is compiled to shared-styles.min.css and enqueued globally.
 */

/* ===========================================
   Background Color Utilities
   These match the theme's Tailwind config and ensure
   colors work in both editor and frontend
   =========================================== */

.bg-white {
    background-color: #ffffff;
}

.bg-grey-lightest {
    background-color: #f8f8f8;
}

.bg-marigold {
    background-color: #f5a623;
}

.bg-green {
    background-color: #00a878;
}

.bg-green-lightest {
    background-color: #e6f7f2;
}

.bg-dark-cobalt {
    background-color: #1a2b4a;
}

.bg-cobalt {
    background-color: #2d4a8c;
}

.bg-cobalt-light {
    background-color: #4a6fb5;
}

.bg-cobalt-lighter {
    background-color: #7a9fd4;
}

.bg-cobalt-lightest {
    background-color: #e8f0fa;
}

.bg-deep-indigo {
    background-color: #1e1b4b;
}

.bg-gradient-hero {
    background: linear-gradient(135deg, #2d4a8c 0%, #1a2b4a 100%);
}

/* ===========================================
   Text Color Utilities
   =========================================== */

.text-indigo {
    color: #4f46e5 !important;
}

.text-green {
    color: #22c55e !important;
}

.text-white {
    color: #ffffff !important;
}

/* ===========================================
   Section Header (.content) - Used by all blocks
   Targets any block with shipstation or wp-block-shipstation prefix
   =========================================== */

[class*="wp-block-shipstation-"] .content,
[class*="wp-block-shipstation-"] .content {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

[class*="wp-block-shipstation-"] .content.content-align-left,
[class*="wp-block-shipstation-"] .content.content-align-left {
    align-items: flex-start;
    text-align: left;
}

@media (min-width: 1024px) {
    [class*="wp-block-shipstation-"] .content.content-align-left,
    [class*="wp-block-shipstation-"] .content.content-align-left {
        align-items: flex-start;
        text-align: left;
    }
}

[class*="wp-block-shipstation-"] .content.content-align-right,
[class*="wp-block-shipstation-"] .content.content-align-right {
    align-items: flex-end;
    text-align: right;
}

@media (min-width: 1024px) {
    [class*="wp-block-shipstation-"] .content.content-align-right,
    [class*="wp-block-shipstation-"] .content.content-align-right {
        align-items: flex-end;
        text-align: right;
    }
}

/* Lists inside section headers */

[class*="wp-block-shipstation-"] .content ul,
[class*="wp-block-shipstation-"] .content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    text-align: left;
}

[class*="wp-block-shipstation-"] .content ul li,
[class*="wp-block-shipstation-"] .content ul li {
    padding-bottom: 0.5rem;
}

[class*="wp-block-shipstation-"] .content ul li strong,
[class*="wp-block-shipstation-"] .content ul li strong {
    display: block;
}

/* CTA Button Group */

[class*="wp-block-shipstation-"] .content .btn-group,
[class*="wp-block-shipstation-"] .content .btn-group {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Eyebrow text */

[class*="wp-block-shipstation-"] .content .eyebrow,
[class*="wp-block-shipstation-"] .content .eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Lead/body text */

[class*="wp-block-shipstation-"] .content .lead,
[class*="wp-block-shipstation-"] .content .lead {
    max-width: 48rem;
    font-size: 1.125rem;
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

/* Secondary body text */

[class*="wp-block-shipstation-"] .content .secondary,
[class*="wp-block-shipstation-"] .content .secondary {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

/* Dark background adjustments for section headers */

.bg-dark-cobalt [class*="wp-block-shipstation-"] .content .eyebrow,
.bg-dark-cobalt [class*="wp-block-shipstation-"] .content .eyebrow,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content .eyebrow,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content .eyebrow,
.bg-cobalt [class*="wp-block-shipstation-"] .content .eyebrow,
.bg-cobalt [class*="wp-block-shipstation-"] .content .eyebrow,

[class*="wp-block-shipstation-"] .bg-dark-cobalt .content .eyebrow,
[class*="wp-block-shipstation-"] .bg-deep-indigo .content .eyebrow,
[class*="wp-block-shipstation-"] .bg-cobalt .content .eyebrow {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    color: #ffffff;
}

.bg-dark-cobalt [class*="wp-block-shipstation-"] .content h1,
.bg-dark-cobalt [class*="wp-block-shipstation-"] .content h2,
.bg-dark-cobalt [class*="wp-block-shipstation-"] .content h3,
.bg-dark-cobalt [class*="wp-block-shipstation-"] .content h4,
.bg-dark-cobalt [class*="wp-block-shipstation-"] .content h1,
.bg-dark-cobalt [class*="wp-block-shipstation-"] .content h2,
.bg-dark-cobalt [class*="wp-block-shipstation-"] .content h3,
.bg-dark-cobalt [class*="wp-block-shipstation-"] .content h4,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content h1,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content h2,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content h3,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content h4,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content h1,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content h2,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content h3,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content h4,
.bg-cobalt [class*="wp-block-shipstation-"] .content h1,
.bg-cobalt [class*="wp-block-shipstation-"] .content h2,
.bg-cobalt [class*="wp-block-shipstation-"] .content h3,
.bg-cobalt [class*="wp-block-shipstation-"] .content h4,
.bg-cobalt [class*="wp-block-shipstation-"] .content h1,
.bg-cobalt [class*="wp-block-shipstation-"] .content h2,
.bg-cobalt [class*="wp-block-shipstation-"] .content h3,
.bg-cobalt [class*="wp-block-shipstation-"] .content h4,

[class*="wp-block-shipstation-"] .bg-dark-cobalt .content h1,
[class*="wp-block-shipstation-"] .bg-dark-cobalt .content h2,
[class*="wp-block-shipstation-"] .bg-dark-cobalt .content h3,
[class*="wp-block-shipstation-"] .bg-dark-cobalt .content h4,
[class*="wp-block-shipstation-"] .bg-deep-indigo .content h1,
[class*="wp-block-shipstation-"] .bg-deep-indigo .content h2,
[class*="wp-block-shipstation-"] .bg-deep-indigo .content h3,
[class*="wp-block-shipstation-"] .bg-deep-indigo .content h4,
[class*="wp-block-shipstation-"] .bg-cobalt .content h1,
[class*="wp-block-shipstation-"] .bg-cobalt .content h2,
[class*="wp-block-shipstation-"] .bg-cobalt .content h3,
[class*="wp-block-shipstation-"] .bg-cobalt .content h4 {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    color: #ffffff;
}

.bg-dark-cobalt [class*="wp-block-shipstation-"] .content .lead,
.bg-dark-cobalt [class*="wp-block-shipstation-"] .content .lead,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content .lead,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content .lead,
.bg-cobalt [class*="wp-block-shipstation-"] .content .lead,
.bg-cobalt [class*="wp-block-shipstation-"] .content .lead,

[class*="wp-block-shipstation-"] .bg-dark-cobalt .content .lead,
[class*="wp-block-shipstation-"] .bg-deep-indigo .content .lead,
[class*="wp-block-shipstation-"] .bg-cobalt .content .lead {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    color: #ffffff;
}

.bg-dark-cobalt [class*="wp-block-shipstation-"] .content .secondary,
.bg-dark-cobalt [class*="wp-block-shipstation-"] .content .secondary,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content .secondary,
.bg-deep-indigo [class*="wp-block-shipstation-"] .content .secondary,
.bg-cobalt [class*="wp-block-shipstation-"] .content .secondary,
.bg-cobalt [class*="wp-block-shipstation-"] .content .secondary,

[class*="wp-block-shipstation-"] .bg-dark-cobalt .content .secondary,
[class*="wp-block-shipstation-"] .bg-deep-indigo .content .secondary,
[class*="wp-block-shipstation-"] .bg-cobalt .content .secondary {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    color: #ffffff;
}
