
/*--------------------------- 
Add Plugin Front-End CSS here 
---------------------------*/


#cyn-cbh-settings-container input:invalid {
    border: 2px solid maroon;
    background-color: rgb(234, 178, 178);
}

#cyn-cbh-shortcode-explanation {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}
#cyn-cbh-shortcode-explanation h3 {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

#cyn-cbh-shortcode-explanation th, #cyn-cbh-shortcode-explanation td {
    border: 1px solid grey;
    margin: 0;
}

#cyn-cbh-shortcode-explanation td {
    padding: 5px;
}

#cyn-cbh-option-buttons {
    width: fit-content;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

/* UH OH: this needs to be removed once you figure out the fate of alt text */
#cyn-cbh-settings-container .cyn-cbh-alttxt-input {
    display: none;
}
#cyn-cbh-settings-container .cyn-cbh-alttxt-temp-remove {
    display: none !important;
}

#cyn-cbh-settings-container fieldset {
    border: 1px solid black;
}
#cyn-cbh-settings-container .cyn-cbh-form-table {
    width: 100%;
}

#cyn-cbh-settings-container #cyn-cbh-option-shortcode-hints {
    padding-left: 25px;
    padding-right: 25px;
}

#cyn-cbh-settings-container #cyn-cbh-option-css-hints {
    padding-left: 25px;
    padding-right: 25px;
}

#cyn-cbh-option-shortcode-hints dd {
    padding-left: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-left: 5px solid lightgrey;
}

#cyn-cbh-option-css-hints dd {
    padding-left: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-left: 5px solid lightgrey;
}

.cyn-cbh-option-def {
    margin-left: 5px;
    border-left: 5px solid lightgrey;
    padding-left: 10px;
}

.cyn-cbh-option-def ul {
    list-style-type: disc;
    margin-left: 15px;
}

#cyn-cbh-options-header {
    text-align: center;
    margin-bottom: 25px;
}

#cyn_cbh_form {
   display: flex;
   flex-direction: column;
   width: 90%;
   margin-left: auto;
   margin-right: auto; 
}

#cyn-cbh-form-tabs {
    display: flex;
    margin-left: 0;
    padding: 0;
}

#cyn-cbh-form-tabs button {
    margin: 0;
    padding: 10px;
    width: 25%;
    background-color: lightgrey;
    border-top: none;
    border-left: none;
    border-right: 2px dotted grey;
    border-bottom: none;
}

#cyn-cbh-form-tabs button:last-child{
    border: none;
}

#cyn-cbh-no-location-prompt {
    display: none;
    border: 2px solid maroon;
    background-color: lightcoral;
    border-radius: 15px;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 25px;
    margin-bottom: 25px;
}

#cyn-cbh-no-location-prompt legend {
    border: 2px solid maroon;
    background-color: white;
    border-radius: 10px;
    padding-left: 5px;
    padding-right: 5px;
}

#cyn-cbh-no-location-prompt p {
    margin-top: 0.5em;
}

#cyn-cbh-perloc-table {
    width: 100%;
}

#cyn-cbh-location-select {
    width: 100%;
}

#cyn-cbh-settings-container .cyn-cbh-section-content {
    padding: 50px;
    background-color: white;
}

#cyn-cbh-settings-container .cyn-cbh-settings-field {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

#cyn-cbh-settings-container .cyn-cbh-settings-field div {
    width: 20%;
}

#cyn-cbh-settings-container .cyn-cbh-hint {
    text-align: right;
}

#cyn-cbh-settings-container .cyn-cbh-form-input {
    width: 100%;
}

#cyn-cbh-settings-container td.cyn-cbh-btn-col > div {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#cyn-cbh-settings-container .cyn-cbh-setting-desc {
    font-style: italic;
    color: grey;
    margin-bottom: 20px;
}

#cyn-cbh-settings-container .cyn-cbh-nbh-table-row table {
    margin-left: auto;
    margin-right: auto;
}

#cyn-cbh-settings-container .cyn-cbh-alt-table-row table {
    margin-left: auto;
    margin-right: auto;
}

#cyn-cbh-settings-container .cyn-cbh-hr-div {
    margin-top: 1em; margin-bottom: 1em; border-top: 2px dotted grey;
}

#cyn-cbh-settings-container .cyn-cbh-row-alt {
    background-color: lightgrey;
}

#cyn-cbh-perloc-alt-hours-table > tr:nth-child(odd) {
    background-color: lightgrey;
}

#cyn-cbh-settings-container tr.cyn-cbh-table-selector > td {
    text-align: center;
    padding: 10px;
}

.cyn-cbh-table-display {
    border: none !important;
    width: fit-content !important;
}

.cyn-cbh-table-display tr td {
    border: none !important;
}

.cyn-cbh-table-display li {
    list-style-type: none;
}

.cyn-cbh-table-current-day {
    font-weight: bold;
}

.cyn-cbh-table-hours-list {
    padding: 0 !important;
}

#wpfooter {
    position: relative !important;
}

@media only screen and (max-width: 768px) {

    #cyn-cbh-settings-container div.wrap {
        margin: 0 !important;
        padding: 0 !important;
    }

    #cyn-cbh-form-tabs {
        flex-direction: column;
    }
    #cyn-cbh-form-tabs button {
        width: 100%;
    }

    #cyn_cbh_form {
        width: 100%;
        margin: 0;
    }
}