body {
    position: relative;
}

#merchant-select {
    display: none;
}

/*body[data-fancy-form-rcs="1"] .select2-container--default .select2-selection--single {*/
/*    border: none !important;*/
/*}*/
body .fancy-select-wrap .sandbox-switcher-container .select2-selection--single {
    height: 40px;
    align-items: center;
    border: none !important;
    background: #f2f2f2;
}
body .fancy-select-wrap .sandbox-switcher-container .select2-selection--single.loading {
    opacity: 0.7;
    cursor: progress;
    background: #fff !important;
    color: #bfbfbf !important;
}
.sandbox-switcher-container .select2-selection__rendered {
    line-height: 40px;
    padding-left: 10px;
    display: flex !important;
    align-items: center;
}
.sandbox-switcher-container .select2-selection__rendered .merchant-selected {
    width: 100%;
    position: relative;
    text-align: left;
}
.sandbox-switcher-container .select2-selection__rendered .merchant-selected .merchant-title {
    display: inline-block;
    font-size: 18px;
    margin-right: 10px;
}
.sandbox-switcher-container .select2-selection__rendered .merchant-selected .merchant-status-dot {
    position: relative;
    top: -2px;
}
.sandbox-switcher-container .select2-selection__rendered .merchant-selected .merchant-status {
    position: relative;
    top: -3px;
}
.sandbox-switcher-container .select2-selection__rendered .merchant-selected .badge {
    top: 5px;
}
.sandbox-switcher-container .select2-selection__arrow {
    height: 40px;
}
.sandbox-switcher-container .select2-results__option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.sandbox-switcher-container .select2-results__option .merchant-child {
    margin-left: 15px;
}
.sandbox-switcher-container .select2-results__option[aria-selected=true] {
    background-color: #f0f0f0;
}
.sandbox-switcher-container .merchant-title {
    font-weight: bold;
    display: block;
}
.sandbox-switcher-container .merchant-code {
    color: #989898;
}
.sandbox-switcher-container .merchant-status,
.sandbox-switcher-container .merchant-code {
    font-size: 11px;
}
.sandbox-switcher-container .badge {
    background-color: #e0e0e0;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: bold;
    color: white;
    margin-left: 10px;
    position: absolute;
    right: 2px;
    top: 30%;
    display: block;
    line-height: 18px;
}
.sandbox-switcher-container .badge.parent {
    background-color: #a55eea; /* Purple */
}
.sandbox-switcher-container .badge.child {
    background-color: #74b9ff; /* Blue */
}
.sandbox-switcher-container .badge.sandbox {
    background-color: #fdcb6e; /* Orange */
}
.sandbox-switcher-container .merchant-status-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.sandbox-switcher-container .merchant-status-dot.orange {
    background-color: orange;
}
.sandbox-switcher-container .merchant-status-dot.green {
    background-color: green;
}
.merchant-switch-status {
    font-size: 11px;
    padding: 5px;
}
.merchant-switch-status.error {
    color: red;
}
.merchant-switch-status.success {
    color: green;
}

/* Copy to clipboard */
/*.copy {*/
/*    cursor: pointer;*/
/*}*/
/*.copy:hover {*/
/*    text-decoration: underline;*/
/*}*/
.copy-tooltip {
    text-align: center;
    min-width: 72px;
    position: absolute;
    background: #333;
    border-radius: 7px;
    padding: 4px 10px;
    font-size: 12px;
    color: #fff;
    z-index: 999;
}
.copy-tooltip:before {
    content : " ";
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #333;
    position: absolute;
    bottom: -5px;
    left: 41%;
}

.bg-processes {
    position: fixed;
    top: 45px;
    right: 25px;
    z-index: 9999;
    width: 400px;
}

.bg-process {
    margin: 10px;
    width: 100%;
    display: block;
    background: #ddd;
    -webkit-box-shadow: 0 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0);
    box-shadow: 0 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0);
}

p.bg-process-label {
    padding: 5px;
    font-weight: bold;
    text-align: center;
}

.progress-bar-container,
.progress-bar-completed {
    /* width: 300px; */
    height: 30px;
    border: 1px solid #ccc;
    margin: 20px 0;
    position: relative;
    text-align: center;
    margin-top: 0;
}

.progress-bar {
    background-color: #4CAF50;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    height: 30px;
}

.export-file-download.loading {
    cursor: progress;
    opacity: 0.7;
}

.code-block {
    position: relative;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 1em;
    border-radius: 6px;
    font-family: monospace;
    margin: 1em 0;
    overflow-x: auto;
}

.code-display {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.5;
}

.copy-button {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    background: #eee;
    border: 1px solid #aaa;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
}
.component-preview {
    pointer-events: none;
}