/* ========================
   Form Layout & Inputs
======================== */

#sell-detailed-info-form label {
    color: #000;
}

.sell-form input[type="text"],
.sell-form input[type="number"],
.sell-form textarea,
.sell-form select {
    width: 100%;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
    padding: 10px 12px;
    border: 1.8px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s;
}
.sell-form__group{
  margin-bottom: 20px;
}
.sell-form__wrapper .elementor-button{
    background: #e4ad52;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 8px;
    border: none;
    border-radius: 40px;
}
.sell-form__wrapper button.sell-button.sell-button--submit{
    background: #e4ad52;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 40px;
}
.sell-form__wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
div#video-rows .sell-video__row, div#files-rows .sell-file__row {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
/* ========================
   Featured Image Upload
======================== */

.sell-featured__upload {
    border: 1px solid #ccc;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    max-width: 100%;
}

.sell-featured__instruction {
    font-size: 14px;
}

.sell-image__preview {
    margin-top: 15px;
}

.sell-image__preview img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: block;
}

/* ========================
   File Upload (Gallery)
======================== */

.sell-gallery__upload, .sell-featured__upload {
    border: 2px dashed #ccc;
    padding: 20px;
    border-radius: 6px;
    position: relative;
    background: #fafafa;
}

.sell-drop__area, #featured-drop-area {
    text-align: center;
    padding: 20px;
    cursor: pointer;
    position: relative;
}

.sell-gallery__preview-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 10px;
}

.sell-gallery__item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.sell-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sell-button--remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255, 0, 0, 0.75);
    color: white;
    border: none;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
}

/* ========================
   Video Input Row
======================== */

.sell-video__row, .sell-file__row {
    margin-bottom: 10px;
    position: relative;
}

.sell-video__url {
    padding: 5px;
    font-size: 16px;
    width: 65%;
}

.sell-video__input {
    display: none;
}

/* ========================
   Buttons
======================== */

.sell-button {
    background-color: #0073aa;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
}



.sell-button--upload {
    background-color: #0073aa;
}

.sell-button--delete {
    background-color: #dc3545;
    color: #fff;
}

.sell-button--submit {
    background: #e4ad52;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 40px;
}

#add-video-row, #add-file-row {
    background: #e4ad52;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 40px;
}


/* ========================
   Alerts
======================== */

.sell-alert--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #155724;
    font-size: 15px;
}
.invalid-feedback {
    color: red;
    font-size: 16px;
    padding: 10px 0;
}

/* ========================
   Select2 (if used)
======================== */

.select2-container .select2-selection--multiple {
    font-size: 14px;
}

/* ========================
  Price
======================== */
.sell-form__group.form__group_side_by_side {
    display: flex;
    gap: 20px;
}
.sell-form__group.form__group_side_by_side div {
    flex: 1;
}

#html-loader-detailed .loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#html-loader-detailed .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #e4ad52; /* brand orange */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Overlay */
.keywords-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* Popup Container */
.keywords-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

/* Inner Box */
.keywords-popup .popup-box {
  background: #fff;
  padding: 20px 20px 15px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Title and Paragraph */
.keywords-popup h3 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 10px;
}
.keywords-popup p {
  font-size: 14px;
  margin-bottom: 10px;
}

/* Buttons */
.popup-actions {
  text-align: right;
  margin-top: 12px;
}
.popup-actions button {
  padding: 6px 12px;
  border: none;
  margin-left: 8px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}
#submit-popup {
  background-color: #0073aa;
  color: #fff;
}
#cancel-popup {
  background-color: #ccc;
  color: #000;
}

/* Close (X) button */
.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  color: #666;
  cursor: pointer;
}

/*Truck mounted css*/
#truck_info{
    border: 1px dashed rgb(204, 204, 204);
    border-radius: 5px;
    padding: 15px;
    background: rgb(255, 255, 255);
    margin-bottom: 20px;
}
#truck_info > span{
    margin-bottom: 15px;
    display: block;
    font-size: 16px;
    color: #999;
}
#truck_info span.select2-selection__rendered{
  padding-top:4px;
  padding-bottom:4px;
}