/* Crazy Coral Wholesale — Frontend Styles
   Dark theme: background #0d0d0d / cards #1a1a1a
   Brand colours: red #EE3451, background #0d0d0d / #141414 / #1a1a1a
*/

.ccw-application-form-wrap,
.ccw-notice {
    --ccw-bg-raised:    #1a1a1a;
    --ccw-bg-input:     #222222;
    --ccw-border:       rgba(255,255,255,0.12);
    --ccw-border-focus: #EE3451;
    --ccw-text:         #f0f0f0;
    --ccw-text-muted:   rgba(240,240,240,0.55);
    --ccw-accent:       #EE3451;
    --ccw-accent-dark:  #c4243d;
    --ccw-error-bg:     rgba(220,50,50,0.12);
    --ccw-error-border: rgba(220,50,50,0.4);
    --ccw-error-text:   #f08080;
    --ccw-radius:       6px;
}

.ccw-application-form-wrap {
    max-width: 660px;
    color: var(--ccw-text);
    font-size: 15px;
    line-height: 1.6;
}

/* Fieldsets */

.ccw-application-form fieldset {
    border: 1px solid var(--ccw-border);
    border-radius: var(--ccw-radius);
    padding: 24px 24px 8px;
    margin-bottom: 20px;
    background: var(--ccw-bg-raised);
}

.ccw-application-form legend {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0 10px;
    color: var(--ccw-accent);
}

/* Form rows */

.ccw-form-row {
    margin-bottom: 18px;
}

.ccw-form-row:last-child {
    margin-bottom: 0;
}

.ccw-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--ccw-text-muted);
    letter-spacing: 0.02em;
}

/* Inputs */

.ccw-form-row input[type="text"],
.ccw-form-row input[type="email"],
.ccw-form-row input[type="tel"],
.ccw-form-row input[type="password"],
.ccw-form-row select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--ccw-border);
    border-radius: var(--ccw-radius);
    font-size: 15px;
    color: var(--ccw-text);
    background: var(--ccw-bg-input);
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.ccw-form-row input[type="text"]::placeholder,
.ccw-form-row input[type="email"]::placeholder,
.ccw-form-row input[type="tel"]::placeholder,
.ccw-form-row input[type="password"]::placeholder {
    color: rgba(240,240,240,0.25);
}

.ccw-form-row input:focus,
.ccw-form-row select:focus {
    outline: none;
    border-color: var(--ccw-border-focus);
    box-shadow: 0 0 0 3px rgba(238,52,81,0.15);
}

.ccw-form-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231db8a0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 56px;
    cursor: pointer;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.ccw-form-row select option {
    background: #1a1a1a;
    color: #f0f0f0;
}

/* Required asterisk */

.ccw-required {
    color: var(--ccw-accent);
    margin-left: 3px;
}

/* Checkboxes */

.ccw-fieldset--consents .ccw-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 16px;
    cursor: pointer;
    color: var(--ccw-text-muted);
}

.ccw-fieldset--consents .ccw-checkbox-label:last-child {
    margin-bottom: 0;
}

.ccw-fieldset--consents .ccw-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--ccw-accent);
}

.ccw-fieldset--consents .ccw-checkbox-label a {
    color: var(--ccw-accent);
    text-decoration: none;
}

.ccw-fieldset--consents .ccw-checkbox-label a:hover {
    text-decoration: underline;
}

/* Notices */

.ccw-notice {
    padding: 14px 18px;
    border-radius: var(--ccw-radius);
    margin-bottom: 24px;
    font-size: 14px;
}

.ccw-notice--error {
    background: var(--ccw-error-bg);
    border: 1px solid var(--ccw-error-border);
    color: var(--ccw-error-text);
}

.ccw-notice ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.ccw-notice li {
    margin-bottom: 4px;
}

/* Submit button */

.ccw-form-submit {
    margin-top: 24px;
}

