/**
 * Shortcode Generator — admin only.
 * Scoped under .bw-shortcode-generator-page-v2
 */

.bw-shortcode-generator-page-v2.bw-sc-page-root {
    padding: 0 !important;
}

.bw-shortcode-generator-page-v2 .bw-full-width-v2 {
    width: 100%;
}

.bw-shortcode-generator-page-v2 .bw-sc-page-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 28px 24px 36px;
    background: #f4f2fb;
    border-radius: 0;
}

/* Top header row */
.bw-shortcode-generator-page-v2 .bw-sc-top-card {
    border: 1px solid #ede8ff !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(87, 0, 180, 0.06) !important;
    margin-bottom: 20px;
}

.bw-shortcode-generator-page-v2 .bw-sc-main-card {
    border: 1px solid #ede8ff !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(87, 0, 180, 0.06) !important;
    margin-bottom: 24px;
}

.bw-shortcode-generator-page-v2 .bw-sc-form-type-card .bw-appearance-form-type-grid {
    margin-top: 8px;
    margin-bottom: 8px;
}

.bw-shortcode-generator-page-v2 .bw-sc-form-type-section {
    margin-top: 0;
    margin-bottom: 24px;
}

.bw-shortcode-generator-page-v2 .bw-sc-main-card > .el-card__body {
    padding: 28px 28px 32px !important;
}

.bw-shortcode-generator-page-v2 .bw-sc-section {
    margin: 0;
}

.bw-shortcode-generator-page-v2 .bw-sc-block-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.bw-shortcode-generator-page-v2 .bw-sc-block-desc {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.bw-shortcode-generator-page-v2 .bw-sc-section-divider {
    height: 1px;
    background: #ede8ff;
    margin: 28px 0;
}

.bw-shortcode-generator-page-v2 .bw-sc-section--customer-panel .bw-sc-customer-panel-card {
    margin-bottom: 14px !important;
}

.bw-shortcode-generator-page-v2 .bw-sc-head-icon-square--panel {
    background: #e8f4ff;
}

.bw-shortcode-generator-page-v2 .bw-sc-head-icon-square--panel .dashicons {
    color: #2563eb;
}

.bw-shortcode-generator-page-v2 .bw-sc-top-card .el-card__body {
    padding: 22px 24px !important;
}

.bw-shortcode-generator-page-v2 .bw-sc-page-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}

.bw-shortcode-generator-page-v2 .bw-sc-page-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #6b7280;
}

.bw-shortcode-generator-page-v2 .bw-sc-top-actions {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.bw-shortcode-generator-page-v2 .bw-sc-btn-primary {
    background-color: #5700b4 !important;
    border-color: #5700b4 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 12px 22px !important;
    font-size: 14px !important;
}

.bw-shortcode-generator-page-v2 .bw-sc-btn-primary:hover,
.bw-shortcode-generator-page-v2 .bw-sc-btn-primary:focus {
    background-color: #450090 !important;
    border-color: #450090 !important;
}

.bw-shortcode-generator-page-v2 .bw-sc-btn-block {
    width: 100%;
    margin-top: 8px;
}

/* Panel cards */
.bw-shortcode-generator-page-v2 .bw-sc-panel-card {
    border: 1px solid #ede8ff !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(87, 0, 180, 0.06) !important;
    margin-bottom: 24px;
}

.bw-shortcode-generator-page-v2 .bw-sc-panel-card .el-card__header {
    border-bottom: 1px solid #f0ecff;
    padding: 18px 22px;
}

.bw-shortcode-generator-page-v2 .bw-sc-panel-card .el-card__body {
    padding: 22px 22px 24px !important;
}

.bw-shortcode-generator-page-v2 .bw-sc-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 17px;
    color: #1a1a1a;
}

.bw-shortcode-generator-page-v2 .bw-sc-card-head--plain {
    margin-bottom: 6px;
    align-items: flex-start;
}

