/* Basic styling for the freshenup settings page */


.revisions-diff {
	padding: 25px;
    font-size: 15px;
	line-height: 170%;
}

.revisions-diff p {
	padding-left:0;
	font-size: 15px;
	line-height: 170%;
}

.revisions-diff h1, .revisions-diff h2, .revisions-diff h3, .revisions-diff h4, .revisions-diff h5, .revisions-diff h6 {
    padding-left:0;
}

.revisions-diff .summary_changes {
	  padding: 0 30px;
      max-width: 1200px;
}

.revisions-diff img {
	max-width: 100%;
	height: auto;
}

.revisions-diff iframe,
.revisions-diff video,
.revisions-diff img,
.revisions-diff div,
.revisions-diff figure,
.revisions-diff embed,
.revisions-diff object,
.revisions-diff canvas,
.revisions-diff blockquote,
.revisions-diff a,
.revisions-diff span {
  position: relative !important;
}

.revisions-diff pre {
	white-space: pre-wrap;
	word-break: break-word;
	overflow-x: auto;
	max-width: 100%;
	box-sizing: border-box;
	padding-left: 20px;
}

.revisions-diff svg {max-width: 25px;}

.freshenup-feedback-thumbs {width:25px;height:auto;margin-right:10px}

.thumbs-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 9px;
  }

  .thumb-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
  }

  .thumb-label input[type="radio"] {
    display: none;
  }

  .thumb-label svg {
    fill: #ccc;
    transition: fill 0.2s ease;
  }

  .thumb-label input[type="radio"]:checked + svg {
    fill: #28a745; /* green for thumbs up */
  }

  .thumb-label:nth-child(2) input[type="radio"]:checked + svg {
    fill: #dc3545; /* red for thumbs down */
  }
  .freshenup_settings_form form.freshenup_feedback-form {  border: none;}
  
  .freshenup-custom-update-container {
        margin-top:25px;
        background:white;
        border:1px solid #c3c4c7;
        box-shadow: 0 1px 1px rgba(0,0,0,.04);
    }
    .freshenup-custom-update-description {
        font-size:16px;
    }
    #freshenup-custom-update-form {
	border: 0;
	padding: 20px;
}
        .freshenup-input-group {
            margin-bottom: 15px;
            position: relative;
        }
        .freshenup-input-wrapper {
            display: flex;
            align-items: center;
        }
        .freshenup-validation-status {
            margin-left: 10px;
            min-width: 20px;
        }
        .freshenup-post-title {
            margin-top: 5px;
            font-style: italic;
        }
        .freshenup-buttons-row {
            margin: 20px 0;
            display: block;
        }
        .freshenup-buttons-row .button {
            display: block;
            margin-bottom:30px;
        }
        .freshenup-progress {
            display: flex;
            align-items: center;
            margin: 20px 0;
        }
        .freshenup-progress .spinner {
            float: none;
            margin-right: 10px;
        }
        .freshenup-result-messages {
            margin-top: 20px;
        }
        .freshenup-success {
            color: green;
        }
        .freshenup-error {
            color: red;
        }
        .freshenup-progress.hidden {
            display: none;
        }
        .dashicons, .dashicons-before::before {
            vertical-align:text-top;
        }

/*.revisions-diff .button {
    margin-right:7px;
}*/

/*.revisions-diff .button a {
    text-decoration:none !important;
}*/

.revisions-diff .freshenup_button_link {
    margin-right:7px;
}

.revisions-diff a.freshenup_button_link {
    text-decoration:none !important;
}

.freshenup_reject {
    border-color: red !important;
}

.freshenup_reject a {
    color: red !important;
}

.freshenup_settings_form h2 {
    color: #333;
    font-size: 20px;
}

.freshenup_settings_form input[type="checkbox"] {
    margin-right: 5px;
}

.freshenup_settings_form select {
    margin: 5px 0;
    width: 100%;
    max-width: 300px;
}

.freshenup_nav_tab_wrapper .freshenup_nav_tab {
    margin: 0 5px 0 0;
    padding: 6px 10px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
}

.freshenup_nav_tab_wrapper .freshenup_nav_tab_active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
}

