@import url('https://fonts.googleapis.com/css2?family=Gugi&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

.elec-next-btn {
    .wp-block-button__link {
        display: flex !important;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }
}

.custom-more-btn {
    border-bottom: 1px solid #333333;
}

.custom-more-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 1px;
    height: 25px;
    background: #000000;
    transform: rotate(-45deg);
    transform-origin: bottom right;
}

.custom-num {
    background: transparent;
}

.custom-triangle {
    position: relative;
    height: 305px;
}

.custom-triangle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-right: 120px solid transparent;
    /* Màu của tam giác */
    border-top: 120px solid #2A458D;
}

.font-gugi {
    font-family: 'Gugi';
}

.font-noto {
    font-family: "Noto Sans JP", sans-serif;
}

.rl-style-dropdown-img {
    img {
        transition-duration: 300ms;
        transition-property: transform;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}

.rl-style-table.hidden {
    opacity: 0;
    transition: opacity 1s ease;
}

.rl-style-table {
    display: block;
    opacity: 1;
    transition: opacity 1s ease;
}

.rl-style-table table td {
    padding: 5px 10px 5px 10px;
}

.modal-term {
    display: flex;
    margin-top: 0;
    margin-bottom: 0;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-term-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 8px;
    width: 80%;
    min-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    height: max-content;
    overflow-y: auto;

    @media screen and (max-width: 768px) {
        padding: 20px;

    }
}

.file-preview {
    object {
        max-height: 1200px;
        height: 65vh !important;

        @media screen and (max-width: 768px) {
            height: 50vh !important;
        }
    }
}

input[name="term_checkbox"] {
    height: 20px !important;
    width: 20px !important;
    border-radius: 4px;
    border-top: 1px solid #2A458D;
    border-right: 1px solid #2A458D;
    border-bottom: 1px solid #2A458D;
    border-left: 1px solid #2A458D;
    appearance: none;
    cursor: pointer;
}

input[name="term_checkbox"]:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

input[name="term_checkbox"]:checked {
    appearance: auto;
    border-radius: 4px !important;
}

.wp-hidden:not(.wp-block) {
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile PDF Viewer Styles */
.mobile-pdf-iframe-container,
.google-pdf-viewer,
.pdfjs-viewer {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.mobile-pdf-iframe-container iframe,
.google-pdf-viewer iframe,
.pdfjs-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Fallback Info Styles */
.pdf-fallback-info {
    padding: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-top: 10px;
}

.fallback-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    text-align: center;
    margin: 0 0 10px 0;
}

.fallback-content p {
    font-size: 14px;
    color: #666666;
    text-align: center;
    margin: 0 0 15px 0;
}

.fallback-buttons {
    text-align: center;
    margin-bottom: 15px;
}

.fallback-btn {
    display: inline-block;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin: 5px;
    transition: all 0.3s ease;
}

.download-btn {
    background-color: #28a745;
    color: white !important;
}

.open-btn {
    background-color: #007cba;
    color: white !important;
}

.fallback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fallback-note {
    font-size: 12px;
    color: #888888;
    text-align: center;
    margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {

    .mobile-pdf-viewer {
        display: block !important;
    }
}

@media screen and (max-width: 480px) {

    .fallback-btn {
        display: block;
        margin: 8px auto;
        max-width: 200px;
    }
}