@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --border-radius: 4px;
    --button-background-color: #0073aa;

    --error-background-color: rgba(255,0,0,0.45);
    --error-border-color: #900;
    --error-text-color: white;

    --success-background-color: #e8ffe8;
    --success-border-color: #090;
    --success-text-color: #060;
}

.dhclaim-wrap {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    transition: all .3s ease;
    padding: 0 20px;
    gap: 30px;
    font-size: inherit;
    font-family: "Monterrat", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    letter-spacing: 1px;
}
@media screen and (max-width: 768px) {
    .dhclaim-wrap {
        flex-flow: column wrap;
    }
}
.dhclaim-wrap h1, .dhclaim-wrap h2, .dhclaim-wrap h3, .dhclaim-wrap h4, .dhclaim-wrap h5, .dhclaim-wrap h6 {
    color: inherit;
    color: var(--wp-preset-color-contrast-2);
    font-family: inherit;
    font-weight: 200;
}
.dhclaim-wrap h1 small, .dhclaim-wrap h2 small, .dhclaim-wrap h3 small, .dhclaim-wrap h4 small, .dhclaim-wrap h5 small, .dhclaim-wrap h6 small {
    font-weight: 100;
    color: inherit;
    opacity: 0.7;
}
.dhclaim-wrap * {
    box-sizing: border-box;
}
.dhclaim-wrap p {
    font-weight: 300;
    padding-bottom: 2px;
}
.dhclaim-wrap form p {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
}
.dhclaim-lookup,
.dhclaim-results {
    box-sizing: border-box;
    margin: 0 0 1em 0;
    transition: all .3s ease;
    position: relative;
}
.dhclaim-lookup {
    flex-basis: calc(40% - 30px);;
}
.dhclaim-results:empty {
    flex-basis: 0%;
}
.dhclaim-results {
    flex-basis: 60%;
}
.dhclaim-lookup:has(+.dhclaim-results:empty) {
    flex-basis: 100%;
}
.dhclaim-error {
    padding: .5em 1em 1em 1em;
    border: 1px solid var(--error-border-color);
    background: var(--error-background-color);
    color: var(--error-text-color);
    border-radius: var(--border-radius);
}
p.dhclaim-error {
    padding-bottom: 1em;
}
.dhclaim-error a {
    color: var(--error-text-color);
}
.dhclaim-success,
p.dhclaim-success {
    padding: .5em 1em .5em 1em;
    border: 1px solid var(--success-border-color);
    color: var(--success-text-color);
    background-color: var(--success-background-color);
    border-radius: var(--border-radius);
}
.dhclaim-warning {
    padding: .5em 1em;
    border: 1px solid #009;
    color: #009;
    background-color: #d3d7ff;
}
.dhclaim-notice {
    padding: .5em 1em;
    border: 1px solid #990;
    color: #440;
    background-color: #fcfcd1;
}
table.dhclaims-summary {
    border-collapse: collapse;
    width: 100%;
}
table.dhclaims-summary th {
    text-align: left;
    padding-right: 4px;
}
table.dhclaims-summary td {
    text-align: left;
    padding-right: 24px;
}
.dhclaim-claim {
    margin: 1em 0;
}
#dhportal-new-claim-button::after {
    content: "New Claim";
}
#dhportal-claims-list-button::after {
    content: "Existing Claims";
}
#dhportal-new-claim-form.active {
    display: block;
}
#dhportal-new-claim-form {
    display: none;
}
#dhportal-claims-list.active {
    display: block;
}
#dhportal-claims-list {
    display: none;
}
.dhportal-images+span {
    display: block;
}
.dhportal-images+span+span {
    display: block;
}
.dhportal-images+span+span>div {
    margin: 12px;
}
.dhportal-images+span+span>div img {
    max-width: 250px;
}
.dhportal-claim-form {
    padding: 12px;
    margin: 0 0 12px 0;
    border-radius: var(--border-radius);
}
.dhportal-claim-form textarea {
    display: block;
    width: 100%;
    height: 80px;
    box-sizing: border-box;
    margin-top: 6px;
}
.dhportal-claim-form img {
    max-width: 240px;
}
.dhportal-claim-form select {
    margin-right: 12px;
}
.dhportal-claim-form .issue {
    margin: 12px;
}
.dhportal-claim-form .remove,
.dhportal-claim-form .add,
.dhportal-claim-form button,
.dhportal-claim-tabs a,
.dhportal-claim-edit {
    border-width: 0;
    background-color: #AA4A44;
    text-decoration: none;
    font-size: 0.8em;
    text-transform: uppercase;
    padding: 2px 8px;
    color: #fff;
    cursor: pointer;
    border-radius: var(--border-radius);
    margin-left: 12px;
    display: inline-block;
    box-sizing: border-box;
}
.dhportal-claim-form .add,
.dhportal-claim-form button,
.dhportal-claim-tabs a,
.dhportal-claim-edit {
    background-color: #4A4A44;
}
.dhportal-claim-form button {
    margin-left: 0;
    margin-right: 12px;
    padding: 6px 8px;
}
.dhportal-claim-tabs {
    margin: 12px 0 0 0;
}
.dhportal-claim-tabs a {
    border-radius: 2px 2px 0 0;
    border: 1px solid #aaa;
    border-bottom-width: 0;
    color: #333;
    background-color: #aaa;
    position:relative;
    top: 0px;
}
.dhportal-claim-tabs a.active {
    background: #fff;
    border-color: #ccc;
    color: #000;
}
.dhclaim-wrap table,
#dhportal-new-claim-form {
    outline:1px solid #ccc;
}
.dhportal-claim-notes p {
    margin: 12px;
}

