/* 
* iwd_ - iText Web Demo 
* iwd_ prefix is used for all classes of iText Web Demo components
*/

/* 
* Colors
* primary - #084975
* secondary - #f99d25
* light - #46aef8
*/


/* --- Content styles --- */
.iwd_component-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
/* ----------------------- */

/* --- Dropzone styles --- */
.iwd_drop-zone {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #084975;
    border: 2px dashed #46aef8;
    border-radius: 15px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.iwd_drop-zone * {
    pointer-events: none;
}

.iwd_drop-zone.disabled {
    cursor: default;
}

.iwd_drop-zone.active {
    border-color: #f99d25;
}

.iwd_file-input {
    display: none;
}
/* ----------------------- */

/* --- Loading Message styles --- */
.iwd_loading-message-container {
    font-size: 1.2rem;
    color: #084975;
    padding-left: 15px;
    margin-bottom: 1rem;
}

.iwd_loading-message-container:after {
    content: ' .';
    animation: iwd_dots 1s steps(5, end) infinite;
}

@keyframes iwd_dots {
    0%, 20% {
      color: rgba(0,0,0,0);
      text-shadow:
        .25em 0 0 rgba(0,0,0,0),
        .5em 0 0 rgba(0,0,0,0);
    }
    40% {
      color: black;
      text-shadow:
        .25em 0 0 rgba(0,0,0,0),
        .5em 0 0 rgba(0,0,0,0);
    }
    60% {
      text-shadow:
        .25em 0 0 #000000,
        .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
      text-shadow:
        .25em 0 0 #000000,
        .5em 0 0 #000000;
    }
}
/* ----------------------- */

/* --- Labels styles --- */
.iwd_info-label-container {
    margin-bottom: 1rem;
    margin-left: 5px;
}

.iwd_info-label {
    color: #084975;
    font-size: 1.2rem;
    font-weight: normal;
    line-height: 1.2;
}

.iwd_info-label--secondary {
    color: #f99d25;
}

.iwd_info-label--bold-weight {
    font-weight: 700;
}

.iwd_info-label--normal-margin {
    margin: 5px;
}

.iwd_info-label--break-all {
    word-break: break-all;
}
/* ----------------------- */

/* --- Params styles --- */
.iwd_param-label {
    color: #084975;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-left: 5px;
}

.iwd_param-input {
    width: 100%;
    max-width: 300px;
    height: 38px;
    color: #084975;
    font-size: 1.2rem;
    border: 1px solid #084975;
    border-radius: 19px;
    padding: 0 19px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.iwd_param-input::placeholder {
    color: #a5a5a5;
}

.iwd_param-input:focus,
.iwd_param-input:hover {
    border-color: #46aef8;
}

.iwd_param-input:disabled {
    border-color: #084975;
    background: #f2f2f2;
}

.iwd_param-selection {
    display: flex;
    margin-bottom: 1rem;
}

.iwd_param-selection-item {
    color: #084975;
    border: 1px solid #084975;
    padding: 8px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.iwd_param-selection-item > svg {
    fill: #084975;
    margin-left: 5px;
}

.iwd_param-selection-item.selected > svg {
    fill: #eeeeee;
}

.iwd_param-selection-item:not(.selected):hover {
    background: #f2f2f2;
}

.iwd_param-selection-item:first-child {
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

.iwd_param-selection-item:not(:last-child) {
    border-right: none;
}
    
.iwd_param-selection-item:last-child {
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
}

.iwd_param-selection-item.selected {
    color: #ffffff; 
    background-color: #084975;
}

.iwd_param-error-label {
    display: inline-block;
    margin-top: -3px;
    margin-bottom: 10px;
    padding: 2px 12px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
}

.iwd_param-warning-label {
    display: inline-block;
    margin-top: -3px;
    margin-bottom: 10px;
    padding: 2px 12px;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 12px;
}

.iwd_switch-param-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.iwd_switch-param-label {
    color: #848484;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-left: 5px;
}

.iwd_switch-param-label.active {
    color: #084975;
}

.iwd_switch-param-label.iwd_switch-param-label--light.active {
    color: #46aef8;
}

.iwd_switch-param-label.iwd_switch-param-label--secondary.active {
    color: #f99d25;
}

.iwd_switch-param-label--small-text {
    font-size: 16px;
}

.iwd_radio-button-label {
    color: #848484;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-left: 5px;
}

.iwd_radio-button-label.checked {
    color: #084975;
}

.iwd_radio-button-label.iwd_radio-button-label--light.checked {
    color: #46aef8;
}

.iwd_radio-button-label.iwd_radio-button-label--secondary.checked {
    color: #f99d25;
}

.iwd_radio-button-label.disabled {
    color: #d2d2d2;
}

.iwd_radio-button-label--small-text {
    font-size: 16px;
}

.iwd_param-text-area {
    max-width: 100%;
    width: 100%;
    min-width: 100%;
    min-height: 300px;
    max-height: 450px;
    color: #515151;
    font-size: 1rem;
    border: 1px solid #084975;
    padding: 0 8px;
    margin-bottom: 1rem;
    transition: border 0.2s ease;
    outline: none;
    float: none;
    border-radius: 0;
}

.iwd_param-text-area:focus,
.iwd_param-text-area:hover {
    border-color: #46aef8;
}

.iwd_param-text-area:disabled {
    border-color: #084975;
    background: #f2f2f2;
}

.iwd_param-input.iwd_param-input__select {
    padding: 0 15px;
}
/* ----------------------- */

/* --- Buttons styles --- */
.iwd_button {
    background-color: #084975;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    line-height: normal;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.15);
    border: 0.1rem solid #084975;
    border-radius: 24px;
    padding: 8px 20px;
    margin-bottom: 1rem;
}

a.iwd_button:hover,
a.iwd_button:focus,
a.iwd_button:active {
    color: #ffffff;
}

.iwd_button > svg {
    width: 12px;
    height: 16px;
    fill: #ffffff;
    transition: 0.3s all ease-in-out;
}

.iwd_button--secondary {
    background-color: #f99d25;
    border-color: #f99d25;
}

.iwd_button--secondary:disabled {
    background-color: #cccccc;
    border-color: #cccccc;
}

.iwd_button--right-arrow > svg {
    margin-left: 8px;
}

.iwd_button--right-arrow:hover > svg {
    transform: translateX(2px);
}

.iwd_button--left-arrow > svg {
    margin-right: 8px;
}

.iwd_button--left-arrow:hover > svg {
    transform: translateX(-2px);
}

.iwd_button--outlined {
    background-color: #ffffff;
    color: #084975;
    border-color: #084975;
}

a.iwd_button--outlined:hover,
a.iwd_button--outlined:focus,
a.iwd_button--outlined:active {
    color: #084975;
}

.iwd_button--outlined > svg {
    fill: #084975;
}

.iwd_button--outlined.iwd_button--secondary  {
    color: #f99d25;
    border-color: #f99d25;
}

a.iwd_button--outlined.iwd_button--secondary:hover,
a.iwd_button--outlined.iwd_button--secondary:focus,
a.iwd_button--outlined.iwd_button--secondary:active {
    color: #f99d25;
}

.iwd_button--outlined.iwd_button--secondary > svg {
    fill: #f99d25;
}

.iwd_button--link {
    background-color: #ffffff;
    color: #084975;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin-left: 5px;
}

a.iwd_button--link:hover,
a.iwd_button--link:focus,
a.iwd_button--link:active {
    color: #084975;
}

.iwd_button--link > svg {
    fill: #084975;
}

.iwd_button--link.iwd_button--secondary {
    color: #f99d25;
}

a.iwd_button--link.iwd_button--secondary:hover,
a.iwd_button--link.iwd_button--secondary:focus,
a.iwd_button--link.iwd_button--secondary:active {
    color: #f99d25;
}

.iwd_button--link.iwd_button--secondary > svg {
    fill: #f99d25;
}

.iwd_button--link.iwd_button--right-arrow {
    margin-right: 5px;
}

.iwd_button:focus {
    outline: thin dotted #084975;
}

.iwd_button.iwd_button--secondary:focus {
    outline: thin dotted #f99d25;
}
/* ----------------------- */

/* --- Switch styles --- */
.iwd_switch-container {
    position: relative;
    display: inline-block;
    width: 30px;
    min-width: 30px;
    height: 17px;
    min-height: 17px;
}
  
.iwd_switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.iwd_switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #848484;
    transition: .4s;
    border-radius: 17px;
}
  
.iwd_switch:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: .4s;
    border-radius: 50%;
}
  
input:checked + .iwd_switch {
    background-color: #084975;
}

input:checked + .iwd_switch.iwd_switch--light {
    background-color: #46aef8;
}

input:checked + .iwd_switch.iwd_switch--secondary {
    background-color: #f99d25;
}
  
input:checked + .iwd_switch:before {
    transform: translateX(13px);
}
/* ----------------------- */

/* --- Radio button styles --- */
.iwd_radio-button-container {
    display: inline-block;
    position: relative;
    padding-left: 16px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    margin-bottom: 1rem;
}

.iwd_radio-button-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.iwd_radio-button-container.disabled {
    cursor: default;
}

.iwd_radio-button {
    position: absolute;
    top: calc(50% - 8px);
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #eeeeee;
    border-radius: 50%;
}

.iwd_radio-button-container:hover input:not(:disabled):not(:checked) ~ .iwd_radio-button {
    background-color: #cccccc;
}

.iwd_radio-button-container input:checked ~ .iwd_radio-button {
    background-color: #084975;
}

.iwd_radio-button-container input:checked ~ .iwd_radio-button.iwd_radio-button--secondary {
    background-color: #f99d25;
}

.iwd_radio-button-container input:checked ~ .iwd_radio-button.iwd_radio-button--light {
    background-color: #46aef8;
}

.iwd_radio-button:after {
    content: "";
    position: absolute;
    display: none;
}

.iwd_radio-button-container input:checked ~ .iwd_radio-button:after {
    display: block;
}

.iwd_radio-button-container .iwd_radio-button:after {
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

.iwd_radio-buttons-list-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 10px;
}
/* ----------------------- */

/* Component description styles */
.iwd_name-and-version-container {
    font-size: 12px;
    color: #a5a5a5;
    text-align: end;
}

a.iwd_product-link,
a.iwd_product-link:visited {
    text-decoration: none;
    color: #084975;
    transition: color 0.2s ease;
    border: 0;
}

a.iwd_product-link:hover,
a.iwd_product-link:focus,
a.iwd_product-link:active {
    text-decoration: none;
    color: #f99d25;
    border: 0;
}

a.iwd_product-link:not([href]),
a.iwd_product-link:not([href]):hover {
    color: #a5a5a5;
}
/* ----------------------- */

/* Common styles */
.iwd_margin-left {
    margin-left: 10px;
}

.imd_buttons_container {
    display: flex;
}

.imd_buttons_container.imd_buttons_container--left {
    align-items: flex-start;
}

.imd_buttons_container.imd_buttons_container--column {
    flex-direction: column;
}
/* ----------------------- */

/* Preview Styles */
.iwd_image-preview-container {
    max-height: 200px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.iwd_image-preview-container > img {
    max-height: 200px;
    position: relative;
}

.iwd_image-preview-container > img:before {
    content: attr(alt);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding-left: 5px;
    display: flex;
    align-items: center;
    background: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    color: #f99d25;
    white-space: nowrap;
}
/* ----------------------- */

