/* Template 14 "postcard" v3 — clean legacy style (photo + simple copy bar),
   self-contained so it cannot affect other check-in templates. Loaded from tpl_14.html. */

.checkin-postcard-template {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: #3a4a44;
    isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(58, 74, 68, .1);
}

/* ---------- Photo area: a tall clean image like legacy templates ---------- */
.checkin-postcard-template .pic-area {
    position: relative;
    height: auto !important;
    padding-top: 128%;
    overflow: hidden;
    background: #e7e2d8;
}

.checkin-postcard-template .pic-area .upload-pic {
    z-index: 1;
    background: #e7e2d8;
}

.checkin-postcard-template .pic-area .upload-pic #imghead {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

.checkin-postcard-template .pic-area .operate-area {
    z-index: 6;
}

.checkin-postcard-template .pic-area .camera-wrap {
    z-index: 5;
}

/* ---------- Date: stacked on the lower-right of the photo, white text ---------- */
.checkin-postcard-template .date-area {
    position: absolute;
    z-index: 4;
    right: 18px;
    bottom: 22px;
    display: flex;
    min-width: 64px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: rgba(23, 46, 40, .55);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 6px;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    pointer-events: none;
}

.checkin-postcard-template .postcard-date-week {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 3px;
    opacity: .92;
}

.checkin-postcard-template .postcard-date-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-top: 5px;
}

.checkin-postcard-template .postcard-date-main strong {
    font-family: DINCondensedC, DINC, Helvetica, Arial, sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: .9;
}

.checkin-postcard-template .postcard-date-main span {
    margin-left: 5px;
    font-family: Helvetica, Arial, sans-serif, "PingFang SC";
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.checkin-postcard-template .postcard-date-year {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2px;
    opacity: .88;
}

/* ---------- Copy bar: plain white, centered text ---------- */
.checkin-postcard-template .word-area {
    position: relative;
    display: block;
    box-sizing: border-box;
    min-height: 0;
    padding-top: 23%;
    background: #ffffff;
}

.checkin-postcard-template .word-area .word-main {
    position: absolute;
    top: 50%;
    right: 26px;
    left: 26px;
    width: auto;
    height: auto;
    transform: translateY(-50%);
}

.checkin-postcard-template .word-area .word-main .word,
.checkin-postcard-template .word-area .word-main .wordTextarea {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: #3a4a44;
    font-family: Helvetica, Arial, sans-serif, "PingFang SC";
    font-size: 15px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
}

.checkin-postcard-template .word-area .word-main .word {
    display: block;
}

.checkin-postcard-template .word-area .word-main .wordTextarea {
    display: none;
    overflow-y: auto;
    resize: none;
}

.checkin-postcard-template .word-area .word-main .wordTextarea:focus {
    outline: 2px solid rgba(31, 93, 84, .3);
    outline-offset: 3px;
}

.checkin-postcard-template .word-area .word-side {
    position: absolute;
    z-index: 3;
    right: 7px;
    top: 50%;
    width: 40px;
    height: 50px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
}

.checkin-postcard-template .word-area .word-side .btn-edit {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(58, 74, 68, .18);
    color: #3a4a44;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.checkin-postcard-template .word-area .word-side .btn-edit::before {
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
    content: "\f303";
}

.checkin-postcard-template .word-area .word-side .btn-edit:focus-visible {
    outline: 2px solid #1f5d54;
    outline-offset: 2px;
}

/* ---------- Picker preview inside the 330px carousel cards ---------- */
.carousel-list .carousel-item .checkin-postcard-template .pic-area {
    padding-top: 120%;
}

.carousel-list .carousel-item .checkin-postcard-template .date-area {
    right: 12px;
    bottom: 14px;
    min-width: 48px;
    padding: 7px 10px;
}

.carousel-list .carousel-item .checkin-postcard-template .postcard-date-week {
    font-size: 8px;
    letter-spacing: 2px;
}

.carousel-list .carousel-item .checkin-postcard-template .postcard-date-main {
    margin-top: 3px;
}

.carousel-list .carousel-item .checkin-postcard-template .postcard-date-main strong {
    font-size: 30px;
}

.carousel-list .carousel-item .checkin-postcard-template .postcard-date-main span {
    margin-left: 4px;
    font-size: 10px;
}

.carousel-list .carousel-item .checkin-postcard-template .postcard-date-year {
    margin-top: 3px;
    font-size: 8px;
    letter-spacing: 1px;
}

.carousel-list .carousel-item .checkin-postcard-template .word-area {
    padding-top: 20%;
}

.carousel-list .carousel-item .checkin-postcard-template .word-area .word-main {
    right: 18px;
    left: 18px;
}

.carousel-list .carousel-item .checkin-postcard-template .word-area .word-main .word,
.carousel-list .carousel-item .checkin-postcard-template .word-area .word-main .wordTextarea {
    color: #3a4a44;
    font-size: 13px;
    line-height: 21px;
}

@media only screen and (max-width: 320px) {
    .carousel-list .carousel-item .checkin-postcard-template .pic-area {
        padding-top: 120%;
    }

    .carousel-list .carousel-item .checkin-postcard-template .word-area {
        padding-top: 20%;
    }
}