/* Form Elements */
.dhclaim-wrap input[type="text"],
.dhclaim-wrap input[type="email"],
.dhclaim-wrap input[type="url"],
.dhclaim-wrap input[type="tel"],
.dhclaim-wrap input[type="number"],
.dhclaim-wrap input[type="password"],
.dhclaim-wrap input[type="file"],
.dhclaim-wrap .dhclaim-results input[type="date"],
.dhclaim-wrap input {
    width: 100%;
    padding: .8em 1em;
    margin: 0 0 4px 0;
    box-sizing: border-box;
    max-width: min(90%, 300px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.5);
    box-sizing: border-box;
    font-size: inherit;
    transition: all .1s ease;
    background: white; 
    color: black;
}
.dhclaim-wrap .dhclaim-results input[type="date"] {
    max-width: max(240px, 50%);
}
.dhclaim-wrap input[type="text"]:focus,
.dhclaim-wrap input[type="email"]:focus,
.dhclaim-wrap input[type="url"]:focus,
.dhclaim-wrap input[type="tel"]:focus,
.dhclaim-wrap input[type="number"]:focus,
.dhclaim-wrap input[type="password"]:focus,
.dhclaim-wrap input[type="file"]:focus,
.dhclaim-wrap input:focus {
    outline: 1px solid var(--button-background-color);
    transform: scale(1.03);
    left: 10px;
    box-shadow: 0 0 12px 0 rgba(0,0,0,0.15);
}
.dhclaim-wrap .dhclaim-results input[type="text"],
.dhclaim-wrap .dhclaim-results input[type="email"],
.dhclaim-wrap .dhclaim-results input[type="url"],
.dhclaim-wrap .dhclaim-results input[type="tel"],
.dhclaim-wrap .dhclaim-results input[type="number"],
.dhclaim-wrap .dhclaim-results input[type="password"],
.dhclaim-wrap .dhclaim-results input {
    max-width: max(80%, 300px);
}
.dhclaim-wrap select {
    width: 100%;
    padding: .8em 1em;
    margin: 0 4px 1em 0;
    box-sizing: border-box;
    max-width: min(90%, 300px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.5);
    box-sizing: border-box;
    max-width: max(240px, 50%);
    font-size: 1rem;
}
.dhclaim-wrap select:focus {
    outline: 1px solid var(--button-background-color);
    transform: scale(1.03);
    left: 10px;
    box-shadow: 0 0 12px 0 rgba(0,0,0,0.15);
}
.dhclaim-wrap .dhclaim-results input#api_owner_state,
.dhclaim-wrap .dhclaim-results input#api_owner_postal_code,
.dhclaim-wrap .dhclaim-results input#api_product_model_year{
    max-width: max(240px, 50%);
}
.dhclaim-wrap button[type="submit"] {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
    background: var(--button-background-color);
    color: #fff;
    outline: 1px solid #0000;
    text-decoration: none;
    text-shadow: none;
    white-space: nowrap;
    align-items: center;
    border: 0;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    cursor: pointer;
    /* display: inline-flex; */
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    /* height: 36px; */
    margin: 0 4px 4px 0;
    /* padding: 6px 12px; */
    padding: 12px 34px !important;
    text-decoration: none;
    transition: box-shadow .1s linear, background-color .1s linear, color .1s linear;
    text-transform: uppercase;
}
.dhclaim-wrap button[type="submit"]:hover:not(:disabled) {
    background: #005177;
}
.dhclaim-wrap label {
    display: inline-block;
    width: 100%;
    padding-bottom: 2px;
    font-size: .9rem;
    color: inherit;
    color: var(--wp--preset--color--contrast);
    opacity: 0.8;
}
.dhclaim-wrap textarea {
    background: white;
    border: 1px solid rgba(0,0,0,0.5);
    width: 100%;
    max-width: max(80%, 300px);;
    min-width: 240px;
    min-height: 6em;
    padding: 8px;
}
.dhclaim-wrap textarea:focus {
    outline: 1px solid var(--button-background-color);
    transform: scale(1.03);
    left: 10px;
    box-shadow: 0 0 12px 0 rgba(0,0,0,0.15);
}

/* Table Styles */
.dhclaim-wrap table {
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: var(--border-radius);
}
.dhclaim-wrap table.dhclaim-summary {
    width: 100%;
}
.dhclaim-wrap table:not(.dhclaims-summary) tr:nth-child(odd) {
    background: rgba(255,255,255,0.05);
}
.dhclaim-wrap table:not(.dhclaims-summary) tr:nth-child(even) {
    background: rgba(0,0,0,0.05);
}
.dhclaim-wrap table tr th,
.dhclaim-wrap table tr td {
    padding: 6px 8px;
    text-align: left;
}
.dhclaim-wrap table tr td:not(colspan="1") {
    padding-right: 24px;
}
.dhclaim-wrap table tr th {
    /* border-bottom: 1px solid rgba(120,120,120,0.4); */
}

/* Claim Table */
.dhclaim-wrap table.dhclaims-summary tr:nth-child(4n-2) {
    background: rgba(0,0,0,0.05);
}
.dhclaim-wrap table.dhclaims-summary tr:nth-child(4n-2) td {
    padding-top: 6px;
    padding-bottom: 6px;
}
.dhclaim-wrap table.dhclaims-summary tr:nth-child(4n) {
    background: rgba(255,255,255,0.05);
}
.dhclaim-wrap table.dhclaims-summary tr:nth-child(4n) td {
    padding-top: 6px;
    padding-bottom: 6px;
}
.dhclaim-wrap table.dhclaims-summary tr th,
.dhclaim-wrap table.dhclaims-summary tr td {
    padding-top: 0;
    padding-bottom: 0;
}
.dhclaim-wrap table.dhclaims-summary tr:first-child th {
    padding-top: 14px;
}