.ccw-button {
    display: inline-block;
    padding: 13px 32px;
    border: none;
    border-radius: var(--ccw-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.1s;
}

.ccw-button--primary {
    background: var(--ccw-accent);
    color: #ffffff;
}

.ccw-button--primary:hover {
    background: var(--ccw-accent-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.ccw-button--primary:active {
    transform: translateY(0);
}

/* Inline approved/pending messages */

.ccw-application-form-wrap p a {
    color: var(--ccw-accent);
    text-decoration: none;
}

.ccw-application-form-wrap p a:hover {
    text-decoration: underline;
}

/* ── Shop pagination active page fix ───────────────────────────────────── */

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    color: var(--color-text, #f0f0f0) !important;
}

.woocommerce-pagination ul li span.current,
.page-numbers.current {
    background: #0d0d0d !important;
    color: #EE3451 !important;
    border: 2px solid #EE3451 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

/* ── Trade Application — Split Screen Layout ─────────────────────────────── */

.ccw-application-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    margin: 0;
}

.ccw-application-image {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.ccw-application-image__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7,10,13,0.3) 0%,
        rgba(7,10,13,0.6) 100%
    );
}

.ccw-application-image__content {
    position: absolute;
    bottom: 48px;
    left: 48px;
    right: 48px;
    z-index: 2;
}

.ccw-application-image__label {
    font-family: var(--ccw-font-mono, monospace);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ccw-accent, #EE3451);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ccw-application-image__label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--ccw-accent, #EE3451);
}

.ccw-application-image__title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1.15;
    margin: 0 0 16px;
}

.ccw-application-image__sub {
    font-size: 15px;
    color: rgba(240,240,240,0.65);
    line-height: 1.65;
    margin: 0;
    max-width: 340px;
}

.ccw-application-form-wrap {
    padding: 48px;
    overflow-y: auto;
    background: var(--ccw-bg, #141414);
}

/* Remove negative margin on mobile */
@media (max-width: 900px) {
    .ccw-application-split {
        grid-template-columns: 1fr;
        margin: 0;
    }
    .ccw-application-image {
        min-height: 280px;
    }
    .ccw-application-image__content {
        bottom: 32px;
        left: 32px;
        right: 32px;
    }
    .ccw-application-form-wrap {
        padding: 32px 24px;
    }
}

/* ── Trade Application — Hero + Form Layout ─────────────────────────────── */

.ccw-application-wrap {
    margin: 0;
}

.ccw-application-hero {
    position: relative;
    height: 380px;
    background-size: cover;
    background-position: center 40%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 40px;
}

.ccw-application-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(7,10,13,0.75) 0%,
        rgba(7,10,13,0.2) 60%,
        rgba(7,10,13,0.4) 100%
    );
}

.ccw-application-hero__content {
    position: absolute;
    bottom: 40px;
    left: 48px;
    right: 48px;
    z-index: 2;
    max-width: 560px;
}

.ccw-application-hero__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #EE3451;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ccw-application-hero__label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: #EE3451;
    flex-shrink: 0;
}

.ccw-application-hero__title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1.15;
    margin: 0 0 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.ccw-application-hero__sub {
    font-size: 15px;
    color: rgba(240,240,240,0.75);
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.ccw-application-form-wrap {
    padding: 0;
}

@media (max-width: 768px) {
    .ccw-application-hero {
        height: 260px;
        margin-bottom: 28px;
    }
    .ccw-application-hero__content {
        bottom: 24px;
        left: 24px;
        right: 24px;
    }
}

/* ── Shop Page — Coral Banner ────────────────────────────────────────────── */

.ccw-shop-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center 60%;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 8px;
}

.ccw-shop-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(7,10,13,0.82) 0%,
        rgba(7,10,13,0.45) 50%,
        rgba(7,10,13,0.2) 100%
    );
}

.ccw-shop-banner__content {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.ccw-shop-banner__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #EE3451;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ccw-shop-banner__label::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: #EE3451;
    flex-shrink: 0;
}

.ccw-shop-banner__title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: #f0f0f0;
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .ccw-shop-banner {
        height: 200px;
        margin-bottom: 24px;
    }
    .ccw-shop-banner__content {
        bottom: 24px;
        padding: 0 24px;
    }
}

/* ── Add to Existing Order — Checkout Toggle ─────────────────────────────── */