.freshenup_settings_form .form-table td {
	line-height: 2;
}

.freshenup_settings_form .form-table th {
	width:25%;
}

.freshenup_settings_form form {
	background: white;
	margin-top: 20px;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.freshenup_settings_form p, .freshenup_settings_form table, .freshenup_settings_form h1, .freshenup_settings_form h2, .freshenup_settings_form h3, .freshenup_settings_form h4, .freshenup_settings_form h5, .freshenup_settings_form h6, .freshenup_settings_form ul {
    padding-left: 20px;
}

.freshenup_settings_form input[type="range"] {
    width: 100%;
    max-width:300px;
}

.freshenup_settings_form .form-table {
    border-spacing: 0 20px;
      border-collapse: separate;
}

.freshenup_settings_form form img {
	width: 250px !important;
	height: auto;
	display: block;
}

.freshenup_settings_form .wrap_themes {
    display:flex;
    flex-wrap: wrap;
    gap: 20px;
}

.freshenup_settings_form .wrap_themes input {
     margin-left: 10px;
}

.freshenup_dashboard_tokens {
	width: 100%;
    font-size: 15px;
    font-weight:600;
	display: block;
	background: white;
	padding: 10px;
	box-sizing: border-box;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	margin-top: 30px;
}

.freshenup_settings_form h2.freshenup_settings_title.subtitle {
    font-size: 23px;
    font-weight: 400;
    padding:0;
    line-height: 1.3; 
    margin-top: 30px;
}

.freshenup_settings_form ul {
  list-style: disc;
  margin-top:0;
}

#freshenup_meta_box ul {
  list-style: disc;
  list-style-position: inside;
}

.item-freshenup-meta-box {
    display: block; line-height: 30px; min-height: 32px; padding: 10px 0;font-weight:600;
}

.freshenup-customization-control .customization-options {
    display: inline-block;
}

.freshenup-toggle-customization {
    display:inline-block;
    margin: 0 125px 0 120px;
    font-style: italic;
    vertical-align: top;
}

.freshenup-customization-control-flex {
    /*display: flex;
    justify-content: space-evenly;*/
}
.freshenup-customization-control label {
    display: inline-block;
	vertical-align: top;
    padding-bottom: 10px;
}

.freshenup-customization-control {
    border-top: 1px solid #c3c4c7;
      margin-bottom: 20px;
}

#wp-freshenup_summary_editor-editor-container {
	margin-bottom: 20px;
}

#freshenup_loadingIndicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 4px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: freshenup_spin 1s ease-in-out infinite;
    margin:auto;
}

@keyframes freshenup_spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


@media(max-width:768px){
    .freshenup-toggle-customization {
    	display: block;
    	margin: 10px 0 20px 0;
    }
    
    .freshenup_settings_form .wrap_themes {
    display:block;
    }
    .freshenup_settings_form form img {
	width: 90% !important;
	margin-top: 10px;
    }
    .freshenup_settings_form .form-table th,.freshenup_settings_form .form-table td {
	width: 95%;
	margin-bottom: 10px;
    }
    .wrap.freshenup_settings_form input, .wrap.freshenup_settings_form select {
	max-width: 90% !important;
    }
    .freshenup_settings_form p, .freshenup_settings_form table, .freshenup_settings_form h2 {
	padding-left: 10px;
    }
}


.freshenup-highlight {
    position: relative;
    background-color: #cff5d5;
    border-radius: 4px;
    padding-right: 20px;
    transition: opacity 0.7s ease, max-height 0.7s ease, margin 0.7s ease, padding 0.7s ease;
    overflow: hidden;
}

span.freshenup-highlight {
	padding-right: 0;
}

/* Floating delete button in bottom right */
.freshenup-highlight .freshenup-delete {
    position: absolute !important;
    top: 6px;
    right:6px;    
    background: #d00;
    color: #fff;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.9;
    z-index: 10;
    display: none;
    line-height: 1;
}

/* Show on hover */
.freshenup-highlight:hover .freshenup-delete {
    display: block;
}


.freshenup-highlight.freshenup-fadeout {
    opacity: 0;
    max-height: 80px;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}