/*
 * UP Postkasse Custom Stylesheet
 */

.up-form-wrapper,
.up-chat-wrapper {
    font-family: 'Open Sans', sans-serif;
    color: #000000;
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 0;
    border-radius: border-radius: var(--radius);;
	width: 100%;
}

.up-postkasse-form textarea::placeholder,
.up-postkasse-form input::placeholder,
.up-chat-code-form input::placeholder {
	color: #555;
	font-size: 1.5rem;
	font-weight: 500;
}

#up-postkasse-form button span,
#up-postkasse-chat button span {
	font-size: 2.3rem;
	margin-right: 1rem;
    vertical-align: text-top;
    padding-bottom: .5rem;
}

#up-postkasse-form select.up-input {
    width: 100%;
	min-width: 130px;
	flex-basis: 50%;
    padding: 5px 15px;
    font-size: 16px;   
    line-height: 1.5;
	font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc; 
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}

#up-postkasse-form select.up-input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.up-combo-fields {
	display: flex;
	gap: 1.5rem;
	width: 100%;
}

.up-form-title {
    text-align: left;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.up-form-subtitle {
    text-align: left;
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.up-required {
    color: #fff;
}

.up-field {
    margin-bottom: 1.5rem;
    position: relative;
}

.up-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffffff;
    font-size: 1.5rem;
}

.up-input,
.up-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box;
    font-size: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.up-textarea {
    resize: vertical;
}

.up-input:focus,
.up-textarea:focus {
    border-color: #F16C51;
    outline: none;
    box-shadow: 0 0 0 2px rgba(236, 109, 83, 0.2);
}


.up-input-icon-wrapper {
    position: relative;
}

.up-input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #999;
    pointer-events: none;
}

.up-email-field .up-input {
    padding-right: 40px; 
}

.up-button-wrapper {
    display: flex;
    justify-content: left;
}

.up-button {
    padding: 5px 30px;
    border: none;
    border-radius: 100vmax;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s, transform 0.1s;
    letter-spacing: 0.5px;
}

.up-button-primary, .up-button-secondary, .up-button-reply {
    background: #fff;
    color: #000;
    width: fit-content;
    font-size: 1.5rem;
	font-weight: 500;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.up-button-primary:hover, .up-button-secondary:hover, .up-button-reply:hover {
    background: #fff;
    transform: translateY(-1px);
}

.up-response p {
    margin: 1rem 0 0 0;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.up-message-sending {
    color: #3498db;
    background: #eaf6ff;
}

.up-message-success {
    color: #27ae60;
    background: #d5f4e6;
}

.up-message-success-code {
	font-size:4rem;
    font-weight: bold;
}

.up-message-error {
    color: #e74c3c;
    background: #ffebeb;
}
.up-chat-loading {
	color:#fff;
}

.up-chat-code-form {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: left;
}

.up-chat-code-form .up-field {
    width: 100%;
}

.up-messages-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 1.5rem;
    background: #fafafa;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.up-message-bubble {
    margin-bottom: 1rem;
    padding: 12px;
    border-radius: 8px;
    line-height: 1.4;
    position: relative;
    font-size: 1.5rem;
}

.up-message-bubble:last-child {
    margin-bottom: 0;
}

.up-message-content {
    margin-bottom: 5px;
}

.up-message-time {
    display: block;
    font-size: 1.2rem;
    color: #777;
    text-align: right;
}

.up-message-user {
    background: #f1f1f1;
    border-left: 3px solid #9e9e9e;
}

.up-message-admin {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.up-chat-code-display {
    padding: 10px 15px;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    justify-content: right;
    align-items: flex-end;
}

.up-code-copy-btn {
    background: #f7a977;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.up-code-copy-btn:hover {
    background: #f09564;
}

.up-reply-form {
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

#info-text {
	font-family: inherit;
	color: #fff;
	font-size: 1.5rem;
	
}

/* Remove the "Visual/Code" tab bar */
#wp-up_frontend_editor-editor-tools {
    display: none !important;
}

/* Remove the toolbar container border/spacing */
.wp-editor-container {
    border: 1px solid #ccc !important;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

/* Ensure the iframe area takes up the full space */
#mce_14 {
    border: none !important;
}