/* ═══════════════════════════════════════════
   Shipper Account Block — Frontend Styles
   All selectors scoped to .csa-shipper-block
   to avoid theme style conflicts
   ═══════════════════════════════════════════ */

.csa-shipper-block {
    margin: 16px 0;
    font-family: inherit;
}

/* Checkbox row */
.csa-shipper-block .csa-checkbox-row {
    margin-bottom: 0;
}
.csa-shipper-block .csa-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-size: 1em !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    /* Reset any theme heading styles */
    letter-spacing: normal !important;
    text-transform: none !important;
    color: inherit !important;
}
.csa-shipper-block .csa-checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    accent-color: #7f54b3;
}

/* Fields wrapper */
.csa-shipper-block .csa-fields-wrapper {
    margin-top: 16px !important;
    padding: 20px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background: #fafafa !important;
    display: block !important;
    overflow: hidden !important;
}

/* Individual field */
.csa-shipper-block .csa-fields-wrapper .csa-field {
    margin-bottom: 15px !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
}
.csa-shipper-block .csa-fields-wrapper .csa-field:last-child {
    margin-bottom: 0 !important;
}

/* Label — explicitly reset all theme heading styles */
.csa-shipper-block label.csa-label {
    display: block !important;
    width: 100% !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    margin: 0 0 7px 0 !important;
    padding: 0 !important;
    color: #333 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    border: none !important;
    background: none !important;
    float: none !important;
    clear: both !important;
}
.csa-shipper-block .csa-label abbr {
    color: #cc0000;
    text-decoration: none;
    margin-left: 2px;
    font-style: normal;
}

/* Hint text — must be its own block element BELOW the label */
.csa-shipper-block .csa-hint {
    font-weight: normal !important;
    font-style: italic !important;
    color: #888 !important;
    font-size: 0.7em !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    float: none !important;
    clear: both !important;
}

/* Inputs & Selects */
.csa-shipper-block .csa-input,
.csa-shipper-block .csa-select {
    display: block !important;
    width: 100% !important;
    padding: 9px 12px !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    color: #333 !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.csa-shipper-block .csa-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='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
}
.csa-shipper-block .csa-input:focus,
.csa-shipper-block .csa-select:focus {
    outline: none !important;
    border-color: #7f54b3 !important;
    box-shadow: 0 0 0 2px rgba(127,84,179,0.2) !important;
}

/* File upload */
.csa-shipper-block .csa-file-input {
    display: block !important;
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 0.875rem !important;
    font-family: inherit !important;
    color: #555 !important;
    background: #fff !important;
    border: 2px dashed #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: border-color 0.2s, background 0.2s;
}
.csa-shipper-block .csa-file-input:hover {
    border-color: #7f54b3 !important;
    background: #f9f7fd !important;
}

/* ═══════════════════════════════════════════
   Editor Preview Styles
   ═══════════════════════════════════════════ */
.csa-editor-preview {
    border: 2px dashed #7f54b3;
    border-radius: 6px;
    padding: 16px;
    background: #f9f7fd;
    pointer-events: none;
}
.csa-preview-badge {
    display: inline-block;
    background: #7f54b3;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.csa-preview-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9em;
    color: #444;
}
.csa-preview-fields {
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.csa-preview-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.csa-preview-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #333;
}
.csa-preview-hint {
    font-weight: normal;
    font-style: italic;
    color: #999;
    font-size: 0.85em;
}
.csa-preview-select,
.csa-preview-input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.82em;
    background: #f5f5f5;
    color: #999;
    width: 100%;
    box-sizing: border-box;
}