.ccw-add-to-order {
    margin: 0 0 24px;
    padding: 20px 24px;
    background: rgba(238,52,81,0.05);
    border: 1px solid rgba(238,52,81,0.2);
    border-radius: 6px;
}

.ccw-add-to-order__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.ccw-add-to-order__toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #EE3451;
    cursor: pointer;
    flex-shrink: 0;
}

.ccw-add-to-order__label {
    font-size: 15px;
    font-weight: 500;
    color: #f0f0f0;
}

.ccw-add-to-order__fields {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(238,52,81,0.15);
}

.ccw-add-to-order__desc {
    font-size: 13px;
    color: rgba(240,240,240,0.6);
    margin: 0 0 16px;
    line-height: 1.6;
}

.ccw-add-to-order__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ccw-add-to-order__row label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(240,240,240,0.5);
}

.ccw-add-to-order__row input[type="text"] {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(238,52,81,0.3) !important;
    border-radius: 4px !important;
    color: #f0f0f0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 10px 14px !important;
    letter-spacing: 0.05em;
}

.ccw-add-to-order__hint {
    font-size: 12px;
    color: rgba(240,240,240,0.4);
}

/* ── WooCommerce Notice Boxes — Brand Aligned ────────────────────────────── */

/* All WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice,
ul.woocommerce-error,
.wc-block-components-notice-banner,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
    background: #1a1a1a !important;
    border: 1px solid rgba(238,52,81,0.25) !important;
    border-left: 4px solid #EE3451 !important;
    border-radius: 0 6px 6px 0 !important;
    color: #f0f0f0 !important;
    box-shadow: none !important;
    padding: 16px 20px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* Error notices */
.woocommerce-error,
ul.woocommerce-error {
    border-left-color: #dc3232 !important;
    border-color: rgba(220,50,50,0.25) !important;
    color: #f0a0a0 !important;
}

/* Remove the bell/warning icon that Blocksy adds */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-notice::before {
    display: none !important;
}

/* Links inside notices */
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-notice a {
    color: #EE3451 !important;
    text-decoration: none !important;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover,
.woocommerce-notice a:hover {
    text-decoration: underline !important;
}

/* "No products found" notice */
.woocommerce-info.woocommerce-no-products-found,
p.woocommerce-no-products-found,
.woocommerce-store-notice,
.ct-woo-notice {
    background: #1a1a1a !important;
    border: 1px solid rgba(238,52,81,0.25) !important;
    border-left: 4px solid #EE3451 !important;
    border-radius: 0 6px 6px 0 !important;
    color: rgba(240,240,240,0.7) !important;
    box-shadow: none !important;
}

/* Order received notice */
.woocommerce-thankyou-order-received {
    background: #1a1a1a !important;
    border: 1px solid rgba(238,52,81,0.25) !important;
    border-left: 4px solid #EE3451 !important;
    border-radius: 0 6px 6px 0 !important;
    color: #f0f0f0 !important;
    padding: 16px 20px !important;
    box-shadow: none !important;
}

/* ── Checkout Country Selector — Brand Aligned ───────────────────────────── */

.woocommerce-checkout select,
.woocommerce-checkout .select2-container .select2-selection--single,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    background: #1a2030 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 4px !important;
    color: #f0f0f0 !important;
}

/* Select2 dropdown trigger text */
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f0f0f0 !important;
    line-height: 44px !important;
    padding-left: 14px !important;
}

/* Select2 arrow */
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #EE3451 transparent transparent transparent !important;
}

.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #EE3451 transparent !important;
}

/* Select2 dropdown panel */
.select2-dropdown,
.select2-container--default .select2-dropdown {
    background: #1a1a1a !important;
    border: 1px solid rgba(238,52,81,0.25) !important;
    border-radius: 6px !important;
}

/* Select2 search box inside dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: #1a2030 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #f0f0f0 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
}

/* Select2 options */
.select2-container--default .select2-results__option {
    background: #1a1a1a !important;
    color: rgba(240,240,240,0.7) !important;
    padding: 10px 14px !important;
}

/* Select2 option hover */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background: #EE3451 !important;
    color: #ffffff !important;
}

/* Select2 option selected */
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
    background: rgba(238,52,81,0.15) !important;
    color: #EE3451 !important;
}
