#trbb-builder {
    max-width: 650px;
}

.trbb-global input[type=text] {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    height: 40px;
    border-radius: 4px;
    font-size: 16px;
}

.trbb-global {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.logocontrol p label {
display:block;
}

.logo-upload-sec {
    display: flex;
    gap: 10px;
}

.logocontrol input[type="number"] {
    color: #000;
    width: 70px;
    height: 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    padding-left: 9px;
}

button#trbb-upload-logo {
    background: #65a0d6;
    font-size: 16px;
    color: #fff;
    padding: 9px 14px 7px;
    border: 0;
    border-radius: 4px;
    font-weight: 600;
    height: 40px;
}

.logocontrol {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top:10px;
}

select#trbb-logo-position {
    height: 40px;
    width: 115px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    padding-left: 6px;
}

.trbb-global>div:nth-child(1) {
    width: calc(40% - 10px);
}

.global-logo {
    width: calc(60% - 10px);
}

div#trbb-logo-preview img {
    width: 45px;
}

#trbb-preview {
    margin-top: 20px;
}

.trbb-block {
      position: relative;
    padding: 30px 20px;
    background: #27538c;
    text-align:center;
    cursor: pointer;
}

.trbb-block p {
    padding: 0;
}


.trbb-actions {
    position: absolute;
    top: 5px;
    left: -31px;
    top: 50%;
    transform: translateY(-50%);
}

.trbb-actions span {
    display: block;
    cursor: pointer;
    margin-left: 6px;
    font-size: 14px;
}

#trbb-settings-panel {
    position: fixed;
    overflow:auto;
    right: 20px;
    top: 60px;
    width: 220px;
    max-height:90vh;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
}

#trbb-settings-panel input {
    width: 100%;
    margin-bottom: 10px;
}

div#trbb-settings-panel h4 {
    color: #27538c;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
}
div#trbb-settings-panel label {
    font-weight: 600;
    color: #25456c;
    font-size: 15px;
}

.trbb-color-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

#trbb-settings-panel input[type="color"], .trbb-color-group input[type="color"] {
    width: 32px;
    height: 32px;
    border: 1px solid #25456c;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

.trbb-color-group input[type="color"]::-webkit-color-swatch {
    border-radius: 50%;
    border: none;
}

.trbb-color-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.trbb-color-group input[type="text"] {
    flex: 1;
    padding: 6px;
}

.trbb-block.active {
    outline: 1px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(39, 83, 140, 0.2);
    z-index:999;
}

.trbb-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#trbb-close-settings {
    cursor: pointer;
    padding: 4px 8px;
    color: red;
    position: absolute;
    top: 6px;
    right: 3px;
    font-weight: bold;
    font-size: 15px;
}

#trbb-close-settings:hover {
    background: #f0f0f0;
    border-radius: 4px;
}


#trbb-font-modal {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    max-width:90%;
    max-height: 400px;
    overflow: auto;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    z-index: 9999;
}

#trbb-font-list div {
    padding: 8px;
    cursor: pointer;
}

#trbb-font-list div:hover {
    background: #f5f5f5;
}

div#trbb-font-list {
    color: #000;
}

.trbb-font-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

span#trbb-close-font {
    color: red;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    padding: 4px 8px;
}

#trbb-font-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
}

#trbb-font-list div {
    width: calc(25% - 8px); /* 2 columns */
    padding: 8px;
    cursor: pointer;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 18px;
}

#trbb-font-list div:hover {
    background: #f5f5f5;
}

input#trbb-font-search {
    width: 75%;
    max-width: 250px;
    height: 40px;
    padding: 10px;
    font-size: 16px;
    background: #ffffff;
    border-radius: 4px;
  
}

.trbb-font-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #f2f2f2;
    margin-bottom: 22px;
    position: sticky;
    padding:10px;
}

.trbb-block {
    text-align: center;
}

.trbb-block img {
    display: block;
}

#trbb-palettes-wrapper {
    margin:  0;
}

.trbb-palette {
    display: flex;
    margin-bottom: 0px;
    border-radius: 0px;
    overflow: hidden;
}

.trbb-palette span {
    flex: 1;
    height: 50px;
}

#trbb-palettes-inputs {
    margin-top: 15px;
}

.trbb-palette-input-group {
    margin-bottom: 8px;
}

.trbb-palette-input-group input {
    width: 100%;
    padding: 6px;
}




.trbb-palette-wrap {
    position: relative;
    margin-bottom: 12px;
}

.trbb-remove-palette {
    position: absolute;
    top: -6px;
    right: -6px;
    cursor: pointer;
    font-size: 14px;
    background: #fff;
    border-radius: 50%;
    padding: 2px 5px;
}

.trbb-palette-input-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

#trbb-palette-input {
    flex: 1;
    padding: 6px;
}

#trbb-add-palette {
    padding: 6px 10px;
    cursor: pointer;
}

.trbb-edit-palette {
    position: absolute;
    top: -6px;
    left: -6px;
    cursor: pointer;
    font-size: 14px;
    background: #fff;
    border-radius: 50%;
    padding: 2px 5px;
}

span.trbb-remove-palette-input {
    position: absolute;
    font-size: 11px;
    cursor: pointer;
}

.trbb-actions-bar {
    margin-top: 22px;
    margin-bottom: 22px;
}
.trbb-actions-bar button {
    margin-right: 10px;
    padding: 6px 12px;
    cursor: pointer;
}

#trbb-save-msg {
    margin-top: 15px;
    font-size: 16px;
    color: #ffffff;
    display: none;
}
.trbb-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: trbb-spin 0.6s linear infinite;
    margin-left: 6px;
}

.select2-container {
    min-width: 250px;
}

@keyframes trbb-spin {
    to { transform: rotate(360deg); }
}

.trbb-admin-tools {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.trbb-select-wrap {
    position: relative;
    display: inline-block;
}

.trbb-spinner.small {
    position: absolute;
    top: 12px;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: trbb-spin 0.6s linear infinite;
    display: none;
}

@keyframes trbb-spin {
    to { transform: rotate(360deg); }
}

.trbb-admin-tools div {
    position: relative;
}

.trbb-actions-bar button {
    padding: 10px 20px;
    background: #1ec873;
    border-radius: 12px;
    border: none;
    color: #fff;
    font-size: 17px;
    border: 2px solid #1ec873;
    font-weight: 500;
}

.trbb-actions-bar button:hover {
    background: #ffffff;
    color: #1ec873;
    
}

.trbb-admin-tools {
    background: #27538c;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
}

.usrodown {
    width: 100%;
}

.usrodown strong {
    width: 175px;
    display: inline-block;
    vertical-align: middle;
}

input#trbb-subheading2{
    display:none;
}

.trbb-font-input {
    cursor:pointer;
}