/* Icon squares (reference: tinted tile + symbol) */
.bw-shortcode-generator-page-v2 .bw-sc-head-icon-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.bw-shortcode-generator-page-v2 .bw-sc-head-icon-square .dashicons {
    line-height: 1;
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.bw-shortcode-generator-page-v2 .bw-sc-head-icon-square--filter {
    background: #ede8ff;
}

.bw-shortcode-generator-page-v2 .bw-sc-head-icon-square--filter .dashicons {
    color: #5700b4;
}

.bw-shortcode-generator-page-v2 .bw-sc-head-icon-square--code {
    background: #ffe8d4;
}

.bw-shortcode-generator-page-v2 .bw-sc-head-icon-square--code .dashicons {
    color: #c2410c;
}

.bw-shortcode-generator-page-v2 .bw-sc-section-title {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

.bw-shortcode-generator-page-v2 .bw-sc-section-desc {
    margin: 0 0 18px 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.bw-shortcode-generator-page-v2 .bw-sc-field {
    margin-bottom: 22px;
}

.bw-shortcode-generator-page-v2 .bw-sc-label {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #374151;
}

/* Select inputs — light purple tint */
.bw-shortcode-generator-page-v2 .bw-sc-select-field .el-input__wrapper {
    background-color: #f3ecff !important;
    border: 1px solid #e4d4ff !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    min-height: 44px;
}

.bw-shortcode-generator-page-v2 .bw-sc-select-field .el-input__inner {
    color: #1f2937;
}

/* Shortcode bar — light field + thick purple left accent (reference) */
.bw-shortcode-generator-page-v2 .bw-sc-shortcode-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    margin: 10px 0 0 0;
    min-height: 54px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(87, 0, 180, 0.08);
}

.bw-shortcode-generator-page-v2 .bw-sc-code-wrap {
    background: #f5f0ff;
    padding: 0 18px 0 16px;
    display: flex;
    align-items: center;
    min-height: 54px;
    border-left: 5px solid #5700b4;
    border-top: 1px solid #e8dff8;
    border-bottom: 1px solid #e8dff8;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.bw-shortcode-generator-page-v2 .bw-sc-code-wrap code {
    margin: 0;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 15px;
    font-weight: 600;
    color: #5700b4;
    background: transparent;
    word-break: break-all;
}

.bw-shortcode-generator-page-v2 .bw-sc-copy-btn {
    border-radius: 0 10px 10px 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 54px;
    padding: 0 22px !important;
    background-color: #5700b4 !important;
    border: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #5700b4 !important;
    border-bottom: 1px solid #5700b4 !important;
    border-right: 1px solid #5700b4 !important;
}

.bw-shortcode-generator-page-v2 .bw-sc-copy-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.bw-shortcode-generator-page-v2 .bw-sc-copy-btn:hover,
.bw-shortcode-generator-page-v2 .bw-sc-copy-btn:focus {
    background-color: #450090 !important;
}

/* Option row price tag */
.bw-shortcode-generator-page-v2 .sc-price-tag-v2 {
    font-size: 12px;
    background: #ede8ff !important;
    padding: 2px 8px;
    border-radius: 6px;
    color: #5700b4 !important;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

.bw-shortcode-generator-page-v2 .sc-option-item-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.bw-shortcode-generator-page-v2 .sc-option-item-v2 > span:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bw-sc-popper .el-select-dropdown__item {
    height: auto !important;
    line-height: 1.4 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Info notice — separate bar below preview card (reference) */
.bw-shortcode-generator-page-v2 .bw-sc-preview-card {
    margin-bottom: 14px !important;
}

.bw-shortcode-generator-page-v2 .bw-sc-info-bar {
    margin-top: 0;
}

.bw-shortcode-generator-page-v2 .bw-sc-behavior-alert.el-alert {
    border: none;
    border-radius: 12px;
    background: #f0ebff;
    color: #374151;
    padding: 16px 18px;
    align-items: flex-start;
}

.bw-shortcode-generator-page-v2 .bw-sc-behavior-alert .el-alert__title {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.bw-shortcode-generator-page-v2 .bw-sc-behavior-alert.el-alert--success {
    background: #ecfdf5;
}

.bw-shortcode-generator-page-v2 .bw-sc-behavior-alert.el-alert--info .el-alert__icon {
    color: #ffffff !important;
    background: #5700b4;
    border-radius: 50%;
    width: 26px !important;
    height: 26px !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.bw-shortcode-generator-page-v2 .bw-sc-behavior-alert.el-alert--info .el-alert__icon svg {
    color: #ffffff;
    fill: currentColor;
}

.bw-shortcode-generator-page-v2 .bw-sc-behavior-alert.el-alert--success .el-alert__icon {
    color: #059669;
    background: #d1fae5;
    border-radius: 50%;
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .bw-shortcode-generator-page-v2 .bw-sc-top-actions {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .bw-shortcode-generator-page-v2 .bw-sc-shortcode-bar {
        grid-template-columns: 1fr;
    }

    .bw-shortcode-generator-page-v2 .bw-sc-code-wrap {
        border-radius: 10px 10px 0 0;
        border-right: 1px solid #e8dff8;
    }

    .bw-shortcode-generator-page-v2 .bw-sc-copy-btn {
        width: 100%;
        justify-content: center;
        border-radius: 0 0 10px 10px !important;
        border-left: 1px solid #5700b4 !important;
    }
}